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 adoption of orphan DataVolumes #5595
Conversation
Thanks @zcahana . Can you please add to the description what is the observed error and how to produce it ? |
Added. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mhenriks 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 |
Signed-off-by: Zvi Cahana <zvic@il.ibm.com>
@mhenriks Hi Michael, I've made a tiny change to the test as per @ezrasilvera's comment, can you please reapprove? |
/lgtm |
@mhenriks do we need to backport this bugfix to previous releases? Based on the backporting policy it seems to be eligible for backporting, but is there any criteria to determine what eligible bugfixes are actually backported? |
There's no criteria. The policy is intentionally vague there. As it is today, anyone who wants to backport a bugfix can do that to any stable branch |
Very well. So based on the unformal criteria of "is anyone likely to hit this bug", I think we can skip backporting it. |
What this PR does / why we need it:
Fixes a bug in the DataVolumes adoption logic, which tries to patch a VMI (add an ownerReference) instead of patching the DV.
The observed behavior is that the DV is left unclaimed, which manifests itself in several ways:
Steps to reproduce (using this example VM):
Special notes for your reviewer:
Also added a unit test to cover this behavior.
Release note: