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

Fix: skip not mounted volumes when backing up #4497

Closed
wants to merge 7 commits into from

Conversation

dkeven
Copy link

@dkeven dkeven commented Jan 6, 2022

Signed-off-by: dkeven keven@kubesphere.io

Thank you for contributing to Velero!

Please add a summary of your change

As mentioned in #4495, unused volumes should be skipped when creating PodVolumeBackups, just like how the kubelet's volume manager handles it.

This PR adds this skipping logic.

Since restic backup for block mode volumes is not supported now (#2780), and should fail to avoid ambiguous behavior, this PR only checks volume against volumeMounts instead of volumeDevices. (Or should the unused devices be included too?)

I've built an image and tested in my own environment.

Does your change fix a particular issue?

Fixes #4495

Please indicate you've done the following:

  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Created a changelog file or added /kind changelog-not-required as a comment on this pull request.
  • Updated the corresponding documentation in site/content/docs/main.

Signed-off-by: dkeven <keven@kubesphere.io>
qiuming-best and others added 4 commits January 19, 2022 15:09
Signed-off-by: Ming <mqiu@vmware.com>
… and restore (vmware-tanzu#4083)

* vmware-tanzu#4067 Initial design of the new plugins - pre-post backup and restore

Signed-off-by: Rafael Brito <rbrito@vmware.com>

* Update new-prepost-backuprestore-plugin-hooks.md

* Updated design doc as per feedback

Signed-off-by: Rafael Brito <rbrito@vmware.com>

* Adding design changes as per feedback

* Update design on prepost-backup-restore plugins

* More color on how to call plugins

Signed-off-by: Rafael Brito <rbrito@vmware.com>

* Proposing annotations to skip plugin execution

Signed-off-by: Rafael Brito <rbrito@vmware.com>
Signed-off-by: danfengl <danfengl@vmware.com>
@qiuming-best
Copy link
Contributor

LGTM

…ball-in-pr-ci

Upload debug tarball in PR CI E2E pipeline
Copy link
Contributor

@reasonerjt reasonerjt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Fix: skip not mounted volumes when backing up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unmounted volumes cause backup to be PartiallyFailed
5 participants