mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
commit
717ce981d4
@ -633,11 +633,11 @@ public class AgentManagerImpl extends ManagerBase implements AgentManager, Handl
|
|||||||
}
|
}
|
||||||
} catch (final HypervisorVersionChangedException hvce) {
|
} catch (final HypervisorVersionChangedException hvce) {
|
||||||
handleDisconnectWithoutInvestigation(attache, Event.ShutdownRequested, true, true);
|
handleDisconnectWithoutInvestigation(attache, Event.ShutdownRequested, true, true);
|
||||||
throw new CloudRuntimeException("Unable to connect " + attache.getId(), hvce);
|
throw new CloudRuntimeException("Unable to connect " + (attache == null ? "<unknown agent>" : attache.getId()), hvce);
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
logger.error("Monitor {} says there is an error in the connect process for {} due to {}", monitor.second().getClass().getSimpleName(), hostId, e.getMessage(), e);
|
logger.error("Monitor {} says there is an error in the connect process for {} due to {}", monitor.second().getClass().getSimpleName(), hostId, e.getMessage(), e);
|
||||||
handleDisconnectWithoutInvestigation(attache, Event.AgentDisconnected, true, true);
|
handleDisconnectWithoutInvestigation(attache, Event.AgentDisconnected, true, true);
|
||||||
throw new CloudRuntimeException("Unable to connect " + attache.getId(), e);
|
throw new CloudRuntimeException("Unable to connect " + (attache == null ? "<unknown agent>" : attache.getId()), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user