[NETVIRT-174] floating IP rules deleted upon unrelated neutron port delete Created: 28/Sep/16  Updated: 19/Oct/17  Resolved: 25/Oct/16

Status: Resolved
Project: netvirt
Component/s: General
Affects Version/s: Boron
Fix Version/s: None

Type: Bug
Reporter: zan cohen Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File dump_flows.txt     Zip Archive karaf1.zip     Zip Archive karaf2.zip     Zip Archive karaf_logs_part1.zip     Zip Archive karaf_part1.zip     Text File neutronports.txt     Text File odlnat-floatingipinfo.txt    
External issue ID: 6824

 Comments   
Comment by zan cohen [ 28/Sep/16 ]

Hos version
***********
pb3_odl_Dpdk

Description
***********
1.create vm and router connection to external network.
2.add floating ip to vm
3.send ping to vm floating ip
4.run tempest tests
5.send ping to vm floating ip

Renault
*******
no ping reply from vm floating ip.

Comment by zan cohen [ 28/Sep/16 ]

**The reason for rule delete might be tempest test running (ansible-playbook -i hosts/verb_hosts tempest-run.yml) or the time that pass between first ping to last ping.

**first ping: Wed 9/28/16 12:04 PM
**Last ping:Wed 9/28/16 18:20 PM

Vm Details:
***********
Name:demo-vm-cpn-1-1
Host:NVP-Zan-cp1-comp0001-mgmt

IP Addresses:1.1.1.5
Floating ip:10.54.5.13

Comment by zan cohen [ 28/Sep/16 ]

Attachment neutronports.txt has been added with description: neutronports

Comment by zan cohen [ 28/Sep/16 ]

Attachment odlnat-floatingipinfo.txt has been added with description: odlnat-floatingipinfo

Comment by zan cohen [ 29/Sep/16 ]

Attachment dump_flows.txt has been added with description: Compute1(dump flows)

Comment by zan cohen [ 29/Sep/16 ]

Attachment karaf_logs_part1.zip has been added with description: karaf_logs

Comment by zan cohen [ 29/Sep/16 ]

Attachment karaf_part1.zip has been added with description: karaf_logs_part1

Comment by zan cohen [ 29/Sep/16 ]

Attachment karaf1.zip has been added with description: karaf1

Comment by zan cohen [ 29/Sep/16 ]

Attachment karaf2.zip has been added with description: karaf2

Comment by zan cohen [ 29/Sep/16 ]

Regarding Karaf logs:
please see karaf 1 and karaf2 only!!

Comment by Koby Aizer [ 13/Oct/16 ]

The scenario to cause this is:
1. Any router which has a single floating IP associated with one of its VMs. If there is more than one VM with a floating IP on that router, this won’t reproduce.
2. Any NeutronPort deletion (could be a vm port, external gateway interface port or even a floating-ip neutron port – none of them even has to be in the router from #1)

This will cause deletion of the floating-ip address from all routers which have a single floating IP mapped to one of their VMs.

The bug is in:
dissociatefixedIPFromFloatingIP in NeutronFloatingToFixedIpMappingChangeListener.java
In case a router is found with “portsList.size() == 1”, its routerPorts entry is deleted without any check whether this was the neutron port that was actually deleted..

Comment by Koby Aizer [ 25/Oct/16 ]

Fixed in https://git.opendaylight.org/gerrit/#/c/46985/

Generated at Wed Feb 07 20:20:53 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.