-
Notifications
You must be signed in to change notification settings - Fork 80
Adds kopia/restic uploader type #1102
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
Conversation
Skipping CI for Draft Pull Request. |
01c5186
to
ac25c81
Compare
dc0cc1e
to
65281de
Compare
Looks like timeout isn't being set properly with nodeAgentConfig. If you add timeout to restic, it's pulled into the velero deployment, but if you add to nodeAgentConfig it's not. Here's where you need to check for nodeAgentConfig and then restic, rather than just restic:
|
Other than the timeout config bug, I was able to successfully back up and restore the OADP mysql-persistent testing app with kopia fs backup using this PR. |
@sseago nice! Thanks for testing mysql-persistent. If mysql db was successful w/ just a regular kopia backup then we have at least a data point to investigate https://issues.redhat.com/browse/OADP-2360 w/ kopia + DM. Thank you! |
37a2ec2
to
7c07be1
Compare
e8a7f5c
to
9733d40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. One additional thing -- for final merge, it's better to remove code we don't want than just commenting it out.
9c00af6
to
50c061a
Compare
Implements: openshift#1101 Signed-off-by: Michal Pryc <[email protected]>
} | ||
// Append restic timeout option manually. Not configurable via install package, missing from podTemplateConfig struct. See: https://github.com/vmware-tanzu/velero/blob/8d57215ded1aa91cdea2cf091d60e072ce3f340f/pkg/install/deployment.go#L34-L45 | ||
veleroContainer.Args = append(veleroContainer.Args, fmt.Sprintf("--fs-backup-timeout=%s", fsBackupTimeout)) | ||
// Append FS timeout option manually. Not configurable via install package, missing from podTemplateConfig struct. See: https://github.com/vmware-tanzu/velero/blob/8d57215ded1aa91cdea2cf091d60e072ce3f340f/pkg/install/deployment.go#L34-L45 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed issue: vmware-tanzu/velero#6700
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kaovilai, mpryc, shubham-pampattiwar, sseago The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
@mpryc: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Implements #1101 part of the #1046
Testing instructions:
5a. You may want to use the following patch to not install or symlink podman to docker:
$ patch -p1 < /below/patch/file/location.diff
5b. Build and deploy OADP from this PR:
restic
orkopia
and ensure to useunsupportedOverrides
with providedveleroImageFqin
Make sure to specify the
backupLocations
accordingly to your cluster configuration ands3
bucketPart of the DPA for restic:
And for Kopia
Backup
object to trigger backup, ensure to includedefaultVolumesToFsBackup: true