mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 03:13:44 +08:00
9a378495c3
This test waits for a MIGRATION event with status=completed on the source VM before querying the migration status on both source and destination. However, just because the source says migration has completed does not mean the destination thinks the same. Therefore, in some cases, the destination VM may still report "active" instead of "completed" when asked for its migration status. Fix this by enabling migration events on both VMs and waiting until both source and destination emit a status=completed MIGRATION event. Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
37 lines
1.9 KiB
Plaintext
37 lines
1.9 KiB
Plaintext
Launching source VM...
|
|
Enabling migration QMP events on A...
|
|
{"return": {}}
|
|
Launching destination VM...
|
|
Enabling migration QMP events on B...
|
|
{"return": {}}
|
|
{"return": {}}
|
|
{"return": {}}
|
|
Starting migration to B...
|
|
{"return": {}}
|
|
{"data": {"status": "setup"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
|
|
{"data": {"status": "active"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
|
|
{"data": {"status": "completed"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
|
|
{"data": {"status": "active"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
|
|
{"data": {"status": "completed"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
|
|
completed
|
|
completed
|
|
{"return": {"running": false, "singlestep": false, "status": "postmigrate"}}
|
|
{"return": {"running": true, "singlestep": false, "status": "running"}}
|
|
Add a second parent to drive0-file...
|
|
{"return": {}}
|
|
Restart A with -incoming and second parent...
|
|
Enabling migration QMP events on A...
|
|
{"return": {}}
|
|
{"return": {}}
|
|
Starting migration back to A...
|
|
{"return": {}}
|
|
{"data": {"status": "setup"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
|
|
{"data": {"status": "active"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
|
|
{"data": {"status": "completed"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
|
|
{"data": {"status": "active"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
|
|
{"data": {"status": "completed"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
|
|
completed
|
|
completed
|
|
{"return": {"running": true, "singlestep": false, "status": "running"}}
|
|
{"return": {"running": false, "singlestep": false, "status": "postmigrate"}}
|