Skip to content

Commit 2118545

Browse files
tests/storage/linstor: Enhanced LVM cleanup with pvremove on all volume group devices.
Signed-off-by: Rushikesh Jadhav <[email protected]>
1 parent a2f6792 commit 2118545

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/storage/linstor/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ def lvm_disks(host, sr_disks_for_all_hosts, provisioning_type):
3737
yield devices
3838

3939
for host in hosts:
40+
devices = host.ssh('vgs ' + GROUP_NAME + ' -o pv_name --no-headings').split("\n")
4041
host.ssh(['vgremove', '-f', GROUP_NAME])
4142
for device in devices:
42-
host.ssh(['pvremove', device])
43+
host.ssh(['pvremove -ff -y', device.strip()])
4344

4445
@pytest.fixture(scope="package")
4546
def storage_pool_name(provisioning_type):

0 commit comments

Comments
 (0)