Skip to content

Commit

Permalink
Merge pull request autotest#5440 from meinaLi/logical_pool
Browse files Browse the repository at this point in the history
Storage: fix different results after restarting service for logical pool
  • Loading branch information
Yingshun committed Feb 7, 2024
2 parents 6dc1a9e + c432384 commit 86cce52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libvirt/tests/src/storage/virsh_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,9 @@ def check_pool_info(pool_info, check_point, value):
# pool as active. This is independent of autostart.
# So a directory based storage pool is thus pretty much always active,
# and so as the SCSI pool.
if pool_type not in ['dir', 'scsi', 'logical']:
if pool_type == 'disk' and libvirt_version.version_compare(8, 1, 0):
if pool_type not in ['dir', 'scsi']:
if (pool_type == 'disk' and libvirt_version.version_compare(8, 1, 0)) or \
(pool_type == 'logical' and libvirt_version.version_compare(9, 9, 0)):
utlv.check_exit_status(result)
else:
result = virsh.pool_start(pool_name, ignore_status=True)
Expand Down

0 comments on commit 86cce52

Please sign in to comment.