-
Notifications
You must be signed in to change notification settings - Fork 40
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
OCPBUGS-18397: fix: allow vg to be gone during deletion and pick up empty pvs #404
OCPBUGS-18397: fix: allow vg to be gone during deletion and pick up empty pvs #404
Conversation
Skipping CI for Draft Pull Request. |
@jakobmoellerdev: This pull request references Jira Issue OCPBUGS-18397, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
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. |
/test all |
a7321a4
to
b7d354a
Compare
/test all |
b7d354a
to
aa8c4db
Compare
/test all |
aa8c4db
to
b1bcedd
Compare
/test lvm-operator-e2e-aws-sno |
b1bcedd
to
485b2a2
Compare
485b2a2
to
a216a88
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #404 +/- ##
==========================================
- Coverage 55.44% 55.01% -0.44%
==========================================
Files 27 27
Lines 2303 2341 +38
==========================================
+ Hits 1277 1288 +11
- Misses 939 965 +26
- Partials 87 88 +1
|
@jakobmoellerdev: 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. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jakobmoellerdev, suleymanakbas91 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 |
@jakobmoellerdev: Jira Issue OCPBUGS-18397: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-18397 has been moved to the MODIFIED state. In response to this:
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. |
This allows the Volume Group in LVM to be gone during deletion and it will not error out. Also, since this results in the PV to sometimes still be present and have LVM2_member flag even though its completely empty, I changed the valid filesystem signature flag to allow LVM2_member devices under the condition that:
I also made sure to extend the pvs output to read out the UUID and remove them from the lvmdevices file with lvmdevices --delpvid after pvremove. This makes sure that the PV is not picked up anymore as valid device in any case. if it is not present in the device list, we just ignore it as we assume pvremove did a full cleanup.
This results in the fact that an empty PV (pvcreate without vgcreate) can now be picked up by LVM operator.