-
Notifications
You must be signed in to change notification settings - Fork 201
Consider volumes in status also while removing finalizers from PVC in batch attach. #3784
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
base: master
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: skogta The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Hi @skogta. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
7c0cd82 to
639ea5d
Compare
|
Triggering CSI-WCP Pre-checkin Pipeline for this PR... Job takes approximately an hour to complete |
|
Triggering CSI-TKG Pre-checkin Pipeline for this PR... Job takes approximately an hour to complete |
|
/ok-to-test |
639ea5d to
b7bcf00
Compare
|
FAILED --- Jenkins Build #715 |
|
Triggering CSI-TKG Pre-checkin Pipeline for this PR... Job takes approximately an hour to complete |
|
@skogta Can we reject spec change on cnsnodevmbatchattachment instance, if it has deletion timestamp. Can we have webhook check for this? |
What this PR does / why we need it:
It is possible that after VM is deleted and batchattach spec has a deletionTimestamp, someone removes one or more of the volumes from batchattach spec.
This means CSI will never be able to remove finalizer from such volumes as CSI no longer has track record of which volumes were removed from the spec and which were attached to the VM.
There are 2 cases which need to be handled:
Testing done:
Detached 1 volume from batchattach CR - detach was succesful.
Deleted the batchattach CR, volume was detached and CR was deleted:
WCP precheckin: https://jenkins-vcf-csifvt.devops.broadcom.net/view/instapp/job/wcp-instapp-e2e-pre-checkin/706/
VKS precheckin: https://jenkins-vcf-csifvt.devops.broadcom.net/job/vks-instapp-e2e-pre-checkin/649/