-
Notifications
You must be signed in to change notification settings - Fork 26
Conversation
Signed-off-by: feihuang <feihuang@feihuangs-mbp.cn.ibm.com>
I think you should keep instance name in the DB volume name also for DS8k. does make sense to remove this feature for DS8k. |
Review status: 0 of 2 files reviewed at latest revision, 7 unresolved discussions, some commit checks failed. local/scbe/scbe.go, line 45 at r1 (raw file):
I think we should keep u__ so only the vol DB you should shrink it from ibm_ubiquity_db to ibmdb local/scbe/scbe.go, line 53 at r1 (raw file):
looks like this error message is from SCBE. so please put this error str inside scbe_rest_client.go (its not related to local/scbe.go file) and just use it from there. local/scbe/scbe.go, line 275 at r1 (raw file):
please put all this scope in a function and call it ds8k_short_volume_name_handling() local/scbe/scbe.go, line 278 at r1 (raw file):
just use the same ComposeVolumeName but instead of database.VolumeNameSuffix, just database.VolumeNameSuffixForDS8K of cause you should update the IsDatabaseVolume to check also the ds8k suffix. I think its better because it will enable you to use the instance to separate between different instances of ubiquities. local/scbe/scbe.go, line 281 at r1 (raw file):
improve the message : "scbeRestClient.CreateDBVolume failed also with short name for DS8K" local/scbe/scbe.go, line 286 at r1 (raw file):
Fei, please add Unit testing to cover this new functionality in scbe_test.go. local/scbe/simple_rest_client.go, line 172 at r1 (raw file):
what is the motivation? Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 7 unresolved discussions, some commit checks failed. local/scbe/scbe.go, line 45 at r1 (raw file): Previously, shay-berman wrote…
An alternative solution. volumeNamePrefix should be "u". ComposeVolumeName would be volumeNamePrefix + "%s%s" and for ds8k it would be just "%s". Note that we lose some functionality from removing the instance-id. Comments from Reviewable |
@Shay
For local/scbe/simple_rest_client.go, line 172 at r1 (raw file): SCBE add the error message which contains "Volume names are limited to 16 characters" in the body, so we need to add body in the return BTW,I cannot access Reviewable for network issue. |
As mentioned, I prefer not to accept this PR because the right way to support DS8k is just to make the ibm-ubiquity-db name as a configurable value, Instead of doing hooks to handle ds8k short name in the code. So Please open a new PR with changes needed (mainly in the ubiquity-k8s repo) to make it configurable. Then ds8k customer will just configure a shorter ubiquity db name shorter then the default(ibm-ubiquity-db). No code change in the ubiquity logic, accept then getting the db vol name as environment variable. |
Will close this PR: |
Changes:
1. DB name for DS8k: uibm-ubiquity-db, DB name for SVC/XIV: u_{instance}_ibm- ubiquity-db
2. Normal PV name: pv-name label in mandatory
This change is