-
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
Consider volumes in status also while removing finalizers from PVC in batch attach. #3784
Conversation
|
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? |
There can be a case where someone detaches a volume and then immediately deletes the VM. So in such a case, both the reconciliations will be combined. For this case also we should consider volumes in status while detaching. |
b7bcf00 to
1569ede
Compare
|
SUCCESS --- Jenkins Build #738 |
|
SUCCESS --- Jenkins Build #684 |
divyenpatel
left a comment
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.
/approve
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: divyenpatel, skogta The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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/job/wcp-instapp-e2e-pre-checkin/738/
VKS precheckin: https://jenkins-vcf-csifvt.devops.broadcom.net/job/vks-instapp-e2e-pre-checkin/684/