},
"rbd-store" => {
monhost => "127.0.0.42,127.0.0.21,::1",
+ fsid => 'fc4181a6-56eb-4f68-b452-8ba1f381ca2a',
content => {
images => 1,
},
'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 => {},
'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),
},
},
},
+ {
+ 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',