mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +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 = new QemuImgFile(KVMPhysicalDisk.RBDStringBuilder(srcPool, sourcePath));
|
||||||
srcFile.setFormat(sourceFormat);
|
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);
|
destFile.setFormat(destFormat);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user