rp- commented on code in PR #13910:
URL: https://github.com/apache/cloudstack/pull/13910#discussion_r4667364759
##########
plugins/storage/volume/linstor/src/main/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java:
##########
@@ -914,13 +934,46 @@ private Optional<RemoteHostEndPoint>
getDiskfullEP(DevelopersApi api, StoragePoo
: LinstorUtil.getDiskfulStoragePoolsByPreference(api,
rscName)) {
Host host = getEnabledClusterHost(storagePool,
Collections.singletonList(linSP.getNodeName()));
if (host != null) {
- return
Optional.of(RemoteHostEndPoint.getHypervisorHostEndPoint(host));
+ return host;
}
logger.debug("Linstor: no usable cloudstack host for diskful node
{}, trying next copy",
linSP.getNodeName());
}
logger.error("Linstor: No diskfull host found.");
Review Comment:
thanks
##########
plugins/storage/volume/linstor/src/main/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java:
##########
@@ -905,7 +925,7 @@ private Optional<RemoteHostEndPoint>
getLinstorEP(DevelopersApi api, StoragePool
return Optional.empty();
}
- private Optional<RemoteHostEndPoint> getDiskfullEP(DevelopersApi api,
StoragePool storagePool, String rscName)
+ private Host getDiskfullHost(DevelopersApi api, StoragePool storagePool,
String rscName)
Review Comment:
thanks
--
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]