Enhance block device management#498
Open
glehmann wants to merge 3 commits into
Open
Conversation
This was referenced Apr 24, 2026
f101a3f to
ede9108
Compare
e0dd6d1 to
edb6dbf
Compare
edb6dbf to
36bfb8c
Compare
ede9108 to
483adb0
Compare
36bfb8c to
bc1eab6
Compare
483adb0 to
1960a93
Compare
bc1eab6 to
be2cd1f
Compare
1960a93 to
8f39146
Compare
Base automatically changed from
gln/migration-test-cleanup-and-setup-lvmv
to
master
May 12, 2026 13:46
8f39146 to
2710827
Compare
Millefeuille42
approved these changes
May 13, 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>
2710827 to
9f88dc5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some block devices may be used to build other devices (mdadm, lvm) or be accessible on multiple hosts, but only usable on a single one at a time (fc, iscsi).
This PR is part of a tree containing 19 PRs:
mastermaster