-
Notifications
You must be signed in to change notification settings - Fork 22
DS8K support : ubiquity-db pv name as configurable parameter for the installer. #167
Conversation
Signed-off-by: feihuang <feihuang@feihuangs-mbp.cn.ibm.com>
Review status: 0 of 6 files reviewed at latest revision, 6 unresolved discussions. scripts/installer-for-ibm-storage-enabler-for-containers/ubiquity-configmap.yml, line 29 at r1 (raw file):
don't instruct here to set the param, because this param cannot be changed after the first installation. scripts/installer-for-ibm-storage-enabler-for-containers/ubiquity_cli.sh, line 163 at r1 (raw file):
what about the pvc name? don't we align it with the PV name? scripts/installer-for-ibm-storage-enabler-for-containers/ubiquity_installer.conf, line 40 at r1 (raw file):
Param...#-------------------- scripts/installer-for-ibm-storage-enabler-for-containers/ubiquity_installer.sh, line 198 at r1 (raw file):
r u sure nothing need to be change in the uninstall? probably no, but please check scripts/installer-for-ibm-storage-enabler-for-containers/yamls/ubiquity-db-pvc.yml, line 4 at r1 (raw file):
I am not sure, maybe its better to align also the pvc name according to the pv? scripts/installer-for-ibm-storage-enabler-for-containers/yamls/ubiquity-db-pvc.yml, line 8 at r1 (raw file):
change the comment : "ibm-ubiquity-db" -> Comments from Reviewable |
FYI : I also update a bit the PR name and description to clarify the change. |
Reviewed 6 of 6 files at r1. Comments from Reviewable |
@shay-berman , Do we need to change pvc name? I think pvc name is a claim for PV, so why not we keep the consistent name for SVC/XIV/DS8k, and also make ibm-ubiquity-db as a specific name for ibm ubiquity db claim. |
Review status: 3 of 7 files reviewed at latest revision, 7 unresolved discussions. scripts/installer-for-ibm-storage-enabler-for-containers/ubiquity_cli.sh, line 163 at r1 (raw file): Previously, shay-berman wrote…
ok so we can keep the PVC with the original name and only change the PV name if needed. scripts/installer-for-ibm-storage-enabler-for-containers/ubiquity_installer.conf, line 39 at r3 (raw file):
ex -> e.g: scripts/installer-for-ibm-storage-enabler-for-containers/ubiquity_installer.sh, line 198 at r1 (raw file): Previously, shay-berman wrote…
update - since we only change the PV name, no need to update the uninstall. scripts/installer-for-ibm-storage-enabler-for-containers/yamls/ubiquity-db-pvc.yml, line 4 at r1 (raw file): Previously, shay-berman wrote…
Fie, make sure uninstall align with the new PV configuration (it should be because we just delete the PVC but please double check it) scripts/installer-for-ibm-storage-enabler-for-containers/yamls/ubiquity-db-pvc.yml, line 8 at r1 (raw file): Previously, shay-berman wrote…
the comment should be : Ubiquity provisioner will create a PV with dedicated name (by default its ibm-ubiquity-db) Comments from Reviewable |
@shay-berman update, and below two tests passed |
Review status: 3 of 7 files reviewed at latest revision, 7 unresolved discussions. scripts/installer-for-ibm-storage-enabler-for-containers/ubiquity_installer.conf, line 39 at r3 (raw file): Previously, shay-berman wrote…
changed scripts/installer-for-ibm-storage-enabler-for-containers/yamls/ubiquity-db-pvc.yml, line 4 at r1 (raw file): Previously, shay-berman wrote…
Yudai tested uninstall in DS8k, and zhiyuan tested uninstall after upgrade from 1.0.0 to 1.1.0, both successful scripts/installer-for-ibm-storage-enabler-for-containers/yamls/ubiquity-db-pvc.yml, line 8 at r1 (raw file): Previously, shay-berman wrote…
Done Comments from Reviewable |
Thanks @FEI Review status: 3 of 7 files reviewed at latest revision, 4 unresolved discussions. Comments from Reviewable |
Merge and close |
Change:
In ubiquity 1.0.0, ibm-ubiquity-db is a hardcord pv name, but to support DS8k which has volume name length limitation about 16 chars, so we change design about ubiquity db name, make it configurable in ubiquity_installer.conf and ubiquity-configmap.yml, so customer can set the default name "ibm-ubiquity-db" to example "ibmdb" if the backend storage is DS8k
How to test:
basic testing:
upgrade testing:
steps:
Had ubiquity 1.0.0 installed, backend storage is SVC/XIV
Upgrade ubiquity-configmap.yml with ubiquity_installer.conf(use default db name)
Upgrade configmap with new ubiquity-configmap yml
Upgrade Ubiquity and Provisioner Pod
Make sure everything works fine
Documents:
1. ibm-ubiquity-db is the default db name for SVC/XIV, for DS8k, we suggest to use ibmdb, also customer should know that db name: u_{instance}_ibmdb should less than 17 chars
2. if customer want to create pv in DS8k, customer need to set pv name with pv-name label in pvc, otherwize it will fail to create pvc because DS8k has 16 chars limitation
3. Need to tell customer how to do upgrade
Signed-off-by: feihuang feihuang@feihuangs-mbp.cn.ibm.com
This change is