-
Notifications
You must be signed in to change notification settings - Fork 199
Add CnsVolumeAttachment CRD to track VMs attached to a PVC #3422
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
Hi @skogta. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
67de099
to
081f3de
Compare
081f3de
to
df571ee
Compare
/ok-to-test |
df571ee
to
8c3c35d
Compare
[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 |
8c3c35d
to
3363b6b
Compare
3363b6b
to
99c6a59
Compare
99c6a59
to
968218a
Compare
1d03b27
to
7128196
Compare
7128196
to
27cea3b
Compare
27cea3b
to
647c7eb
Compare
09eed33
to
92d0712
Compare
a33befa
to
bbb626c
Compare
bbb626c
to
dcb49e9
Compare
dcb49e9
to
37c8635
Compare
37c8635
to
5142b69
Compare
ok-to-test-wcp |
Triggering CSI-WCP Pre-checkin Pipeline for this PR... Job takes approximately an hour to complete |
SUCCESS --- Jenkins Build #32 |
ok-to-test-wcp |
Triggering CSI-WCP Pre-checkin Pipeline for this PR... Job takes approximately an hour to complete |
FAILED --- Jenkins Build #38 |
Triggering CSI-WCP Pre-checkin Pipeline for this PR... Job takes approximately an hour to complete |
PR needs rebase. 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. |
What this PR does / why we need it:
Creating a new CRD called CnsVolumeAttachment to keep track of VMs that are attached to a given PVC.
This CRD is not user facing and is only meant for book keeping.
This CRD is required because with RWX volumes, a volume can be attached to multiple VMs. It is not safe to delete such a volumes unless all VMs attached to it have been detached.
CSI can rely on this CRD to find out if a given volumes is currently attached or not.
There are 3 functions for this CRD - to add a VM to the instance, to remove a VM from the instance and to find if the CR exists or not.
Testing done:
PVC has finalizer
Logs
Deleted PVC and it got stuck in terminating state.
Delete batch attachment CR and observed the PVC also got deleted.
Added unit tests.