mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
kvm: Set RAW format to RBD DATADISK (#5801)
While deploying a VM with data disk on Ceph the volume format was in QCOW2. Fixes #5531
This commit is contained in:
parent
feb4343abe
commit
48006de3e3
@ -1463,7 +1463,7 @@ public class KVMStorageProcessor implements StorageProcessor {
|
||||
primaryPool = storagePoolMgr.getStoragePool(primaryStore.getPoolType(), primaryStore.getUuid());
|
||||
disksize = volume.getSize();
|
||||
PhysicalDiskFormat format;
|
||||
if (volume.getFormat() == null) {
|
||||
if (volume.getFormat() == null || StoragePoolType.RBD.equals(primaryStore.getPoolType())) {
|
||||
format = primaryPool.getDefaultFormat();
|
||||
} else {
|
||||
format = PhysicalDiskFormat.valueOf(volume.getFormat().toString().toUpperCase());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user