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 Conflicts: server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
This commit is contained in:
parent
1203063fef
commit
1f53790626
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1408,7 +1408,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;
|
||||
|
|
|
|||
|
|
@ -940,7 +940,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());
|
||||
|
|
|
|||
|
|
@ -1618,7 +1618,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));
|
||||
|
||||
// Network usage command to create iptables rules
|
||||
cmds.addCommand("networkUsage", new NetworkUsageCommand(controlNic.getIp4Address(), router.getHostName(), "create"));
|
||||
|
|
@ -1748,7 +1748,6 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
|
|||
s_logger.warn("Unable to ssh to the VM: " + answer.getDetails());
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1059,7 +1059,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