andrijapanicsb commented on code in PR #9207:
URL: https://github.com/apache/cloudstack/pull/9207#discussion_r1637953457


##########
plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java:
##########
@@ -7342,14 +7343,14 @@ private List<VolumeObjectTO> 
relocateVirtualMachine(final VmwareHypervisorHost h
                 VmwareManager mgr = 
targetHyperHost.getContext().getStockObject(VmwareManager.CONTEXT_STOCK_NAME);
                 Pair<String, Long> secStoreUrlAndId = 
mgr.getSecondaryStorageStoreUrlAndId(Long.parseLong(_dcId));
                 String secStoreUrl = secStoreUrlAndId.first();
-                Long secStoreId = secStoreUrlAndId.second();
                 if (secStoreUrl == null) {
-                    String msg = "secondary storage for dc " + _dcId + " is 
not ready yet?";
+                    String msg = String.format("NFS secondary or cache storage 
of dc %s either doesn't have enough capacity (less than %d usage) or not ready 
yet, or non-NFS secondary storage is used",

Review Comment:
   ```suggestion
                       String msg = String.format("NFS secondary or cache 
storage of dc %s either doesn't have enough capacity (has reached %d usage 
threshold) or not ready yet, or non-NFS secondary storage is used",
   ```



-- 
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: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to