Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
6827ac3e
T
tp-qemu
项目概览
openeuler
/
tp-qemu
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tp-qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6827ac3e
编写于
3月 20, 2014
作者:
Y
Yiqiao Pu
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #36 from FengYang/migrate
qemu.tests: Add env parameter for vm.migrate() function call.
上级
bfd440da
7f6c5360
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
13 addition
and
9 deletion
+13
-9
qemu/tests/migration.py
qemu/tests/migration.py
+1
-1
qemu/tests/migration_after_nichotplug.py
qemu/tests/migration_after_nichotplug.py
+1
-1
qemu/tests/migration_with_dst_problem.py
qemu/tests/migration_with_dst_problem.py
+5
-3
qemu/tests/migration_with_file_transfer.py
qemu/tests/migration_with_file_transfer.py
+2
-1
qemu/tests/migration_with_netperf.py
qemu/tests/migration_with_netperf.py
+1
-1
qemu/tests/migration_with_reboot.py
qemu/tests/migration_with_reboot.py
+2
-1
qemu/tests/migration_with_speed_measurement.py
qemu/tests/migration_with_speed_measurement.py
+1
-1
未找到文件。
qemu/tests/migration.py
浏览文件 @
6827ac3e
...
@@ -176,7 +176,7 @@ def run(test, params, env):
...
@@ -176,7 +176,7 @@ def run(test, params, env):
vm
.
migrate
(
mig_timeout
,
mig_protocol
,
mig_cancel_delay
,
vm
.
migrate
(
mig_timeout
,
mig_protocol
,
mig_cancel_delay
,
offline
,
check
,
offline
,
check
,
migration_exec_cmd_src
=
mig_exec_cmd_src
,
migration_exec_cmd_src
=
mig_exec_cmd_src
,
migration_exec_cmd_dst
=
mig_exec_cmd_dst
)
migration_exec_cmd_dst
=
mig_exec_cmd_dst
,
env
=
env
)
# Set deamon thread action to stop after migrate
# Set deamon thread action to stop after migrate
params
[
"action"
]
=
"stop"
params
[
"action"
]
=
"stop"
...
...
qemu/tests/migration_after_nichotplug.py
浏览文件 @
6827ac3e
...
@@ -90,7 +90,7 @@ def run(test, params, env):
...
@@ -90,7 +90,7 @@ def run(test, params, env):
set_link
(
nic_name
,
up
=
True
)
set_link
(
nic_name
,
up
=
True
)
error
.
context
(
"Migrate from source VM to Destination VM"
,
logging
.
info
)
error
.
context
(
"Migrate from source VM to Destination VM"
,
logging
.
info
)
vm
.
migrate
(
mig_timeout
,
mig_protocol
,
mig_cancel_delay
)
vm
.
migrate
(
mig_timeout
,
mig_protocol
,
mig_cancel_delay
,
env
=
env
)
error
.
context
(
"Disable the primary link"
,
logging
.
info
)
error
.
context
(
"Disable the primary link"
,
logging
.
info
)
set_link
(
nic_name
,
up
=
False
)
set_link
(
nic_name
,
up
=
False
)
...
...
qemu/tests/migration_with_dst_problem.py
浏览文件 @
6827ac3e
...
@@ -360,7 +360,8 @@ def run(test, params, env):
...
@@ -360,7 +360,8 @@ def run(test, params, env):
"-o hard,timeo=14,rsize=8192,wsize=8192"
)
"-o hard,timeo=14,rsize=8192,wsize=8192"
)
vm_guest
.
migrate
(
mig_timeout
,
mig_protocol
,
vm_guest
.
migrate
(
mig_timeout
,
mig_protocol
,
not_wait_for_migration
=
True
,
not_wait_for_migration
=
True
,
migration_exec_cmd_src
=
migration_exec_cmd_src
)
migration_exec_cmd_src
=
migration_exec_cmd_src
,
env
=
env
)
if
not
utils_misc
.
wait_for
(
lambda
:
process_output_check
(
if
not
utils_misc
.
wait_for
(
lambda
:
process_output_check
(
vm_guest
.
process
,
exp_str
),
vm_guest
.
process
,
exp_str
),
...
@@ -409,7 +410,8 @@ def run(test, params, env):
...
@@ -409,7 +410,8 @@ def run(test, params, env):
vm_guest
.
migrate
(
mig_timeout
,
mig_protocol
,
vm_guest
.
migrate
(
mig_timeout
,
mig_protocol
,
not_wait_for_migration
=
True
,
not_wait_for_migration
=
True
,
migration_exec_cmd_src
=
migration_exec_cmd_src
)
migration_exec_cmd_src
=
migration_exec_cmd_src
,
env
=
env
)
if
not
utils_misc
.
wait_for
(
lambda
:
process_output_check
(
if
not
utils_misc
.
wait_for
(
lambda
:
process_output_check
(
vm_guest
.
process
,
exp_str
),
vm_guest
.
process
,
exp_str
),
...
@@ -490,7 +492,7 @@ def run(test, params, env):
...
@@ -490,7 +492,7 @@ def run(test, params, env):
self
.
restart_server
()
self
.
restart_server
()
self
.
vm_guest
.
migrate
(
mig_timeout
,
mig_protocol
)
self
.
vm_guest
.
migrate
(
mig_timeout
,
mig_protocol
,
env
=
env
)
try
:
try
:
self
.
vm_guest
.
verify_alive
()
self
.
vm_guest
.
verify_alive
()
...
...
qemu/tests/migration_with_file_transfer.py
浏览文件 @
6827ac3e
...
@@ -53,7 +53,8 @@ def run(test, params, env):
...
@@ -53,7 +53,8 @@ def run(test, params, env):
vm
.
params
[
"vhost"
]
=
"vhost=off"
vm
.
params
[
"vhost"
]
=
"vhost=off"
elif
vhost_status
==
"vhost=off"
:
elif
vhost_status
==
"vhost=off"
:
vm
.
params
[
"vhost"
]
=
"vhost=on"
vm
.
params
[
"vhost"
]
=
"vhost=on"
vm
.
migrate
(
mig_timeout
,
mig_protocol
,
mig_cancel_delay
)
vm
.
migrate
(
mig_timeout
,
mig_protocol
,
mig_cancel_delay
,
env
=
env
)
except
Exception
:
except
Exception
:
# If something bad happened in the main thread, ignore
# If something bad happened in the main thread, ignore
# exceptions raised in the background thread
# exceptions raised in the background thread
...
...
qemu/tests/migration_with_netperf.py
浏览文件 @
6827ac3e
...
@@ -82,7 +82,7 @@ def run(test, params, env):
...
@@ -82,7 +82,7 @@ def run(test, params, env):
m_count
+=
1
m_count
+=
1
error
.
context
(
"Start migration iterations: %s "
%
m_count
,
error
.
context
(
"Start migration iterations: %s "
%
m_count
,
logging
.
info
)
logging
.
info
)
vm
.
migrate
(
mig_timeout
,
mig_protocol
,
mig_cancel_delay
)
vm
.
migrate
(
mig_timeout
,
mig_protocol
,
mig_cancel_delay
,
env
=
env
)
finally
:
finally
:
netperf_server
.
stop
()
netperf_server
.
stop
()
netperf_server
.
env_cleanup
(
True
)
netperf_server
.
env_cleanup
(
True
)
...
...
qemu/tests/migration_with_reboot.py
浏览文件 @
6827ac3e
...
@@ -32,7 +32,8 @@ def run(test, params, env):
...
@@ -32,7 +32,8 @@ def run(test, params, env):
bg
.
start
()
bg
.
start
()
try
:
try
:
while
bg
.
isAlive
():
while
bg
.
isAlive
():
vm
.
migrate
(
mig_timeout
,
mig_protocol
,
mig_cancel_delay
)
vm
.
migrate
(
mig_timeout
,
mig_protocol
,
mig_cancel_delay
,
env
=
env
)
except
Exception
:
except
Exception
:
# If something bad happened in the main thread, ignore exceptions
# If something bad happened in the main thread, ignore exceptions
# raised in the background thread
# raised in the background thread
...
...
qemu/tests/migration_with_speed_measurement.py
浏览文件 @
6827ac3e
...
@@ -96,7 +96,7 @@ def run(test, params, env):
...
@@ -96,7 +96,7 @@ def run(test, params, env):
time
.
sleep
(
2
)
time
.
sleep
(
2
)
clonevm
=
vm
.
migrate
(
mig_timeout
,
mig_protocol
,
clonevm
=
vm
.
migrate
(
mig_timeout
,
mig_protocol
,
not_wait_for_migration
=
True
)
not_wait_for_migration
=
True
,
env
=
env
)
mig_speed
=
utils
.
convert_data_size
(
mig_speed
,
"M"
)
mig_speed
=
utils
.
convert_data_size
(
mig_speed
,
"M"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录