Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
d6aa1775
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,发现更多精彩内容 >>
未验证
提交
d6aa1775
编写于
2月 10, 2020
作者:
X
Xu Tian
提交者:
GitHub
2月 10, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2085 from aliang123/1800428
Snapshot during guest stop_cont
上级
589329d0
b152f88f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
54 addition
and
0 deletion
+54
-0
qemu/tests/blockdev_snapshot_stop_cont.py
qemu/tests/blockdev_snapshot_stop_cont.py
+38
-0
qemu/tests/cfg/blockdev_snapshot_stop_cont.cfg
qemu/tests/cfg/blockdev_snapshot_stop_cont.cfg
+16
-0
未找到文件。
qemu/tests/blockdev_snapshot_stop_cont.py
0 → 100644
浏览文件 @
d6aa1775
import
logging
from
virttest
import
error_context
from
provider.blockdev_snapshot_base
import
BlockDevSnapshotTest
class
BlockdevSnapshotStopContTest
(
BlockDevSnapshotTest
):
@
error_context
.
context_aware
def
create_snapshot
(
self
):
error_context
.
context
(
"do snaoshot during running guest stop_cont"
,
logging
.
info
)
self
.
main_vm
.
pause
()
super
(
BlockdevSnapshotStopContTest
,
self
).
create_snapshot
()
self
.
main_vm
.
resume
()
def
run
(
test
,
params
,
env
):
"""
Backup VM disk test when VM reboot
1) start VM with system disk
2) create target disk with qmp command
3) load stress in guest
4) do snapshot to target disk
5) shutdown VM
6) boot VM with target disk
:param test: test object
:param params: Dictionary with the test parameters
:param env: Dictionary with test environment.
"""
base_image
=
params
.
get
(
"images"
,
"image1"
).
split
()[
0
]
params
.
update
(
{
"image_name_%s"
%
base_image
:
params
[
"image_name"
],
"image_format_%s"
%
base_image
:
params
[
"image_format"
]})
snapshot_stop_cont
=
BlockdevSnapshotStopContTest
(
test
,
params
,
env
)
snapshot_stop_cont
.
run_test
()
qemu/tests/cfg/blockdev_snapshot_stop_cont.cfg
0 → 100644
浏览文件 @
d6aa1775
- blockdev_snapshot_stop_cont:
type = blockdev_snapshot_stop_cont
virt_test_type = qemu
start_vm = yes
storage_type_default = "directory"
storage_pool = default
snapshot_tag = sn1
image_format_sn1 = qcow2
image_name_sn1 = images/sn1
device = "drive_image1"
base_tag = "image1"
rebase_mode = unsafe
Host_RHEL.m8:
node = "drive_image1"
overlay = "drive_sn1"
qemu_force_use_drive_expression = no
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录