Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert "kvm: find cluster-wide pools only in Up state when investigat…
…e a host…"

This reverts commit 8ce34ad.
  • Loading branch information
Pearl1594 authored Mar 10, 2025
commit d6e03bce0ed948b8fa926b6a35f9721dbc4b8862
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import org.apache.log4j.Logger;

import javax.inject.Inject;
import java.util.Arrays;
import java.util.List;

public class KVMInvestigator extends AdapterBase implements Investigator {
Expand Down Expand Up @@ -84,7 +83,7 @@ public Status isAgentAlive(Host agent) {
return haManager.getHostStatus(agent);
}

List<StoragePoolVO> clusterPools = _storagePoolDao.findPoolsInClusters(Arrays.asList(agent.getClusterId()), null);
List<StoragePoolVO> clusterPools = _storagePoolDao.listPoolsByCluster(agent.getClusterId());
boolean storageSupportHA = storageSupportHa(clusterPools);
if (!storageSupportHA) {
List<StoragePoolVO> zonePools = _storagePoolDao.findZoneWideStoragePoolsByHypervisor(agent.getDataCenterId(), agent.getHypervisorType());
Expand Down