-
Notifications
You must be signed in to change notification settings - Fork 376
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
flag for not deleting individual snapshots when a volumegroupsnapshot is deleted #1126
Comments
We need to discuss more about this as this would require a CSI spec change. cc @bswartz |
@jmccormick2001 Can you please provide logs? DeleteVolumeGroupSnapshot should not cause ControllerDeleteSnapshot() to really delete the individual snapshot. It should be skipped quickly. If not, there is a bug that we need to fix. |
sure, attached is the driver log that shows the calls to ControllerDeleteSnapshot(). Here is how I'm recreating this:
That all works as expected, I see the snapshots on our storage device as planned. Then I delete the VolumeGroupSnapshot to trigger the deletion. The delete of the VolumeGroupSnapshot works as expected, but notice what is going on in the driver log, it calls ControllerDeleteSnapshot() twice, one for each PVC/volume. I suspect this is by design, but we have a feature on the storage device that is a single call, that essentially says, delete the entire snap group in an atomic fashion instead of individually deleting snapshots one-by-one that are included in the group. |
We are supposed to skip the CSI driver call to delete individual snapshots in this PR but I think we missed it: #972. |
/assign |
We also encountered this problem when we verified GroupVolumeSnapshot, looking forward this to be resolved~ |
Is your feature request related to a problem?/Why is this needed
I notice that when I delete a volume group snapshot, and DeleteVolumeGroupSnapshot() is called, that the snapshotter calls ControllerDeleteSnapshot() for each snapshot belonging to the volume group. For some storage devices, removing a volume group causes the underlying/associated snapshots to be removed in an atomic fashion without having to remove each snapshot individually.
Describe the solution you'd like in detail
I would like some way to turn off the default behavior of having calls to ControllerDeleteSnapshot() for each snapshot when DeleteVolumeGroupSnapshot() is invoked. This way, I can have our storage device be responsible for removing each associated snapshot.
Describe alternatives you've considered
One alternative is to make our storage device APi call specify that we do not want the storage device to cleanup or remove the dependent snapshots.
Additional context
The text was updated successfully, but these errors were encountered: