Skip to content

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 <[email protected]>
@AleksZimin AleksZimin self-assigned this Feb 26, 2025
Signed-off-by: Aleksandr Zimin <[email protected]>
Signed-off-by: Aleksandr Zimin <[email protected]>
Signed-off-by: Aleksandr Zimin <[email protected]>
Signed-off-by: Aleksandr Zimin <[email protected]>
@AleksZimin AleksZimin changed the title Fix lvg discover [controller] Fix LVMVolumeGroup spec.blockDeviceSelector update Issue Feb 26, 2025
@AleksZimin AleksZimin requested review from astef and duckhawk 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 <[email protected]>
@AleksZimin AleksZimin added the bug Something isn't working label Feb 26, 2025
@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 <[email protected]>
Signed-off-by: Anton Sergunov <[email protected]>
@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.

4 participants