-
Notifications
You must be signed in to change notification settings - Fork 173
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
base: master
Are you sure you want to change the base?
Conversation
|
@qingwangrh please could you review this PR? Thanks! |
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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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]>
b95de9d
to
82351a8
Compare
|
@qingwangrh please could you review again this PR? Thanks ! |
@zhencliu @YongxueHong could you also review this PR? Thanks |
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