Skip to content

Commit

Permalink
Merge pull request #5432 from smitterl/multidisk_blocksize
Browse files Browse the repository at this point in the history
virtual_disk/multidisks: fix disk discovery
  • Loading branch information
Yingshun authored Feb 6, 2024
2 parents ce8c384 + 2844886 commit a3cb3b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libvirt/tests/src/virtual_disks/virtual_disks_multidisks.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,13 @@ def check_vm_block_size(targets_name, log_size, phy_size):
logging.info("Checking VM block size...")
try:
session = vm.wait_for_login()
new_disks = libvirt_disk.get_non_root_disk_names(session)
new_disk_names = [disk_info[0] for disk_info in new_disks]
# Here the script needs wait for a while for the guest to
# recognize the block on PPC
add_sleep()
for target in targets_name:
cmd = "cat /sys/block/%s/queue/" % target
for disk_name in new_disk_names:
cmd = "cat /sys/block/%s/queue/" % disk_name
s, o = session.cmd_status_output("%slogical_block_size"
% cmd)
logging.debug("logical block size in VM:\n%s", o)
Expand Down

0 comments on commit a3cb3b1

Please sign in to comment.