mirror of https://github.com/apache/cloudstack.git
CS-15689. Part 2. Removing timeout during login to netscaler
This commit is contained in:
parent
7b3a5aa492
commit
f444ce9c2e
|
|
@ -125,7 +125,7 @@ public class NetscalerResource implements ServerResource {
|
|||
// interface to interact with service VM of the SDX appliance
|
||||
com.citrix.sdx.nitro.service.nitro_service _netscalerSdxService;
|
||||
|
||||
Long _timeout = new Long(0);
|
||||
Long _timeout = new Long(100000);
|
||||
base_response apiCallResult;
|
||||
|
||||
public NetscalerResource () {
|
||||
|
|
@ -233,7 +233,7 @@ public class NetscalerResource implements ServerResource {
|
|||
if (!_isSdx) {
|
||||
_netscalerService = new com.citrix.netscaler.nitro.service.nitro_service(_ip, "https");
|
||||
_netscalerService.set_credential(_username, _password);
|
||||
_netscalerService.set_timeout(_timeout);
|
||||
// _netscalerService.set_timeout(_timeout);
|
||||
apiCallResult = _netscalerService.login();
|
||||
if (apiCallResult.errorcode != 0) {
|
||||
throw new ExecutionException ("Failed to log in to Netscaler device at " + _ip + " due to error " + apiCallResult.errorcode + " and message " + apiCallResult.message);
|
||||
|
|
@ -1318,7 +1318,7 @@ public class NetscalerResource implements ServerResource {
|
|||
try {
|
||||
nitro_service _netscalerService = new nitro_service(cmd.getLoadBalancerIP(), "https");
|
||||
_netscalerService.set_credential(username, password);
|
||||
_netscalerService.set_timeout(_timeout);
|
||||
// _netscalerService.set_timeout(_timeout);
|
||||
apiCallResult = _netscalerService.login();
|
||||
if (apiCallResult.errorcode == 0) {
|
||||
nsServiceUp = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue