Skip to content
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

Deletion of zfspv-snapshot stucked when cloned-pvc is not in bound state (i.e. pendig state) #103

Closed
w3aman opened this issue Feb 19, 2020 · 1 comment
Assignees

Comments

@w3aman
Copy link
Contributor

w3aman commented Feb 19, 2020

Description

Created the clone from the snapshot of zfspv. But this cloned-pvc is in pending state due to volumeBinding mode is set as waitForFirstConsumer.
Now if we try to delete snapshot while clone-pvc is in pending this deletion task gets stuck. Not able to delete the snapshot.

Expected Behavior

Snapshot deletion should not stuck when pvc is in pending state.

Current Behavior

Snapshot deletion is failing only when clone-pvc is in pending state. when clone-pvc is bound and we try to delete the snapshot , that is working fine. Able to delete the snapshot CR

@pawanpraka1 pawanpraka1 self-assigned this Feb 20, 2020
@pawanpraka1 pawanpraka1 transferred this issue from openebs/openebs May 5, 2020
@pawanpraka1
Copy link
Contributor

This is expected behavior. If volume is being created from snapshot, the snapshot deletiog will fail.
Here, because of waitforfirstconsumer the pvc is in pending state and it will be bound only when there is an application running. So we can not delete the snapshot utill pvc bound operation completes.

https://github.com/kubernetes-csi/external-snapshotter/blob/aafeee9c56d35288a3ee27deefe07659f589b34e/pkg/common-controller/snapshot_controller.go#L805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants