File tree Expand file tree Collapse file tree
plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/manager Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1496,6 +1496,10 @@ public List<StoragePool> listVsphereStoragePolicyCompatibleStoragePools(ListVsph
14961496 for (StoragePoolVO pool : poolsInZone ) {
14971497 StorageFilerTO storageFilerTO = new StorageFilerTO (pool );
14981498 List <Long > hostIds = storageManager .getUpHostsInPool (pool .getId ());
1499+ if (CollectionUtils .isNullOrEmpty (hostIds )) {
1500+ s_logger .debug ("Did not find a suitable host to verify compatibility of the pool " + pool .getName ());
1501+ continue ;
1502+ }
14991503 Collections .shuffle (hostIds );
15001504 CheckDataStoreStoragePolicyComplainceCommand command = new CheckDataStoreStoragePolicyComplainceCommand (storagePolicy .getPolicyId (), storageFilerTO );
15011505 long targetHostId = hypervisorGuruManager .getGuruProcessedCommandTargetHost (hostIds .get (0 ), command );
You can’t perform that action at this time.
0 commit comments