bug 13338:

increate timeout for sshcheck to 10 minutes
if sshcheck fails, finalizeCommandsOnStart fails, no exception

status 13338: resolved fixed
This commit is contained in:
anthony 2012-01-26 12:20:15 -08:00
parent 952939ab0f
commit 3615b15c39
5 changed files with 10 additions and 8 deletions

View File

@ -30,12 +30,12 @@ public class CheckSshCommand extends Command {
super();
}
public CheckSshCommand(String instanceName, String ip, int port, int interval, int retries) {
public CheckSshCommand(String instanceName, String ip, int port) {
super();
this.ip = ip;
this.port = port;
this.interval = interval;
this.retries = retries;
this.interval = 6;
this.retries = 100;
this.name = instanceName;
}

View File

@ -1435,7 +1435,7 @@ public class ConsoleProxyManagerImpl implements ConsoleProxyManager, ConsoleProx
controlNic = managementNic;
}
CheckSshCommand check = new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922, 5, 20);
CheckSshCommand check = new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922);
cmds.addCommand("checkSsh", check);
return true;

View File

@ -937,7 +937,7 @@ public class ElasticLoadBalancerManagerImpl implements
return false;
}
cmds.addCommand("checkSsh", new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922, 5, 20));
cmds.addCommand("checkSsh", new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922));
// Re-apply load balancing rules
List<LoadBalancerVO> lbs = _elbVmMapDao.listLbsForElbVm(elbVm.getId());

View File

@ -1758,7 +1758,7 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
return false;
}
cmds.addCommand("checkSsh", new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922, 5, 20));
cmds.addCommand("checkSsh", new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922));
// Update router template/scripts version
final GetDomRVersionCmd command = new GetDomRVersionCmd();
@ -1934,7 +1934,9 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
} else {
result = false;
}
if (result == false) {
return false;
}
answer = cmds.getAnswer("getDomRVersion");
if (answer != null && answer instanceof GetDomRVersionAnswer) {
GetDomRVersionAnswer versionAnswer = (GetDomRVersionAnswer)answer;

View File

@ -1109,7 +1109,7 @@ public class SecondaryStorageManagerImpl implements SecondaryStorageVmManager, V
controlNic = managementNic;
}
CheckSshCommand check = new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922, 5, 20);
CheckSshCommand check = new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922);
cmds.addCommand("checkSsh", check);
return true;