You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kvm: keep the restore volume mapping tests on the rsync path
The incremental NAS backup backport (#13877) makes a restore first ask
qemu-img whether the backup references a parent, and flattens the chain with
qemu-img convert when it does; only a backup without a backing file is
rsynced. The volume mapping tests stubbed runSimpleBashScriptForExitValue to
return 0 for every command, so the probe reported a backing chain, the restore
took the convert path, and the rsync invocations these tests assert on never
happened. Answer the probe with "no backing chain", as the existing restore
tests do, and keep 0 for the other checks.
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtRestoreBackupCommandWrapperTest.java
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -624,7 +624,12 @@ public void testRestoreOfExistingVmMapsBackupsToVolumesByUuid() throws Exception
0 commit comments