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

pb-5450: Added change to wait for the deletion of application pvc before switching to kdmp restore, when the csi restore failed. #338

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

siva-portworx
Copy link
Contributor

What this PR does / why we need it:

pb-5450: Added change to wait for the deletion of application pvc before switching to kdmp restore, when the csi restore failed.
Root cause:
If local csi restore fails, we will delete the PVC created to restore from local csi snapshot.
Will wait for the deletion of the PVC to complete by calling get PVC.
Otherwise, the PVC creation in the kdmp snapshot restore, does not creates the new PVC as we will use same name.

Which issue(s) this PR fixes (optional)
Closes # pb-5450

Special notes for your reviewer:

  1. Tested on the ocp cluster.
  2. On source OCP cluster took KDMP/CSI backup.
  3. On different dest OCP cluster try to restore, CSI restore failed as snapshot are not available ( exepected behaviour).
  4. Then it will automatically switch to KDMP snapshot and competed successfully.

switching to kdmp restore, when the csi restore failed.

This comment was marked as resolved.

This comment was marked as resolved.

@siva-portworx siva-portworx merged commit ab9ae1d into 1.2.11 Feb 1, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants