Enhance block device management#498
Open
glehmann wants to merge 3 commits intogln/migration-test-cleanup-and-setup-lvmvfrom
Open
Enhance block device management#498glehmann wants to merge 3 commits intogln/migration-test-cleanup-and-setup-lvmvfrom
glehmann wants to merge 3 commits intogln/migration-test-cleanup-and-setup-lvmvfrom
Conversation
This was referenced Apr 24, 2026
1168197 to
f101a3f
Compare
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>
f101a3f to
ede9108
Compare
e0dd6d1 to
edb6dbf
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 stack containing 18 PRs:
master