diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2020-07-27 22:42:36 +0300 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2020-07-27 15:41:34 -0500 |
commit | 058a08a658ebe152526ea41093679cdb0004abb3 (patch) | |
tree | 5fbf378a2db450358762a2da131a94f60a2f647a | |
parent | 845b2204c969c90949d5b90765d754a7ca25dc56 (diff) | |
download | qemu-058a08a658ebe152526ea41093679cdb0004abb3.zip qemu-058a08a658ebe152526ea41093679cdb0004abb3.tar.gz qemu-058a08a658ebe152526ea41093679cdb0004abb3.tar.bz2 |
qemu-iotests/199: add source-killed case to bitmaps postcopy
Previous patches fixes behavior of bitmaps migration, so that errors
are handled by just removing unfinished bitmaps, and not fail or try to
recover postcopy migration. Add corresponding test.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Tested-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200727194236.19551-22-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
-rwxr-xr-x | tests/qemu-iotests/199 | 15 | ||||
-rw-r--r-- | tests/qemu-iotests/199.out | 4 |
2 files changed, 17 insertions, 2 deletions
diff --git a/tests/qemu-iotests/199 b/tests/qemu-iotests/199 index 140930b..58fad87 100755 --- a/tests/qemu-iotests/199 +++ b/tests/qemu-iotests/199 @@ -241,6 +241,21 @@ class TestDirtyBitmapPostcopyMigration(iotests.QMPTestCase): self.vm_a.launch() check_bitmaps(self.vm_a, 0) + def test_early_kill_source(self): + self.start_postcopy() + + self.vm_a_events = self.vm_a.get_qmp_events() + self.vm_a.kill() + + self.vm_a.launch() + + match = {'data': {'status': 'completed'}} + e_complete = self.vm_b.event_wait('MIGRATION', match=match) + self.vm_b_events.append(e_complete) + + check_bitmaps(self.vm_a, 0) + check_bitmaps(self.vm_b, 0) + if __name__ == '__main__': iotests.main(supported_fmts=['qcow2']) diff --git a/tests/qemu-iotests/199.out b/tests/qemu-iotests/199.out index fbc63e6..8d7e9967 100644 --- a/tests/qemu-iotests/199.out +++ b/tests/qemu-iotests/199.out @@ -1,5 +1,5 @@ -.. +... ---------------------------------------------------------------------- -Ran 2 tests +Ran 3 tests OK |