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

OADP-1004: Pods with a restic backup are excluded from being restored when they have no backup annotation #96

Closed
bo0ts opened this issue Aug 2, 2021 · 17 comments
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@bo0ts
Copy link

bo0ts commented Aug 2, 2021

I've reported openshift/oadp-operator#158 but it seems that this is a issue with the openshift-velero-plugin. Feel free to ask for additional information if the linked issue isn't sufficient.

@sseago
Copy link
Contributor

sseago commented Aug 2, 2021

@bo0ts Yes, this is an issue in the plugin. Pods with owner references are normally excluded from the restore when they have owner references (since the deployment, etc. will recreate them anyway). But we make an exception to this for pods with restic annotations -- at the time this plugin code was developed, restic annotations were the only way to trigger restic backups. The "default to restic" option is newer, and the plugin didn't follow through. We need to also make an exception for all pods with volumes if the "default to restic" option is enabled.

@DoGab
Copy link

DoGab commented Sep 27, 2021

I have encountered the same problem. The volume was correctly backuped using restic into the S3 bucket and a podvolumebackup resource was created. But after the restore no podvolumerestore resource was created and the volume was not restored. When will this be fixed?

When annotating the pods like in previous velero versions and described here the restore works.

@madchr1st
Copy link

I am hitting the same issue.

When using defaultVolumesToRestic in the backup CR, the volumes are backed up correctly with restic, but the volumes are not restored afterwards (only recreated, empty).

With the restore only working with the use of pod annotations, this is IMHO not suitable for production at the moment.

Is there any way we can support you in resolving this issue?

@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 6, 2022
@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 8, 2022
@DoGab
Copy link

DoGab commented Mar 9, 2022

/remove-lifecycle rotten

@openshift-ci openshift-ci bot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Mar 9, 2022
@DoGab
Copy link

DoGab commented Mar 9, 2022

When is this going to be fixed? Still an issue with the "stable" version of ADP.

@kaovilai
Copy link
Member

kaovilai commented Mar 9, 2022

volumes are not restored afterwards (only recreated, empty).

I wonder if the pod that was restored with data got killed in favor of a different pod created by owners (deployment etc.)

@louise-zhang
Copy link

Hi there, is there any update on this issue? I am experiencing the same issue as @DoGab #96 (comment)

@kaovilai
Copy link
Member

kaovilai commented Mar 23, 2022

For those that do not require restic, try to use CSI snapshot instead which is working now.

Example in oadp blog

@louise-zhang
Copy link

I think this issue has been resolved with latest OADP operator: oadp-operator.v1.0.2
Have tested backup and restore volume without adding pod annotations, backup and restore are successful. (it didn't work with oadp-operator.v1.0.1)

@VphDreamer
Copy link

Hello, I am having the same issue using oadp-operator v1.0.3

@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 20, 2022
@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 20, 2022
@kaovilai
Copy link
Member

/remove-lifecycle rotten.
/lifecycle frozen

@openshift-ci openshift-ci bot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Oct 29, 2022
@kaovilai kaovilai changed the title Pods with a restic backup are excluded from being restored when they have no backup annotation OADP-1004: Pods with a restic backup are excluded from being restored when they have no backup annotation Oct 29, 2022
@kaovilai
Copy link
Member

kaovilai commented Dec 8, 2022

Can you all confirm if problem exists in 1.1?

@kaovilai
Copy link
Member

kaovilai commented Dec 8, 2022

IIUC this was fixed in #102 and is duped of openshift/oadp-operator#74 closing.

@kaovilai kaovilai closed this as completed Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

No branches or pull requests

8 participants