提交 d3e5d347 编写于 作者: Y Yu Wang

hv_check_cpu_utilization: migration windows guest with all flags

check cpu utilization after migration
Signed-off-by: NYu Wang <wyu@redhat.com>
上级 2741437f
...@@ -18,3 +18,7 @@ ...@@ -18,3 +18,7 @@
thread_process_cmd = "cat fixed-top-pc-result |grep %s|awk -F ' ' ' {print $9;}'|awk '{sum+=$1} END {print sum/NR}'" thread_process_cmd = "cat fixed-top-pc-result |grep %s|awk -F ' ' ' {print $9;}'|awk '{sum+=$1} END {print sum/NR}'"
thread_cpu_level = 5 thread_cpu_level = 5
post_command = rm -f fixed-top-pc-result post_command = rm -f fixed-top-pc-result
variants:
- @default:
- with_migration:
do_migration = yes
...@@ -105,6 +105,7 @@ def run(test, params, env): ...@@ -105,6 +105,7 @@ def run(test, params, env):
guest_check_timeout = host_check_times * host_check_interval guest_check_timeout = host_check_times * host_check_interval
thread_cpu_level = params.get_numeric("thread_cpu_level", 5) thread_cpu_level = params.get_numeric("thread_cpu_level", 5)
session = vm.wait_for_serial_login(timeout=timeout) session = vm.wait_for_serial_login(timeout=timeout)
do_migration = params.get("do_migration", "no") == "yes"
service_names = params.get("serives_to_stop").split() service_names = params.get("serives_to_stop").split()
...@@ -117,6 +118,10 @@ def run(test, params, env): ...@@ -117,6 +118,10 @@ def run(test, params, env):
session = vm.reboot(session, timeout=timeout, serial=True) session = vm.reboot(session, timeout=timeout, serial=True)
if do_migration:
vm.migrate(env=env)
session = vm.wait_for_serial_login(timeout=timeout)
# wait for the guest to chill # wait for the guest to chill
time.sleep(900) time.sleep(900)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册