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
* Readd filename string on qemuimg create
* Remove empty object on the data pool details of storage pools with no data pool
* Only use the method createPhysicalDiskByLibVirt with RBD when the pool is of erasure code type. Also added javadoc for createPhysicalDisk method
* Change literal '/' string to File.separator
* Add support for erasure code pools
* Fix null on putAll
Copy file name to clipboardExpand all lines: engine/storage/volume/src/main/java/org/apache/cloudstack/storage/datastore/provider/DefaultHostListener.java
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtCreatePrivateTemplateFromVolumeCommandWrapper.java
+1-3
Original file line number
Diff line number
Diff line change
@@ -108,9 +108,7 @@ public Answer execute(final CreatePrivateTemplateFromVolumeCommand command, fina
108
108
} else {
109
109
logger.debug("Converting RBD disk " + disk.getPath() + " into template " + command.getUniqueName());
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetVolumesOnStorageCommandWrapper.java
+1-5
Original file line number
Diff line number
Diff line change
@@ -161,11 +161,7 @@ private Map<String, String> getDiskFileInfo(KVMStoragePool pool, KVMPhysicalDisk
pool = createStoragePool(info.name, info.host, info.port, info.path, info.userInfo, info.poolType, info.details, info.type);
284
+
pool = createStoragePool(info.getName(), info.getHost(), info.getPort(), info.getPath(), info.getUserInfo(), info.getPoolType(), info.getDetails(), info.isType());
307
285
} else {
308
286
thrownewCloudRuntimeException("Could not fetch storage pool " + uuid + " from libvirt due to " + e.getMessage());
309
287
}
310
288
}
289
+
290
+
if (poolinstanceofLibvirtStoragePool) {
291
+
addPoolDetails(uuid, (LibvirtStoragePool) pool);
292
+
}
293
+
311
294
returnpool;
312
295
}
313
296
297
+
/**
298
+
* As the class {@link LibvirtStoragePool} is constrained to the {@link org.libvirt.StoragePool} class, there is no way of saving a generic parameter such as the details, hence,
299
+
* this method was created to always make available the details of libvirt primary storages for when they are needed.
logger.info("Attempting to create volume " + name + " (" + pool.getType().toString() + ") in pool "
968
-
+ pool.getUuid() + " with size " + toHumanReadableSize(size));
1002
+
logger.info("Attempting to create volume {} ({}) in pool {} with size {}", name, pool.getType().toString(), pool.getUuid(), toHumanReadableSize(size));
969
1003
970
1004
StoragePoolTypepoolType = pool.getType();
971
-
if (poolType.equals(StoragePoolType.RBD)) {
972
-
returncreatePhysicalDiskByLibVirt(name, pool, PhysicalDiskFormat.RAW, provisioningType, size);
0 commit comments