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

block_hotplug_with_max_map_count: creates new test case #4225

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

Conversation

mcasquer
Copy link
Contributor

@mcasquer mcasquer commented Dec 2, 2024

block_hotplug_with_max_map_count: creates new test case

Creates new test case that boots up a VM with a small max_map_count,
then hotplugs 15 disks and checks the VM status.

Signed-off-by: mcasquer [email protected]
ID: 3130

@mcasquer
Copy link
Contributor Author

mcasquer commented Dec 2, 2024

 (1/1) Host_RHEL.m9.u6.ovmf.qcow2.virtio_blk.up.virtio_net.Guest.RHEL.9.6.0.x86_64.io-github-autotest-qemu.block_hotplug_with_max_map_count.q35: STARTED
 (1/1) Host_RHEL.m9.u6.ovmf.qcow2.virtio_blk.up.virtio_net.Guest.RHEL.9.6.0.x86_64.io-github-autotest-qemu.block_hotplug_with_max_map_count.q35: PASS (61.24 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

@mcasquer mcasquer marked this pull request as ready for review December 2, 2024 14:03
@mcasquer
Copy link
Contributor Author

mcasquer commented Dec 2, 2024

@qingwangrh please could you review this PR? Thanks!

@mcasquer
Copy link
Contributor Author

This is a kindly reminder, @qingwangrh please could you review this PR? Thanks !

maxmem_mem = 80G
mem = 4096
pcie_extra_root_port = 30
images += " stg1 stg2 stg3 stg4 stg5 stg6 stg7 stg8 stg9 stg10 stg11 stg12 stg13 stg14 stg15 stg16 stg17"
Copy link
Contributor

Choose a reason for hiding this comment

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

suggest using extra_image_number to define the additional images, you already support dynamic create images. it is more flexible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Included !

:param env: Dictionary with test environment
"""

process.system("sysctl vm.max_map_count=3072", shell=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

could you please add reading value and store, then write it back after testing in final block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done !

timeout = params.get_numeric("login_timeout", 240)
img_list = params.get("images").split()[3:]

for img in img_list:
Copy link
Contributor

Choose a reason for hiding this comment

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

for idx in range(extra_image_number):
img="img"+idx
....
you may define the var name you feel good.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated !

Creates new test case that boots up a VM with a small max_map_count,
then hotplugs 15 disks and checks the VM status.

Signed-off-by: mcasquer <[email protected]>
@mcasquer mcasquer force-pushed the 3130_max_map_count_disk_hotplug branch from b95de9d to 82351a8 Compare December 11, 2024 09:06
@mcasquer
Copy link
Contributor Author

 (1/1) Host_RHEL.m9.u6.ovmf.qcow2.virtio_blk.up.virtio_net.Guest.RHEL.9.6.0.x86_64.io-github-autotest-qemu.block_hotplug_with_max_map_count.q35: STARTED
 (1/1) Host_RHEL.m9.u6.ovmf.qcow2.virtio_blk.up.virtio_net.Guest.RHEL.9.6.0.x86_64.io-github-autotest-qemu.block_hotplug_with_max_map_count.q35: PASS (56.46 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

@mcasquer
Copy link
Contributor Author

@qingwangrh please could you review again this PR? Thanks !

@mcasquer
Copy link
Contributor Author

@zhencliu @YongxueHong could you also review this PR? Thanks

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.

2 participants