We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent feb4343 commit 48006deCopy full SHA for 48006de
1 file changed
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
@@ -1463,7 +1463,7 @@ public Answer createVolume(final CreateObjectCommand cmd) {
1463
primaryPool = storagePoolMgr.getStoragePool(primaryStore.getPoolType(), primaryStore.getUuid());
1464
disksize = volume.getSize();
1465
PhysicalDiskFormat format;
1466
- if (volume.getFormat() == null) {
+ if (volume.getFormat() == null || StoragePoolType.RBD.equals(primaryStore.getPoolType())) {
1467
format = primaryPool.getDefaultFormat();
1468
} else {
1469
format = PhysicalDiskFormat.valueOf(volume.getFormat().toString().toUpperCase());
0 commit comments