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:
anthony 2011-02-16 14:39:00 -08:00
parent 80a328034c
commit 6f7b9eafa1

View File

@ -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()) {