Merge remote-tracking branch 'origin/4.15' into main

This commit is contained in:
Rohit Yadav 2021-07-05 11:55:58 +05:30
commit 16d0795130
1 changed files with 9 additions and 0 deletions

View File

@ -85,6 +85,15 @@ public class KVMInvestigator extends AdapterBase implements Investigator {
break;
}
}
if (!hasNfs) {
List<StoragePoolVO> zonePools = _storagePoolDao.findZoneWideStoragePoolsByHypervisor(agent.getDataCenterId(), agent.getHypervisorType());
for (StoragePoolVO pool : zonePools) {
if (pool.getPoolType() == StoragePoolType.NetworkFilesystem) {
hasNfs = true;
break;
}
}
}
if (!hasNfs) {
s_logger.warn(
"Agent investigation was requested on host " + agent + ", but host does not support investigation because it has no NFS storage. Skipping investigation.");