Skip to content

Commit 48006de

Browse files
authored
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
1 parent feb4343 commit 48006de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ public Answer createVolume(final CreateObjectCommand cmd) {
14631463
primaryPool = storagePoolMgr.getStoragePool(primaryStore.getPoolType(), primaryStore.getUuid());
14641464
disksize = volume.getSize();
14651465
PhysicalDiskFormat format;
1466-
if (volume.getFormat() == null) {
1466+
if (volume.getFormat() == null || StoragePoolType.RBD.equals(primaryStore.getPoolType())) {
14671467
format = primaryPool.getDefaultFormat();
14681468
} else {
14691469
format = PhysicalDiskFormat.valueOf(volume.getFormat().toString().toUpperCase());

0 commit comments

Comments
 (0)