Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

[edge case] create a pvc, delete the pv, delete the pvc, volume isn’t deleted #53

Closed
clanstyles opened this issue Oct 15, 2019 · 2 comments

Comments

@clanstyles
Copy link

clanstyles commented Oct 15, 2019

If you create a full StatefulSet/Deployment with a PV/PVC and manually remove them in the following order:

  1. Statefulset/Deployment
  2. PV
  3. PVC

It wont delete the actual PV from Packet.

Quick way to reproduce on the test cluster:

kubectl apply -f /root/csi-packet-master.bk/deploy/mysql-deployment.yaml
kubectl apply -f /root/csi-packet-master.bk/deploy/mysql-pass-cfg.yaml

kubectl delete deployment/wordpress-mysql
kubectl delete pv/...
kubectl delete pvc/...
@clanstyles clanstyles changed the title create a pvc, delete the pv, delete the pvc, volume isn’t deleted [edge case] create a pvc, delete the pv, delete the pvc, volume isn’t deleted Oct 15, 2019
@deitch
Copy link
Contributor

deitch commented Oct 16, 2019

Hi @clanstyles . I replicated this via the following:

  1. Create a pvc
  2. Watch it create the pv
  3. Try to delete the pv (while it is still bound to the pvc)
  4. It waits for the pvc to free up, which is as it should based on storage in use protection
  5. Delete the pvc
  6. The pv automatically gets deleted
  7. The DeleteVolume on the driver never is called - this is the bug

However, I think this is a CSI issue. I will raise it there.

@deitch
Copy link
Contributor

deitch commented Oct 16, 2019

Confirmed, this issue is a problem with the csi provisioner and not the Packet driver. You can follow the open issue here, which I am going to comment on.

In any case, I am going to close this, as it is not a Packet driver issue.

@deitch deitch closed this as completed Oct 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants