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:
Vijayendra Bhamidipati 2012-07-16 17:19:52 -07:00
parent 9a550adb75
commit 27d78616a4
1 changed files with 2 additions and 2 deletions

View File

@ -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());