mirror of https://github.com/apache/cloudstack.git
CS-15567: When guest network updated with different network rate, api.commands.UpdateNetworkCmd execution consistently fails first time with error "ipassoc failed due to bash: /root/ipassoc.sh: Permission denied", retry succeeds,VM created with old network rate
Description: Changing path ipassoc.sh is referred to in VmwareResource.java to reflect new patch in /opt/cloud/bin inside the virtual router VM.
This commit is contained in:
parent
9a550adb75
commit
27d78616a4
|
|
@ -1278,11 +1278,11 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||
args += vlanGateway;
|
||||
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug("Run command on domain router " + privateIpAddress + ", /root/ipassoc.sh " + args);
|
||||
s_logger.debug("Run command on domain router " + privateIpAddress + ", /opt/cloud/bin/ipassoc.sh " + args);
|
||||
}
|
||||
|
||||
VmwareManager mgr = getServiceContext().getStockObject(VmwareManager.CONTEXT_STOCK_NAME);
|
||||
Pair<Boolean, String> result = SshHelper.sshExecute(privateIpAddress, DEFAULT_DOMR_SSHPORT, "root", mgr.getSystemVMKeyFile(), null, "/root/ipassoc.sh " + args);
|
||||
Pair<Boolean, String> result = SshHelper.sshExecute(privateIpAddress, DEFAULT_DOMR_SSHPORT, "root", mgr.getSystemVMKeyFile(), null, "/opt/cloud/bin/ipassoc.sh " + args);
|
||||
|
||||
if (!result.first()) {
|
||||
s_logger.error("ipassoc command on domain router " + privateIpAddress + " failed. message: " + result.second());
|
||||
|
|
|
|||
Loading…
Reference in New Issue