]> git.proxmox.com Git - qemu-server.git/blobdiff - test/run_qemu_migrate_tests.pl
start: make not being able to set polling interval for ballooning non-critical
[qemu-server.git] / test / run_qemu_migrate_tests.pl
index 4f7f021efe3a377a642abcbef1e2b6c5435fceec..3a3049d7da0b6ebddc6e0ab1bae102540464b745 100755 (executable)
@@ -65,6 +65,7 @@ my $storage_config = {
        },
        "rbd-store" => {
            monhost => "127.0.0.42,127.0.0.21,::1",
+           fsid => 'fc4181a6-56eb-4f68-b452-8ba1f381ca2a',
            content => {
                images => 1,
            },
@@ -677,7 +678,7 @@ my $tests = [
            'with-local-disks' => 1,
        },
        expected_calls => {},
-       expect_die => 'online storage migration not possible if snapshot exists',
+       expect_die => 'online storage migration not possible if non-replicated snapshot exists',
        expected => {
            source_volids => local_volids_for_vm(4567),
            target_volids => {},
@@ -1236,8 +1237,11 @@ my $tests = [
            'with-local-disks' => 1,
        },
        target_volids => local_volids_for_vm(105),
-       expected_calls => {},
-       expect_die => "online storage migration not possible if snapshot exists",
+       expected_calls => {
+           %{$replicated_expected_calls_online},
+           'block-dirty-bitmap-add-drive-scsi0' => 1,
+           'block-dirty-bitmap-add-drive-ide0' => 1,
+       },
        expected => {
            source_volids => local_volids_for_vm(105),
            target_volids => local_volids_for_vm(105),
@@ -1444,6 +1448,41 @@ my $tests = [
            },
        },
     },
+    {
+       name => '149_running_unused_block_job_cancel_fail',
+       target => 'pve1',
+       vmid => 149,
+       vm_status => {
+           running => 1,
+           runningmachine => 'pc-q35-5.0+pve0',
+       },
+       opts => {
+           online => 1,
+           'with-local-disks' => 1,
+       },
+       config_patch => {
+           scsi1 => undef,
+           unused0 => 'local-dir:149/vm-149-disk-0.qcow2',
+       },
+       expected_calls => {},
+       expect_die => "qemu_drive_mirror_monitor 'cancel' error",
+       # note that 'cancel' is also used to finish and that's what this test is about
+       fail_config => {
+           'qemu_drive_mirror_monitor' => 'cancel',
+       },
+       expected => {
+           source_volids => local_volids_for_vm(149),
+           target_volids => {},
+           vm_config => get_patched_config(149, {
+               scsi1 => undef,
+               unused0 => 'local-dir:149/vm-149-disk-0.qcow2',
+           }),
+           vm_status => {
+               running => 1,
+               runningmachine => 'pc-q35-5.0+pve0',
+           },
+       },
+    },
     {
        name => '149_offline',
        target => 'pve1',