sureshanaparti commented on code in PR #8790:
URL: https://github.com/apache/cloudstack/pull/8790#discussion_r1528761276
##########
plugins/storage/volume/linstor/src/main/java/com/cloud/hypervisor/kvm/storage/LinstorStorageAdaptor.java:
##########
@@ -302,26 +308,89 @@ public boolean connectPhysicalDisk(String volumePath,
KVMStoragePool pool, Map<S
return true;
}
+ private Optional<ResourceWithVolumes> getResourceByPath(final
List<ResourceWithVolumes> resources, String path) {
+ return resources.stream()
+ .filter(rsc -> rsc.getVolumes().stream()
+ .anyMatch(v -> v.getDevicePath().equals(path)))
+ .findFirst();
+ }
+
+ private boolean tryDisconnectLinstor(String volumePath, KVMStoragePool
pool)
+ {
+ s_logger.debug("Linstor: Using storpool: " + pool.getUuid());
Review Comment:
```suggestion
s_logger.debug("Linstor: Using storage pool: " + pool.getUuid());
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]