[ 
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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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.421672    SUCCESS
> [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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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)

Reply via email to