mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 18:12:35 +01:00
ceph: fix offline volume migration between ceph pools (#12103)
This commit is contained in:
parent
e23c7ef701
commit
516012a0b4
@ -1689,7 +1689,11 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
|
||||
*/
|
||||
srcFile = new QemuImgFile(KVMPhysicalDisk.RBDStringBuilder(srcPool, sourcePath));
|
||||
srcFile.setFormat(sourceFormat);
|
||||
destFile = new QemuImgFile(destPath);
|
||||
if (destPool.getType() == StoragePoolType.RBD) {
|
||||
destFile = new QemuImgFile(KVMPhysicalDisk.RBDStringBuilder(destPool, destPath));
|
||||
} else {
|
||||
destFile = new QemuImgFile(destPath);
|
||||
}
|
||||
destFile.setFormat(destFormat);
|
||||
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user