rafaelweingartner commented on a change in pull request #2503: Support multiple
volume access groups per compute cluster
URL: https://github.com/apache/cloudstack/pull/2503#discussion_r178036047
##########
File path:
plugins/hypervisors/vmware/src/main/java/com/cloud/storage/resource/VmwareStorageProcessor.java
##########
@@ -2770,6 +2811,25 @@ private void mountVmfsDatastore(DatastoreMO dsMO,
List<Pair<ManagedObjectReferen
}
}
+ private void mountVmfsDatastore2(DatastoreMO dsMO, List<HostMO> hosts)
throws Exception {
+ for (HostMO hostMO : hosts) {
+ if (!isDatastoreMounted(dsMO, hostMO)) {
+ HostStorageSystemMO hostStorageSystemMO =
hostMO.getHostStorageSystemMO();
+
+ try {
+ hostStorageSystemMO.mountVmfsVolume(getDatastoreUuid(dsMO,
hostMO));
+ }
+ catch (InvalidStateFaultMsg ex) {
+ List<HostMO> currentHosts = new ArrayList<>(1);
Review comment:
In these cases when there is an exception captured, I think you can log a
message in TRACE or DEBUG to say that an exception of type X has been caught,
and this triggered some processing. In this case, the "InvalidStateFaultMsg" is
captured and this triggers a code to wait until the datastores are mounted. The
message can be logged in DEBUG and the exception in TRACE level.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services