cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harikrishna Patnala (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-3299) [Multiple_IP_Ranges][VMWare] incorrect arguments sent to the script
Date Thu, 01 Aug 2013 11:33:50 GMT

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

Harikrishna Patnala resolved CLOUDSTACK-3299.
---------------------------------------------

    Resolution: Fixed

4.2 commit 087b1dcfc303b51621380801b86a95d2efbbe4b6 
                
> [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
>            Assignee: Harikrishna Patnala
>            Priority: Blocker
>             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

Mime
View raw message