[jira] [Commented] (CLOUDSTACK-7544) In multiple public subnet interface all ips got removed while removing first ip

2014-09-15 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14133727#comment-14133727
 ] 

ASF subversion and git services commented on CLOUDSTACK-7544:
-

Commit 3cb6d4a4dffc317603def7147bfeef7340c33a93 in cloudstack's branch 
refs/heads/master from Jayapal
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=3cb6d4a ]

CLOUDSTACK-7544: Fixed ip addr del issues in ipassoc


> In multiple public subnet interface all ips got removed while removing first 
> ip
> ---
>
> Key: CLOUDSTACK-7544
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7544
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Network Controller
>Affects Versions: 4.0.2
>Reporter: Jayapal Reddy
>Assignee: Jayapal Reddy
> Fix For: 4.5.0
>
>
> Repro steps:
> Step1: Enable static nat on 10.147.30.50 - static nat - eth3
> Step2: Enable static nat on 10.147.48.90 - static nat - eth4
> Step3: Enable static nat on 10.147.48.92 - static nat - eth4
> 5: eth3:  mtu 1500 qdisc pfifo_fast state UP 
> qlen 1000
> link/ether 06:cb:f9:00:00:0d brd ff:ff:ff:ff:ff:ff
> inet 10.147.30.50/24 brd 10.147.30.255 scope global eth3
> inet6 fe80::4cb:f9ff:fe00:d/64 scope link
> valid_lft forever preferred_lft forever
> 6: eth4:  mtu 1500 qdisc pfifo_fast state UP 
> qlen 1000
> link/ether 06:cb:fa:00:00:0d brd ff:ff:ff:ff:ff:ff
> inet 10.147.48.90/24 brd 10.147.48.255 scope global eth4
> inet 10.147.48.92/24 brd 10.147.48.255 scope global secondary eth4
> inet6 fe80::4cb:faff:fe00:d/64 scope link
> valid_lft forever preferred_lft forever
> Step4: delete static nat on 10.147.40.50 - atatic nat, eth3 got removed on VR
> 4: eth2:  mtu 1500 qdisc pfifo_fast state UP 
> qlen 1000
> link/ether 06:cb:f0:00:00:0d brd ff:ff:ff:ff:ff:ff
> inet 10.147.31.23/24 brd 10.147.31.255 scope global eth2
> inet 10.147.31.22/24 brd 10.147.31.255 scope global secondary eth2
> inet6 fe80::4cb:f0ff:fe00:d/64 scope link
> valid_lft forever preferred_lft forever
> 22: eth4:  mtu 1500 qdisc pfifo_fast state 
> UP qlen 1000
> link/ether 06:cb:fa:00:00:0d brd ff:ff:ff:ff:ff:ff
> inet 10.147.48.92/24 brd 10.147.48.255 scope global eth4
> inet 10.147.48.90/24 brd 10.147.48.255 scope global secondary eth4
> inet6 fe80::4cb:faff:fe00:d/64 scope link
> valid_lft forever preferred_lft forever
> Step4: disable static nat on 10.147.48.90 (first ip) and observe that the 
> eth4 is removed and eth3 got created.
> eth4 should not be created untill all the ips on eth4 are removed.
> [30573] 2014-08-14 17:44:45.175056 VMOPS enter setFirewallRule 
> [30573] 2014-08-14 17:44:45.175140['/bin/bash', 
> '/opt/xensource/bin/call_firewall.sh', '169.254.3.228', '-D', '', '-l', 
> '10.147.48.92', '-r', '10.1.1.138', '-d', '0:0', '-G', '']
> [30573] 2014-08-14 17:44:45.421672SUCCESS
> [30573] 2014-08-14 17:44:45.421774 VMOPS exit setFirewallRule 
> [30586] 2014-08-14 17:44:45.790151 VMOPS enter routerProxy 
> [30586] 2014-08-14 17:44:45.790228['/bin/bash', 
> '/opt/xensource/bin/router_proxy.sh', 'ipassoc.sh', '169.254.3.228', '-D', 
> '', '-s', '-f', '-l', '10.147.48.92/24', '-c', 'eth4', '-g', '10.147.48.1']
> [30586] 2014-08-14 17:44:46.052362SUCCESS
> [30586] 2014-08-14 17:44:46.052464 VMOPS exit routerProxy 
> [30592] 2014-08-14 17:44:46.135226 VMOPS enter routerProxy 
> [30592] 2014-08-14 17:44:46.135306['/bin/bash', 
> '/opt/xensource/bin/router_proxy.sh', 'ipassoc.sh', '169.254.3.228', '-D', 
> '', '-s', '-f', '-l', '10.147.48.92/24', '-c', 'eth4', '-g', '10.147.48.1', 
> '-d']
> [30592] 2014-08-14 17:44:46.244325FAILED: (rc 1) stdout: '', stderr: '+ 
> ssh -p 3922 -q -o StrictHostKeyChecking=no -i /root/.ssh/id_rsa.cloud 
> root@169.254.3.228 '/opt/cloud/bin/ipassoc.sh -D -s -f -l 10.147.48.92/24 -c 
> eth4 -g 10.147.48.1 -d'
> + exit 1
> '
> [30592] 2014-08-14 17:44:46.244453routerProxy command ipassoc.sh 
> 169.254.3.228 -D -s -f -l 10.147.48.92/24 -c eth4 -g 10.147.48.1 -d failed
> [30592] 2014-08-14 17:44:46.244511 VMOPS exit routerProxy 
> [30598] 2014-08-14 17:44:46.336404 VMOPS enter routerProxy 
> [30598] 2014-08-14 17:44:46.336475['/bin/bash', 
> '/opt/xensource/bin/router_proxy.sh', 'netusage.sh', '169.254.3.228', '-d', 
> 'eth4']
> [30598] 2014-08-14 17:44:46.443086SUCCESS
> [30598] 2014-08-14 17:44:46.443189 VMOPS exit routerProxy 
> [31018] 2014-08-14 17:44:49.121661 VMOPS enter routerProxy 
> [31018] 2014-08-14 17:44:49.121736['/bin/bash', 
> '/opt/xensource/bin/router_proxy.sh', 'netusage.sh', '169.254.3.228', '-a', 
> 'eth3']

[jira] [Commented] (CLOUDSTACK-7544) In multiple public subnet interface all ips got removed while removing first ip

2014-09-15 Thread Jayapal Reddy (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14133807#comment-14133807
 ] 

Jayapal Reddy commented on CLOUDSTACK-7544:
---


Problem:
---
first ip address on additional public subnet is deleted observed that the 
interface on the router removed 

Root Cause Analysis:
--
1. deleting primary ip deletes all the ips on the interface
2. Here deleting 10.147.48.90 deletes the other ip.
root@r-2-VM:~# ip addr show dev eth4
24: eth4:  mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
link/ether 06:cb:fa:00:00:0d brd ff:ff:ff:ff:ff:ff
inet 10.147.48.90/24 scope global eth4
inet 10.147.48.92/24 scope global secondary eth4
inet6 fe80::4cb:faff:fe00:d/64 scope link
valid_lft forever preferred_lft forever

root@r-2-VM:~# ip addr del dev eth4 10.147.48.90/24
root@r-2-VM:~# ip addr show dev eth4
24: eth4:  mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
link/ether 06:cb:fa:00:00:0d brd ff:ff:ff:ff:ff:ff
inet6 fe80::4cb:faff:fe00:d/64 scope link
valid_lft forever preferred_lft forever

Proposed solution:
---
After deleting the ip add the remaining ips again into interface.

Verification steps:
--
1. Create additional public subnet
2. Acquire more than ip and configure some rules on the ip.
3. Delete the first ip and make sure remaining ips are present on the interface.


> In multiple public subnet interface all ips got removed while removing first 
> ip
> ---
>
> Key: CLOUDSTACK-7544
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7544
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Network Controller
>Affects Versions: 4.0.2
>Reporter: Jayapal Reddy
>Assignee: Jayapal Reddy
> Fix For: 4.5.0
>
>
> Repro steps:
> Step1: Enable static nat on 10.147.30.50 - static nat - eth3
> Step2: Enable static nat on 10.147.48.90 - static nat - eth4
> Step3: Enable static nat on 10.147.48.92 - static nat - eth4
> 5: eth3:  mtu 1500 qdisc pfifo_fast state UP 
> qlen 1000
> link/ether 06:cb:f9:00:00:0d brd ff:ff:ff:ff:ff:ff
> inet 10.147.30.50/24 brd 10.147.30.255 scope global eth3
> inet6 fe80::4cb:f9ff:fe00:d/64 scope link
> valid_lft forever preferred_lft forever
> 6: eth4:  mtu 1500 qdisc pfifo_fast state UP 
> qlen 1000
> link/ether 06:cb:fa:00:00:0d brd ff:ff:ff:ff:ff:ff
> inet 10.147.48.90/24 brd 10.147.48.255 scope global eth4
> inet 10.147.48.92/24 brd 10.147.48.255 scope global secondary eth4
> inet6 fe80::4cb:faff:fe00:d/64 scope link
> valid_lft forever preferred_lft forever
> Step4: delete static nat on 10.147.40.50 - atatic nat, eth3 got removed on VR
> 4: eth2:  mtu 1500 qdisc pfifo_fast state UP 
> qlen 1000
> link/ether 06:cb:f0:00:00:0d brd ff:ff:ff:ff:ff:ff
> inet 10.147.31.23/24 brd 10.147.31.255 scope global eth2
> inet 10.147.31.22/24 brd 10.147.31.255 scope global secondary eth2
> inet6 fe80::4cb:f0ff:fe00:d/64 scope link
> valid_lft forever preferred_lft forever
> 22: eth4:  mtu 1500 qdisc pfifo_fast state 
> UP qlen 1000
> link/ether 06:cb:fa:00:00:0d brd ff:ff:ff:ff:ff:ff
> inet 10.147.48.92/24 brd 10.147.48.255 scope global eth4
> inet 10.147.48.90/24 brd 10.147.48.255 scope global secondary eth4
> inet6 fe80::4cb:faff:fe00:d/64 scope link
> valid_lft forever preferred_lft forever
> Step4: disable static nat on 10.147.48.90 (first ip) and observe that the 
> eth4 is removed with all the ups
> [30573] 2014-08-14 17:44:45.175056 VMOPS enter setFirewallRule 
> [30573] 2014-08-14 17:44:45.175140['/bin/bash', 
> '/opt/xensource/bin/call_firewall.sh', '169.254.3.228', '-D', '', '-l', 
> '10.147.48.92', '-r', '10.1.1.138', '-d', '0:0', '-G', '']
> [30573] 2014-08-14 17:44:45.421672SUCCESS
> [30573] 2014-08-14 17:44:45.421774 VMOPS exit setFirewallRule 
> [30586] 2014-08-14 17:44:45.790151 VMOPS enter routerProxy 
> [30586] 2014-08-14 17:44:45.790228['/bin/bash', 
> '/opt/xensource/bin/router_proxy.sh', 'ipassoc.sh', '169.254.3.228', '-D', 
> '', '-s', '-f', '-l', '10.147.48.92/24', '-c', 'eth4', '-g', '10.147.48.1']
> 4: eth2:  mtu 1500 qdisc pfifo_fast state UP 
> qlen 1000
> link/ether 06:cb:f0:00:00:0d brd ff:ff:ff:ff:ff:ff
> inet 10.147.31.23/24 brd 10.147.31.255 scope global eth2
> inet 10.147.31.22/24 brd 10.147.31.255 scope global secondary eth2
> inet6 fe80::4cb:f0ff:fe00:d/64 scope link
> valid_lft forever preferred_lft forever
> 23:  eth4:  mtu 1500 qdisc pfifo_fast state 
> UP qlen 1000
> link/ether 06:cb:fa:00:00:0d brd ff:ff:ff:ff:ff:ff
> inet6 fe80::4cb:faff:fe00:d/64 scope link
> valid_lft forever preferred_lft forever



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)