-
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
Persistent Volume Claims Remain Pending and Timeout During Restore #7890
Comments
/assign |
I guess the This is deliberately to honor the That is to say, the current data movement restore doesn't work to restore volume data only for the ones with |
@yuanqijing Please help to share some details for your requirement on restoring volume data only (or why you don't want to restore entire workload including pods), so that we can prioritize our work on #7481 |
@Lyndon-Li Understood, the primary problem is whether to follow the storage class Upon reviewing the documentation on changing the PVC selected node, it appears that changing the node selector isn't feasible under the current implementation, due to this conflicting logic. Could we consider revising the design of the change-pvc-selected-node functionality? Specifically, might it be feasible to allow direct manual binding to a selected node if a user has explicitly chosen one, rather than waiting for a pod to consume the PVC? |
I don't think it is related to the node selecting, but it is all about the behavior of |
i think If we specify a node for the PVC (through node selecting), we don't need to care about following the WaitForFirstConsumer policy. We can manually bind a (restored)PV to this PVC, which is exactly what the Velero agent is supposed to do. However, the current Velero logic is still waiting for the annotation check, and now the node selecting is not take effect. |
I think you are trying to bypass what |
If all restored PVCs adhere to the WaitForFirstConsumer constraints, can it be understood that users cannot specify nodes for the PVCs? But, what is the purpose of the feature described at changing the PVC selected node, this allows user to select node for pvc. |
This is a good question, changing the PVC selected node is an old feature from PR #2377. As you can see from this comment , with the new versions of Kubernetes, the fix is not required --- the PVC could be re-provision if the node indicating by the annotation doesn't exist and the annotation will also be removed. Therefore, I think this RIA plugin is neither required nor working in the correct behavior in the new versions of Kubernetes. |
Thank you for your response. I appreciate the clarification and am looking forward to the community's resolution on this. |
We've decided to deprecate the Changing PVC selected-node feature from 1.15, opened issue #7904 for starting the deprecation process from 1.15. |
What steps did you take and what happened:
I attempted to restore only the PVCs using Velero. However, the restored PVCs remained in the Pending state and did not bind until the restore operation timed out.
step1: backup namespace default, this namespace only contains a bonded pvc object.
velero backup create vv2 --snapshot-move-data --include-namespaces default
step2: delete pvc.
step3: restore pvc from backup vv2.
velero restore create --from-backup vv2
the restore Phase is FinalizingPartiallyFailed.
What did you expect to happen:
the PVC should be restored.
The following information will help us better understand what's going on:
velero restore describe <restorename>
resultAnything else you would like to add:
the code remove
volume.kubernetes.io/selected-node
annotation, but velero agent is block on checking on this annotation.https://github.com/vmware-tanzu/velero/blob/main/pkg/restore/actions/csi/pvc_action.go#L156-L160
Environment:
velero version
): 1.14velero client config get features
): features:kubectl version
): 1.22/etc/os-release
):Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: