-
Notifications
You must be signed in to change notification settings - Fork 42
OCPBUGS-44377: Add migration logic for wipe refactor #779
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-44377: Add migration logic for wipe refactor #779
Conversation
Skipping CI for Draft Pull Request. |
@suleymanakbas91: This pull request references Jira Issue OCPBUGS-44377, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: 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 openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
/test all |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #779 +/- ##
==========================================
+ Coverage 69.45% 69.54% +0.08%
==========================================
Files 49 50 +1
Lines 3415 3451 +36
==========================================
+ Hits 2372 2400 +28
- Misses 861 865 +4
- Partials 182 186 +4
|
Signed-off-by: Suleyman Akbas <[email protected]>
5edab61
to
6dc6355
Compare
@suleymanakbas91: This pull request references Jira Issue OCPBUGS-44377, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: 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 openshift-eng/jira-lifecycle-plugin repository. |
/hold for further testing |
@suleymanakbas91: 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-sigs/prow repository. I understand the commands that are listed here. |
/lgtm |
/unhold |
@suleymanakbas91: Jira Issue OCPBUGS-44377: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-44377 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 openshift-eng/jira-lifecycle-plugin repository. |
/cherry-pick release-4.17 |
@suleymanakbas91: new pull request created: #781 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-sigs/prow repository. |
This PR introduces migration logic for updates to the wipe feature in version 4.17. Previously, the LVM Operator used the
LVMVolumeGroupNodeStatus
resource to verify if a device was wiped—if the device appeared in a VG underLVMVGStatus
, it was considered wiped. In 4.17, we refactored this approach to rely on thewiped.devices.lvms.openshift.io
annotation within anLVMVolumeGroup
, indicating whether all devices in the VG have been wiped. However, during upgrades from 4.16 to 4.17 or 4.18, the LVM Operator would re-wipe devices due to the missing annotation. This migration logic resolves that by checking existingLVMVolumeGroupNodeStatus
resources in the operator namespace and applying the necessary annotations toLVMVolumeGroups
.