bug 12844 : use plugin echo main to test if master can connect to slave

status 12844: resolved fixed

reviewed-by : edison
This commit is contained in:
anthony 2012-02-03 15:44:45 -08:00
parent 6d0bb6d585
commit cdc7c4083c
1 changed files with 7 additions and 1 deletions

View File

@ -641,7 +641,13 @@ public class XenServerConnectionPool {
if (s_managePool) {
try {
Map<String, String> args = new HashMap<String, String>();
host.callPlugin(mConn, "vmops", "pingxenserver", args);
host.callPlugin(mConn, "echo", "main", args);
} catch (Types.SessionInvalid e) {
if (s_logger.isDebugEnabled()) {
String msg = "Catch Exception: " + e.getClass().getName() + " Can't connect host " + ipAddress + " due to " + e.toString();
s_logger.debug(msg);
}
PoolEmergencyResetMaster(ipAddress, mConn.getIp(), mConn.getUsername(), mConn.getPassword());
} catch (Types.CannotContactHost e ) {
if (s_logger.isDebugEnabled()) {
String msg = "Catch Exception: " + e.getClass().getName() + " Can't connect host " + ipAddress + " due to " + e.toString();