This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.22
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.22 by this push:
new 516012a0b49 ceph: fix offline volume migration between ceph pools
(#12103)
516012a0b49 is described below
commit 516012a0b492ef8613f919c48bad950cc541bd97
Author: Wei Zhou <[email protected]>
AuthorDate: Fri Nov 28 15:44:00 2025 +0100
ceph: fix offline volume migration between ceph pools (#12103)
---
.../com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
index e8924ecf5eb..87544cfaa9d 100644
---
a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
+++
b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
@@ -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 {