Skip to content

Commit c0c789c

Browse files
committed
linstor: switch from sr_disks_for_all_hosts to pool_with_unused_disk
Signed-off-by: Yann Dirson <[email protected]>
1 parent 17c80f2 commit c0c789c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/storage/linstor/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
LINSTOR_PACKAGE = 'xcp-ng-linstor'
1313

1414
@pytest.fixture(scope='package')
15-
def lvm_disks(host, sr_disks_for_all_hosts, provisioning_type):
15+
def lvm_disks(pool_with_unused_disk, unused_disks, provisioning_type):
1616
"""
1717
Common LVM PVs on which a LV is created on each host of the pool.
1818
@@ -23,10 +23,10 @@ def lvm_disks(host, sr_disks_for_all_hosts, provisioning_type):
2323
Return the list of device node paths for that list of devices
2424
used in all hosts.
2525
"""
26-
devices = [f"/dev/{disk}" for disk in sr_disks_for_all_hosts]
27-
hosts = host.pool.hosts
26+
hosts = pool_with_unused_disk.hosts
2827

2928
for host in hosts:
29+
devices = [f"/dev/{disk}" for disk in unused_disks[host][0:1]]
3030
for device in devices:
3131
try:
3232
host.ssh(['pvcreate', '-ff', '-y', device])

0 commit comments

Comments
 (0)