Minikube: Deleted hostpath PVs stuck in released state after minikube restart

Created on 20 Jun 2019  路  6Comments  路  Source: kubernetes/minikube

Dynamically provisioned PVs are stuck in the released state if minikube is restarted before deleting the pvc. It seems that the Provisioner Identity changes on reboot which causes the hostpath provisioner to ignore the PV.

The exact command to reproduce the issue:

cat << EOF | kubectl apply -f -
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: mypvc
spec:
  resources:
    requests:
      storage: 10Mi
  accessModes:
    - ReadWriteOnce
EOF

minikube stop
minikube start
kubectl delete pvc mypvc
kubectl get pv

The full output of the command that failed:

$ minikube ssh tail /tmp/storage-provisioner.INFO
...
I0620 17:17:11.727823       1 controller.go:1040] deletion of volume "pvc-8674aa0d-937a-11e9-b2aa-000c29bcb67d" ignored: ignored because identity annotation on PV does not match ours

The output of the minikube logs command:
N/A

The operating system version:
MacOS 10.14.5
minikube v1.1.1
kubernetes 1.14.3

addostorage-provisioner kinbug omacos prioritawaiting-more-evidence

All 6 comments

Reason of this issue: After minikube restart, the hostPathProvisionerIdentity was changed, that's why report deletion failed.

This issue could be reproduced easily with the steps as logged. But I am afraid this can't be fixed by minikube code. After VM restart, the sandbox ID was changed also.

AFAIK, this is still an issue with minikube v1.4 as we have not yet swapped out the storage provisioner addon used.

I believe this is Dupe of https://github.com/kubernetes/minikube/issues/4546

if you don't mind I will close this issue in favor ohttps://github.com/kubernetes/minikube/issues/4546 to cenetralize the work on the issue.

Still an issue under 1.6.1. Note that @medyagh dupe reference is a self reference to this very issue.
Any advice/workaround how to kick PV out appreciated.

Yes still have this probem.
There is no duplicated issue : #4546 is this issue itself.
@medyagh I think that you can reopen this issue

Was this page helpful?
0 / 5 - 0 ratings