Skip to content

Commit 516012a

Browse files
ceph: fix offline volume migration between ceph pools (#12103)
1 parent e23c7ef commit 516012a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,11 @@ to support snapshots(backuped) as qcow2 files. */
16891689
*/
16901690
srcFile = new QemuImgFile(KVMPhysicalDisk.RBDStringBuilder(srcPool, sourcePath));
16911691
srcFile.setFormat(sourceFormat);
1692-
destFile = new QemuImgFile(destPath);
1692+
if (destPool.getType() == StoragePoolType.RBD) {
1693+
destFile = new QemuImgFile(KVMPhysicalDisk.RBDStringBuilder(destPool, destPath));
1694+
} else {
1695+
destFile = new QemuImgFile(destPath);
1696+
}
16931697
destFile.setFormat(destFormat);
16941698

16951699
try {

0 commit comments

Comments
 (0)