mirror of https://github.com/apache/cloudstack.git
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:
parent
952939ab0f
commit
3615b15c39
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue