Bug 1038737
| Summary: | neutron is creating duplicated NAT rules, resulting in instances without network connection | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Attila Darazs <adarazs> |
| Component: | openstack-neutron | Assignee: | Terry Wilson <twilson> |
| Status: | CLOSED ERRATA | QA Contact: | Ofer Blaut <oblaut> |
| Severity: | urgent | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.0 | CC: | adarazs, chrisw, danken, ggillies, jhenner, lpeer, oblaut, psedlak, sclewis, twilson, yeylon |
| Target Milestone: | z1 | Keywords: | Unconfirmed, ZStream |
| Target Release: | 4.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-neutron-2013.2.1-1.el6ost | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1022980 | Environment: | |
| Last Closed: | 2014-01-22 18:31:52 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Attila Darazs
2013-12-05 17:21:27 UTC
The version of neutron of course is openstack-neutron-2013.2-9.el6ost.noarch. We use namespaces, the double NAT rule was in the namespace of the relevant router. I couldn't find a way to reproduce it but it happens often when the system is allocating and assigning Floating IPs more heavily. A way I imagine that it could be checked is creating several tiny instances and allocating/associating IPs with it and meanwhile checking the iptables nat table in the relevant router's namespace. I'll keep trying to find a way to reproduce. The other 3.0.z issue the last comment from the reporter was that they couldn't reproduce it on 3.0 anymore. So, I'll switch to 4.0 and see if I can hammer on it until it happens. Until then, if someone could post actual logs from when this happens for them (l3 logs, api logs, qpid logs, also the packstack answer file so I can see if this is multi-host, etc.) it would be helpful. Especially since I've run the above script for 24 hours solid w/o getting the issue. I have just hit it on the Grizzly openstack-quantum-2013.1.4-3.el6ost.noarch:
-A quantum-l3-agent-PREROUTING -d 10.34.68.207/32 -j DNAT --to-destination 172.16.0.13
-A quantum-l3-agent-PREROUTING -d 10.34.68.207/32 -j DNAT --to-destination 172.16.0.15
-A quantum-l3-agent-OUTPUT -d 10.34.68.207/32 -j DNAT --to-destination 172.16.0.13
-A quantum-l3-agent-OUTPUT -d 10.34.68.207/32 -j DNAT --to-destination 172.16.0.15
-A quantum-l3-agent-float-snat -s 172.16.0.13/32 -j SNAT --to-source 10.34.68.207
-A quantum-l3-agent-float-snat -s 172.16.0.15/32 -j SNAT --to-source 10.34.68.207
I don't know why I was unable to reproduce it with the script above.
I believe this was fixed by https://github.com/openstack/neutron/commit/a65188fab01f29d095031abbc8d1d194548cd8be#diff-0b4d77c924888b648beb73c622bf5869, which we pulled in with the latest re-base. I can no longer reproduce the bug with my test script. Verified on openstack-neutron-2013.2.1-2.el6ost.noarch I have created 10 VMs and created new floating ip assign them and check iptables later dissociate them delete and repeat the steps, no duplicate appear Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2014-0091.html |