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

PV with reclam policy can never be claimed again in vclusters #1464

Open
jpuyobro opened this issue Jan 22, 2024 · 4 comments · May be fixed by #1723
Open

PV with reclam policy can never be claimed again in vclusters #1464

jpuyobro opened this issue Jan 22, 2024 · 4 comments · May be fixed by #1723
Assignees

Comments

@jpuyobro
Copy link

jpuyobro commented Jan 22, 2024

What happened?

With a Vcluster (with persistentVolumes enabled, nodes sync enabled, hoststorageClasses enabled, A volume created with Reclaim policy can never be reclaim. The PV never return to "Available" state.

What did you expect to happen?

We should be able to reclaim this PV inside a vcluster and attach it again.

How can we reproduce it (as minimally and precisely as possible)?

How to reproduce :

  1. In a vCluster Create a PVC with reclaim policy set to retain, a PV is created
  2. Remove the pods using it
  3. Delete the PVC: the PV go to state "Released"
  4. Edit the PV to remove in the spec the "claimRef" part
    In a non-vcluster env, the PV goes to state "Available" and can be claimed again
    In a vcluster env, the PV stays in the state "Released" and a claimRef is added (it can't be removed). The claim ref is the claim information on "host" cluster

Anything else we need to know?

No response

Host cluster Kubernetes version

$ kubectl version
v1.28.0

Host cluster Kubernetes distribution

# Write here

vlcuster version

$ vcluster --version
0.18.1

Vcluster Kubernetes distribution(k3s(default)), k8s, k0s)

v1.28.2+k3s1

OS and Arch

OS: Talos
Arch:
@jpuyobro
Copy link
Author

Hey guys, Any news on that one ?

@ThomasK33
Copy link
Member

Hey @jpuyobro, thanks for opening the issue. I'll look into reproducing this behavior.

@alexandradragodan alexandradragodan added the OSS label Feb 19, 2024 — with Linear
@linear linear bot assigned facchettos and unassigned ThomasK33 Feb 28, 2024
@jpuyobro
Copy link
Author

Hey guys, any news on this issue ?

@facchettos
Copy link
Contributor

Hi, sorry for the delayed answer, I have been able to reproduce it on our latest version, I am looking into it

@facchettos facchettos linked a pull request Apr 29, 2024 that will close this issue
@deniseschannon deniseschannon removed the OSS label May 7, 2024
@deniseschannon deniseschannon added the bug label May 8, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants