mirror of https://github.com/apache/cloudstack.git
Catch and ignore exceptions caused by external program, let console proxy at least continue and give possibility for administrator to manually correct the route issue inside console proxy VM
This commit is contained in:
parent
6aae1adc1b
commit
e932f23af2
|
|
@ -442,7 +442,11 @@ public class ConsoleProxyResource extends ServerResourceBase implements ServerRe
|
|||
|
||||
// this method won't be called in high frequency, serialize access to script execution
|
||||
synchronized(this) {
|
||||
addRouteToInternalIpOrCidr(_localgw, _eth1ip, _eth1mask, address);
|
||||
try {
|
||||
addRouteToInternalIpOrCidr(_localgw, _eth1ip, _eth1mask, address);
|
||||
} catch(Throwable e) {
|
||||
s_logger.warn("Unexpected exception while adding internal route to " + address, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue