iotests: improve 169
commitb9247fc1a8ffe5c367fa049f295fbb58c8ca9d05
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 29 Oct 2018 20:23:17 +0000 (29 16:23 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 29 Oct 2018 20:23:17 +0000 (29 16:23 -0400)
tree94850c5110cdba6de1305e4f61d1fa5b7b8d511c
parent9c98f145dfb994e1e9d68a4d606ee5693891280d
iotests: improve 169

Before previous patch, iotest 169 was actually broken for the case
test_persistent__not_migbitmap__offline_shared, while formally
passing.

After migration log of vm_b had message:

    qemu-system-x86_64: Could not reopen qcow2 layer: Bitmap already
    exists: bitmap0

which means that invalidation failed and bs->drv = NULL.

It was because we've loaded bitmap twice: on open and on invalidation.

Add code to 169, to catch such fails.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: John Snow <jsnow@redhat.com>
tests/qemu-iotests/169