-
Notifications
You must be signed in to change notification settings - Fork 42
Do not skip PVC when building VMIs resaources graph during restore item action. #349
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
Do not skip PVC when building VMIs resaources graph during restore item action. #349
Conversation
|
Hi @amastbau. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
|
/cc @alromeros |
ShellyKa13
left a comment
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, I would say that it will be good to also explain the issue in the commit message.
Also missing a UT for this
And I believe this change justifies a release note since it fixes a bug
test container based vm's restore via selectorAll passed Setup
BACKUP 3 cirros vm'se.g. from vm-1 backup resultsbackup describe https://termbin.com/ma7l Nuke the vm's from orbitRestore ALLNuke all, restore 1 vm via selectorNuke all, restore 1 vm ( second vm) via selector |
e1433ea to
2c1b9c1
Compare
alromeros
left a comment
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, just couple of comments
2c1b9c1 to
df0cf1f
Compare
df0cf1f to
66774ab
Compare
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ShellyKa13 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Nit but could you fix the typos in the commit name? |
during restore item action. In order to restore one or more Virtual Machines out of many in the SAME namespace, velero offers restoring by resource label. When using a label selector, any resource not including the restore label are excluded by velero. That might include other resources that are quieted for the VM, such as datavolumes and PVCs. In order to resolve this, we already include any additional required resource in a graph which is return to velero for backup/restore even if those resources do not include matching label. With this PR we are removing a condition results in excluding PVC for datavolume type VM volume from the graph, and a the datavolume pending for ever for the existence of the associated PVC after restore. Signed-off-by: Amos Mastbaum <[email protected]>
66774ab to
b331f12
Compare
ShellyKa13
left a comment
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.
Thanks approving with the approval of @alromeros
/lgtm
In order to restore one or more Virtual Machines out of many in the SAME namespace, velero offers restoring by resource label.
When using a label selector, any resource not including the restore label are excluded by velero.
That might include other resources that are quieted for the VM, such as datavolumes and PVCs.
In order to resolve this, we already include any additional required resource in a graph which is return to velero for backup/restore even if those resources do not include matching label.
With this PR we are removing a condition results in excluding PVC for datavolume type VM volume from the graph, and a the datavolume pending for ever for the existence of the associated PVC after restore.
fixes issue: https://issues.redhat.com/browse/OADP-5608
How to test?
Deploy the following VM, with DataVolume type volume and a label.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Release note: