Skip to content

Commit d6e03bc

Browse files
authored
Revert "kvm: find cluster-wide pools only in Up state when investigate a host…"
This reverts commit 8ce34ad.
1 parent 8ce34ad commit d6e03bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/ha/KVMInvestigator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import org.apache.log4j.Logger;
4040

4141
import javax.inject.Inject;
42-
import java.util.Arrays;
4342
import java.util.List;
4443

4544
public class KVMInvestigator extends AdapterBase implements Investigator {
@@ -84,7 +83,7 @@ public Status isAgentAlive(Host agent) {
8483
return haManager.getHostStatus(agent);
8584
}
8685

87-
List<StoragePoolVO> clusterPools = _storagePoolDao.findPoolsInClusters(Arrays.asList(agent.getClusterId()), null);
86+
List<StoragePoolVO> clusterPools = _storagePoolDao.listPoolsByCluster(agent.getClusterId());
8887
boolean storageSupportHA = storageSupportHa(clusterPools);
8988
if (!storageSupportHA) {
9089
List<StoragePoolVO> zonePools = _storagePoolDao.findZoneWideStoragePoolsByHypervisor(agent.getDataCenterId(), agent.getHypervisorType());

0 commit comments

Comments
 (0)