-
Notifications
You must be signed in to change notification settings - Fork 378
Undefined behavior for DeleteVolume with snapshots #346
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
Comments
Spec is not clear on what should happen when on a DeleteVolume call when the volume has snapshots. This patch clarifies the situation by explicitly mentioning that the operation should complete and the snapshots should still be operational. Closes: container-storage-interface#346
This patch adds a soft-delete mechanism for volumes so they can be "deleted" even when they have snapshots. The expected behavior of deleting a volume with snapshots is not well defined in the CSI spec, as stated in issue container-storage-interface/spec#346 but until this is clarified we will assume that PR #347 will be accepted and we must behave like this. This is also how the csi-sanity test suite seems to expect us to behave. Close: embercsi#70
My vote is for consistency between plugins in this behavior. Lets have both 1 & 2 by specifying a boolean parameter in If As part of |
I like that idea, although I'm not sure if it'd fit all cases, as there was much discussion around remotely storing the data during the review of the snapshot feature. What is the expected behavior of v1.0? Because if csi-sanity's behavior is a good reference, and I hope it is because I've used it for my CSI plugin, then it's applying option #3. |
Spec is not clear on what should happen when on a DeleteVolume call when the volume has snapshots. This patch clarifies the situation by explicitly mentioning that the operation should complete and the snapshots should still be operational. Closes: container-storage-interface#346
Spec is not clear on what should happen when on a DeleteVolume call when the volume has snapshots. This patch clarifies the situation by explicitly mentioning that the operation should complete and the snapshots should still be operational. Closes: container-storage-interface#346
I don't see the spec defining the behavior of a DeleteVolume call when the volume being deleted has snapshots.
In most backends deleting a volume with snapshots is not directly possible, one must delete the snapshots first. There are also backends that cascade delete the snapshots (after confirmation) when deleting such volume.
I see 3 possible behaviors, and we should be explicit about which one we expect in the spec:
From a storage driver perspective the first option is the most reasonable, and from a CO's perspective the third option is the most convenient, as it decouples volumes and snapshots, which makes sense for cases where snapshots are really off-premise backups that are uploaded as a post-processing operation and the cut snapshot is deleted after the post-processing.
The text was updated successfully, but these errors were encountered: