-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 is not getting cleaned up for the restored volumes #3470
Comments
cc: @nrb |
Get the same error on Azure, here is the original PV:
And here is the one after restoring:
|
This issue only happens on the clusters that have no in-tree volume drivers. When a volume is being deleted, the func (ctrl *PersistentVolumeController) findDeletablePlugin(volume *v1.PersistentVolume) (vol.DeletableVolumePlugin, error) is called to find the corresponding plugin/driver. The function tries to get the driver name from the annotation For the PV restored by velero, as velero removes the annotation So taking the annotation |
…storing PVs More details please refer to vmware-tanzu#3470 (comment) Fixes vmware-tanzu#3470 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
More details please refer to vmware-tanzu#3470 (comment) Fixes vmware-tanzu#3470 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
More details please refer to vmware-tanzu#3470 (comment) Fixes vmware-tanzu#3470 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
More details please refer to vmware-tanzu#3470 (comment) Fixes vmware-tanzu#3470 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
More details please refer to vmware-tanzu#3470 (comment) Fixes vmware-tanzu#3470 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
More details please refer to vmware-tanzu#3470 (comment) Fixes vmware-tanzu#3470 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
More details please refer to vmware-tanzu#3470 (comment) Fixes vmware-tanzu#3470 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
More details please refer to vmware-tanzu#3470 (comment) Fixes vmware-tanzu#3470 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
More details please refer to vmware-tanzu#3470 (comment) Fixes vmware-tanzu#3470 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
More details please refer to vmware-tanzu#3470 (comment) Fixes vmware-tanzu#3470 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
…PVs (#232) More details please refer to vmware-tanzu#3470 (comment) Fixes vmware-tanzu#3470 Signed-off-by: Wenkai Yin(尹文开) <[email protected]> Signed-off-by: Wenkai Yin(尹文开) <[email protected]> Co-authored-by: Wenkai Yin(尹文开) <[email protected]>
What steps did you take and what happened:
Restored the namespace which has 2 pods and corresponding pvcs using openebs/velero-plugin. When I am deleting the restored namespace, pv remains there in the system with the error
What did you expect to happen:
PV to be cleand up. PVC and pods gets cleaned up but not the PV.
Anything else you would like to add:
I think this change (#3007) caused the issue. k8s checks the annotation
pv.kubernetes.io/provisioned-by
to find the plugin related information which has been cleaned up in this PR. Now k8s assumes that pv is statically provisioned and throws error.This works fine with 1.5.1 and lower releases. The issue is there with 1.5.2 and 1.5.3.
The text was updated successfully, but these errors were encountered: