Skip to content

Commit 70fd4a1

Browse files
authored
Adding search for zone wide storage from ACS PR 5164 (#41)
1 parent 0ec4268 commit 70fd4a1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ public Status isAgentAlive(Host agent) {
8585
break;
8686
}
8787
}
88+
if (!hasNfs) {
89+
List<StoragePoolVO> zonePools = _storagePoolDao.findZoneWideStoragePoolsByHypervisor(agent.getDataCenterId(), agent.getHypervisorType());
90+
for (StoragePoolVO pool: zonePools) {
91+
if (pool.getPoolType() == StoragePoolType.NetworkFilesystem) {
92+
hasNfs = true;
93+
break;
94+
}
95+
}
96+
}
8897
if (!hasNfs) {
8998
s_logger.warn(
9099
"Agent investigation was requested on host " + agent + ", but host does not support investigation because it has no NFS storage. Skipping investigation.");

0 commit comments

Comments
 (0)