You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Bharat Kumar (JIRA)" <ji...@apache.org> on 2013/07/01 14:41:19 UTC

[jira] [Updated] (CLOUDSTACK-3299) [Multiple_IP_Ranges][VMWare] incorrect arguments sent to the script

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-3299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bharat Kumar updated CLOUDSTACK-3299:
-------------------------------------

    Summary: [Multiple_IP_Ranges][VMWare] incorrect arguments sent to the script  (was: [Multiple_IP_Ranges][VMWare]createIpAlias script should take $2 instead of $1 to configure ip alias on VR)
    
> [Multiple_IP_Ranges][VMWare] incorrect arguments sent to the script
> -------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3299
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3299
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>         Environment: Latest build from master-6-17-stable
>            Reporter: Sanjeev N
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> createIpAlias script should take $2 instead of $1 to configure ip alias on VR:
> On vmware environment management server executes the following command to create IP alias on VR in case of multiple sub-nets in a vlan:
> 2013-07-01 10:44:36,897 DEBUG [vmware.resource.VmwareResource] (DirectAgent-41:10.147.40.18) Run command on domR 10.147.40.249, /root/createIpAlias 10.147.40.249 43:10.147.33.131:255.255.255.192-
> Following is the script content:
> set -x
> var="$1"
> cert="/root/.ssh/id_rsa.cloud"
> while [ -n "$var" ]
> do
>  var1=$(echo $var | cut -f1 -d "-")
>  alias_count=$( echo $var1 | cut -f1 -d ":" )
>  routerip=$(echo $var1 | cut -f2 -d ":")
>  netmask=$(echo $var1 | cut -f3 -d ":")
>  ifconfig eth0:$alias_count $routerip netmask $netmask up
>  var=$( echo $var | sed "s/${var1}-//" )
> done
> #restaring the password service to enable it on the ip aliases
> /etc/init.d/cloud-passwd-srvr restart
> exit $?
> In this script variable "var" should be set to $2 because $1 is the private ip address of the router vm and $2 is the alias IP Address.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira