Skip to content

[controller] Fix LVMVolumeGroup spec.blockDeviceSelector update Issue #130

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

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

AleksZimin
Copy link
Member

@AleksZimin AleksZimin commented Feb 26, 2025

Description

This PR addresses an issue where the spec.blockDeviceSelector field of an existing LVMVolumeGroup resource was not updating during reconciliation, even when new physical volumes (PVs) were manually added on the node to the corresponding LVM Volume Group. With this fix, the spec.blockDeviceSelector now correctly reflects all associated BlockDevice resources, ensuring accurate representation of the volume group's state.

Why do we need it, and what problem does it solve?

Previously, when new BlockDevice resources were manually introduced to an existing LVM Volume Group on a node, the spec.blockDeviceSelector field in the corresponding LVMVolumeGroup resource remained unchanged. This discrepancy could lead to mismanagement of storage resources and potential inconsistencies in volume group configurations. By ensuring that spec.blockDeviceSelector is updated appropriately, we maintain consistency between the actual state of the LVM Volume Group and its representation within Kubernetes.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
@AleksZimin AleksZimin self-assigned this Feb 26, 2025
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
@AleksZimin AleksZimin changed the title Fix lvg discover [controller] Fix LVMVolumeGroup spec.blockDeviceSelector update Issue Feb 26, 2025
@AleksZimin AleksZimin requested review from duckhawk and astef February 26, 2025 20:35
@AleksZimin AleksZimin marked this pull request as ready for review February 26, 2025 20:35
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
@AleksZimin AleksZimin added the bug Something isn't working label Feb 26, 2025
Signed-off-by: Anton Sergunov <anton.sergunov@flant.com>
Signed-off-by: Anton Sergunov <anton.sergunov@flant.com>
Signed-off-by: Anton Sergunov <anton.sergunov@flant.com>
Signed-off-by: Anton Sergunov <anton.sergunov@flant.com>
Signed-off-by: Anton Sergunov <anton.sergunov@flant.com>
Signed-off-by: Anton Sergunov <anton.sergunov@flant.com>
@astef astef assigned asergunov and unassigned astef Apr 4, 2025
@asergunov asergunov requested a review from astef April 8, 2025 10:05
Co-authored-by: Aleksandr Stefurishin <aleksandr.stefurishin@flant.com>
Signed-off-by: Anton Sergunov <setosha@gmail.com>
@asergunov asergunov marked this pull request as draft April 11, 2025 04:41
@asergunov
Copy link
Contributor

This is a quick fix. We are going to implement proper one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants