提交 6237e75e 编写于 作者: Q Qianqian Zhu

drive_mirror: remove granularity check since qemu2.9 disable the guranularity...

drive_mirror: remove granularity check since qemu2.9 disable the guranularity display in block job info.
Signed-off-by: NQianqian Zhu <qizhu@redhat.com>
上级 e898c401
......@@ -90,7 +90,6 @@
type = drive_mirror_complete
boot_target_image = yes
no Host_RHEL.m6
when_steady = check_granularity
variants:
- 512:
wait_timeout = 36000
......
......@@ -65,22 +65,6 @@ class DriveMirror(block_copy.BlockCopy):
image_file = storage.get_image_filename(params, self.data_dir)
return self.vm.get_block({"file": image_file})
@error.context_aware
def check_granularity(self):
"""
Check granularity value as set.
"""
device_id = self.get_device()
info = self.vm.monitor.info_block().get(device_id)
if "granularity" in self.params:
target_gran = int(self.params["granularity"])
dirty_bitmap = info.get("dirty-bitmaps", "0")
granularity = int(dirty_bitmap[0].get("granularity", "0"))
if granularity != target_gran:
raise error.TestFail(
"Granularity unmatched. Target is %d, result is %d" %
(target_gran, granularity))
@error.context_aware
def check_node_name(self):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册