-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[patch] Do not validate storage class for mongo update #1050
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense to me
…evops into mongodb-update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@racree I am not sure I understand how this fixes the problem stated, which was to not validate the storage class for mongo?
For the upgrade flow, it will call install, and if the install needs to upgrade (say from 0.7.8 to 0.7.9) then it will install this new CR https://github.com/ibm-mas/ansible-devops/blob/master/ibm/mas_devops/roles/mongodb/templates/community/0.7.9/cr.yml.j2#L75C35-L75C56 which has the mongodb storage class. So either the update needs to know the storage class or it has to read what the current storageclass is and set that in the new CR.
@whitfiea Does this PR need to be written differently? My original understanding was... when Mongo is already installed and running, we do not need to validate the storage class because we should not be changing the storage class. But based on your comment above, you are expecting something different? |
@whitfiea I think I understand what you are saying... it is not enough to skip calling "tasks/determine-storage-classes" because the cr that gets applied during the update requires mongodb_storage_class to be defined. |
fixed in ibm-mas/cli#674 |
Storage class isn't set in the update pipeline. The mongo role just needs to not do anything with storage classes in the action=update path, update doesn't need to change the storage.
Therefore the update action should not call tasks/determine-storage-classes.yml