Skip to content

Commit 2295cce

Browse files
committed
ceph: fix offline volume migration between ceph pools
1 parent 21d844b commit 2295cce

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)