mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-8067: Fixed NPEs in MS log related to console proxy VM
(cherry picked from commit 1115bc9cc6ebf2b321bb5a3ff6958d649150cfe5) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
e791e8ec6d
commit
b07c9b7a9c
@ -208,13 +208,14 @@ public abstract class AgentHookBase implements AgentHook {
|
|||||||
HostVO consoleProxyHost = findConsoleProxyHost(startupCmd);
|
HostVO consoleProxyHost = findConsoleProxyHost(startupCmd);
|
||||||
|
|
||||||
assert (consoleProxyHost != null);
|
assert (consoleProxyHost != null);
|
||||||
|
if (consoleProxyHost != null) {
|
||||||
Answer answer = _agentMgr.send(consoleProxyHost.getId(), cmd);
|
Answer answer = _agentMgr.send(consoleProxyHost.getId(), cmd);
|
||||||
if (answer == null || !answer.getResult()) {
|
if (answer == null || !answer.getResult()) {
|
||||||
s_logger.error("Console proxy agent reported that it failed to execute http handling startup command");
|
s_logger.error("Console proxy agent reported that it failed to execute http handling startup command");
|
||||||
} else {
|
} else {
|
||||||
s_logger.info("Successfully sent out command to start HTTP handling in console proxy agent");
|
s_logger.info("Successfully sent out command to start HTTP handling in console proxy agent");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}catch (NoSuchAlgorithmException e) {
|
}catch (NoSuchAlgorithmException e) {
|
||||||
s_logger.error("Unexpected exception in SecureRandom Algorithm selection ", e);
|
s_logger.error("Unexpected exception in SecureRandom Algorithm selection ", e);
|
||||||
} catch (AgentUnavailableException e) {
|
} catch (AgentUnavailableException e) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user