Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

case update: add new disk to check domblkthreshold #5938

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nanli1
Copy link
Contributor

@nanli1 nanli1 commented Oct 14, 2024

xxxx-294599: Do domblkthreshold for device with backing chain element
Signed-off-by: nanli [email protected]

 avocado run --vt-type libvirt --test-runner=runner --vt-machine-type q35 backingchain.virsh_domblk

 (1/2) type_specific.io-github-autotest-libvirt.backingchain.virsh_domblk.backing_target: PASS (117.66 s)
 (2/2) type_specific.io-github-autotest-libvirt.backingchain.virsh_domblk.entire_disk: PASS (100.99 s)

   xxxx-294599: Do domblkthreshold for device with backing chain element
Signed-off-by: nanli <[email protected]>
Copy link
Contributor

@chunfuwen chunfuwen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

test_obj.backingchain_common_setup(create_snap=True,
snap_num=4)
snap_num=4, extra=snap_extra)
test.log.debug(vm_xml.VMXML.new_from_dumpxml(vm.name))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to add stdout_text to make the output more clear to debug.

domblk_threshold = '1'
actual_domblk = "1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From our discussion, I think actual_threshold is more better to describe the expected bytes.

actual_domblk = "1"
disk_type = "file"
disk_image_format = "raw"
disk_dict = {"type_name":"${disk_type}", "target":{"dev": "${target_disk}", "bus": "virtio"}, "driver": {"name": "qemu", "type":"raw"}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variant disk_image_format is not used here. I think maybe you want to use it to instead type:

disk_dict = {......"driver": {"name": "qemu", "type": "${disk_image_format}"}}

A space also should be added after "type":.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants