Skip to content

Enhance block device management#498

Open
glehmann wants to merge 3 commits intogln/migration-test-cleanup-and-setup-lvmvfrom
gln/block-device-enhancement-and-lun-deduplication-rqtm
Open

Enhance block device management#498
glehmann wants to merge 3 commits intogln/migration-test-cleanup-and-setup-lvmvfrom
gln/block-device-enhancement-and-lun-deduplication-rqtm

Conversation

@glehmann
Copy link
Copy Markdown
Member

@glehmann glehmann commented Apr 24, 2026

Replace the BlockDeviceInfo TypedDict and the per-call disk_is_available()
check with a dataclass that includes availability as a field, determined once
at scan time using mountpoint, mdadm, LVM, and ZFS checks. Extend enumeration
to cover mdadm arrays and multipath devices in addition to local disks. Update
all callers to use attribute access instead of dict subscript.

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
zpool destroy removes the pool but leaves ZFS member signatures and the
partition table on disk, causing the device to appear in use on the next
test run.

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
Add a WWN field to BlockDeviceInfo (populated from lsblk for local disks,
and from the DM alias for mpath devices). In the disks fixture, use WWNs to:

- Mark a LUN unavailable on all hosts if it is already in use on any host
  (cross-host deduplication for shared FC/iSCSI LUNs).
- Sort LUNs listed in LVMOHBA_DEVICE_CONFIG or LVMOISCSI_DEVICE_CONFIG to
  the end of each host's disk list, so they are only selected by other tests
  when no other disk is available.

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
@glehmann glehmann force-pushed the gln/block-device-enhancement-and-lun-deduplication-rqtm branch from f101a3f to ede9108 Compare April 29, 2026 17:38
@glehmann glehmann requested a review from a team as a code owner April 29, 2026 17:38
@glehmann glehmann force-pushed the gln/migration-test-cleanup-and-setup-lvmv branch from e0dd6d1 to edb6dbf Compare April 29, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant