mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
this is to reset master for the secondary master in the same cluster. It may happend when you reboot the master of a cluster, there might be 2 master after the old master comes back
This commit is contained in:
parent
80a328034c
commit
6f7b9eafa1
@ -451,7 +451,6 @@ public class XenServerConnectionPool {
|
||||
// wait 2 second
|
||||
forceSleep(2);
|
||||
}
|
||||
|
||||
}
|
||||
// then try emergency reset master
|
||||
Set<Host> slaves = Host.getAll(conn);
|
||||
@ -533,7 +532,8 @@ public class XenServerConnectionPool {
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug(msg);
|
||||
}
|
||||
throw new CloudRuntimeException(msg, e);
|
||||
PoolEmergencyResetMaster(ipAddress, mConn.getIp(), mConn.getUsername(), mConn.getPassword());
|
||||
return mConn;
|
||||
} catch (Types.HostOffline e ) {
|
||||
String msg = "Can't connect host " + ipAddress + " due to " + e.toString();
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user