You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Volume migration between Ceph RBD primary storages fails in CloudStack 4.22 because the destination is incorrectly treated as a local file path instead of an RBD URI.
In CloudStack 4.22, migrating a volume from one Ceph RBD primary storage to another fails during the qemu-img convert operation.
The system attempts a direct primary-to-primary migration (which is expected behavior in newer versions), but the destination is incorrectly passed as a local filesystem path instead of an RBD URI.
As a result, the migration fails with:
qemu-img: CEPH2_NVME/.raw: error while converting raw:
Could not create 'CEPH2_NVME/.raw': No such file or directory
From the agent logs:
qemu-img convert -O raw -U
rbd:CEPH1_SATA/:mon_host=...:auth_supported=cephx:id=...
CEPH2_NVME/.raw
Expected behavior:
qemu-img convert -O raw
rbd:CEPH1_SATA/
rbd:CEPH2_NVME/
The destination is missing the rbd: prefix and is incorrectly suffixed with .raw, causing qemu-img to treat it as a local file path.
1. Configure two Ceph RBD primary storages in the same zone:
• Source: CEPH1
• Destination: CEPH2
2. Ensure both are accessible from KVM hosts.
3. Create a volume in CEPH1
4. Attempt to migrate the volume to CEPH2 using:
• CloudStack UI
select volume -> click on Migrate Volume -> Select CEPH2 storage pool
• cmk call
migrate volume storageid=CEPH2_ID volumeid=VOLUME_ID_HOSTED_IN_CEPH1
5. Observe failure during migration.
What to do about it?
• Ensure the destination is correctly formatted as an RBD URI (rbd:pool/image)
• Validate logic in LibvirtStorageAdaptor (KVM) for RBD-to-RBD migration path
• Possibly introduce fallback to secondary storage if direct conversion fails
Activity
weizhouapache commentedon Mar 17, 2026
@matheusfontes
this should have been fixed by #12103
can you patch the kvm agent, or wait for 4.22.1 release ?
matheusfontes commentedon Mar 17, 2026
Thanks! Applied the patch from #12103 and can confirm it fixed the issue.
sureshanaparti commentedon Mar 18, 2026
Fixed in #12103