qemu-server/test
Fabian Ebner 0783c3c271 migration: move finishing block jobs to phase2 for better/uniform error handling
avoids the possibility to die during phase3_cleanup and instead of needing to
duplicate the cleanup ourselves, benefit from phase2_cleanup doing so.

The duplicate cleanup was also very incomplete: it didn't stop the remote kvm
process (leading to 'VM already running' when trying to migrate again
afterwards), but it removed its disks, and it didn't unlock the config, didn't
close the tunnel and didn't cancel the block-dirty bitmaps.

Since migrate_cancel should do nothing after the (non-storage) migrate process
has completed, even that cleanup step is fine here.

Since phase3 is empty at the moment, the order of operations is still the same.

Also add a test, that would complain about finish_tunnel not being called before
this patch. That test also checks that local disks are not already removed
before finishing the block jobs.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-04-18 18:30:41 +02:00
..
cfg2cmd cfg2cmd: fix +pveN machine types with pxe 2021-04-18 17:58:56 +02:00
MigrationTest migration: move finishing block jobs to phase2 for better/uniform error handling 2021-04-18 18:30:41 +02:00
ovf_manifests test: add test for OVF with missing default rasd namespace 2020-04-27 13:09:51 +02:00
restore-config-expected test: add tests for restoring config 2021-04-18 18:10:28 +02:00
restore-config-input test: add tests for restoring config 2021-04-18 18:10:28 +02:00
snapshot-expected add new tests for 'runningmachine' and rollback 2018-09-17 15:49:31 +02:00
snapshot-input add new tests for 'runningmachine' and rollback 2018-09-17 15:49:31 +02:00
Makefile test: add tests for restoring config 2021-04-18 18:10:28 +02:00
run_config2command_tests.pl tests: do not use for-loop for globs 2020-10-19 15:32:31 +02:00
run_ovf_tests.pl test: add test for OVF with missing default rasd namespace 2020-04-27 13:09:51 +02:00
run_pci_addr_checks.pl move qemu-configs to own directory 2019-09-24 18:59:35 +02:00
run_qemu_img_convert_tests.pl grammar fix: s/does not exists/does not exist/g 2019-12-13 12:20:56 +01:00
run_qemu_migrate_tests.pl migration: move finishing block jobs to phase2 for better/uniform error handling 2021-04-18 18:30:41 +02:00
run_qemu_restore_config_tests.pl restore: update config: remove unused parameter 2021-04-18 18:10:28 +02:00
run_snapshot_tests.pl tests: exit with -1 in case of failures 2017-05-17 13:58:18 +02:00
snapshot-test.pm snapshot: set migration caps before savevm-start 2021-03-16 20:44:51 +01:00
test_get_replicatable_volumes.pl grammar fix: s/does not exists/does not exist/g 2019-12-13 12:20:56 +01:00
test.vmdk fix #2395: refactor qemu_img_convert to accept files as source 2019-10-17 13:57:21 +02:00