-
Notifications
You must be signed in to change notification settings - Fork 5k
Deleting persistent volume claims and persistend volumes on a multi-node minikube cluster does not delete files from disk #13320
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
So the volume for the first node is removed, but the volume for the second node is not ? Sounds like a bug, if so. Probably not only the storage provisioner in that case, but everything else stored under |
Exactly. How to reproduce: Install the attached manifest. It will create two pods with PVs. Visit each pod and touch a file in its persistent volume, then find the files on the host machine: # find minikube*/ -type f | grep ubu
minikube/test/bigdisk-ubuntu-1/ubuntu-1.txt
minikube-m02/test/bigdisk-ubuntu-0/ubuntu-0.txt
# Remove the manifest and the PVCs. The file on one of the nodes will remain, which I think is incorrect and inconsistent behaviour: # find minikube*/ -type f | grep ubu
minikube-m02/test/bigdisk-ubuntu-0/ubuntu-0.txt
# |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
I think I am seeing this as well. When I perform a
Fedora 37 |
I can confirm this, too. |
Me too |
same problem |
I am having this occur with a single node minikube cluster as well. If a reproduction of this as well would be helpful, please let me know. |
Same issue:
|
What Happened?
When deleting PVCs and PVs on a multi-node minikube cluster, these resources are reported as non-existent by
kubectl get pvc
andkubectl get pv
but the actual files remain on disk under/var/lib/docker/volumes/minikube-m02/_data/hostpath-provisioner/...
Thus the old data can be unexpectedly resurrected when you redeploy a StatefulSet, for example.How to reproduce
What I expected
Those on-disk files should be wiped out when the corresponding PVs disappear from
kubectl get pv
output.Workaround
Delete the files manually or use a single-node minikube cluster.
Attach the log file
This is minikube version: v1.24.0 on Manjaro Linux. The cluster was created as
minikube start --disk-size=50g --nodes=2 --cni="calico" --insecure-registry="192.168.38.0/24"
Operating System
Other
Driver
Docker
The text was updated successfully, but these errors were encountered: