Skip to content

Commit 16d0795

Browse files
committed
Merge remote-tracking branch 'origin/4.15' into main
2 parents 584c1cf + f286f01 commit 16d0795

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

plugins/hypervisors/kvm/src/main/java/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)