-
Notifications
You must be signed in to change notification settings - Fork 199
Disallow attach with the old CnsNodeVMAttachment CRD after upgrade to 9.1 #3759
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?
Disallow attach with the old CnsNodeVMAttachment CRD after upgrade to 9.1 #3759
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. |
|
Triggering CSI-TKG Pre-checkin Pipeline for this PR... Job takes approximately an hour to complete |
|
SUCCESS --- Jenkins Build #607 |
5995cd7 to
1ad6def
Compare
|
FAILED --- Jenkins Build #610 |
|
Triggering CSI-TKG 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 |
1ad6def to
71a4440
Compare
|
/ok-to-test |
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 |
|
@skogta: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
71a4440 to
97a3313
Compare
|
/lgtm |
|
/test pull-vsphere-csi-driver-verify-golangci-lint |
What this PR does / why we need it:
After 9.1, all VM service VM volume attachments should happen via the new Batch Attach CRD.
This PR blocks any new attachments via the old CnsNodeVMAttachment CR if the shared disk FSS is enabled.
Testing done:
On a testbed with capability disabled, I attempted to attach a volume to a VM service VM. CnsNodeVMAttachment CR got created. I purposefully failed this attachment by manipulating the code:
I then enabled the capability and observed that the same CR got updated with the following message:
Same error got propagated to VM also:
Next, I removed this volume from VM spec and observed that the old CnsNodeVmAttachment CR got deleted.
I then re-added the volume to the VM spec and observed that batchattach CR was created and it attach was successful also:
WCP precheckin: https://jenkins-vcf-csifvt.devops.broadcom.net/job/wcp-instapp-e2e-pre-checkin/651/
VKS precheckin: https://jenkins-vcf-csifvt.devops.broadcom.net/job/vks-instapp-e2e-pre-checkin/609/