DVR Router ports and gateway ports are not bound to any host and no snat namespace created
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Swaminathan Vasudevan |
Bug Description
In the Pike cycle there were some refactoring to the DVR db classes and resource handler mixin.
This lead to the regression where it was not creating the SNAT namespace for the DVR routers if it has gateway configured.
The only namespace seen was the fipnamespace.
This was the patch set that caused the regression.
https:/
On further debugging it was found that the snat ports and the distributed router ports were not host bound. The neutron was trying to bind it to a 'null' host.
The '_build_
We have seen a similar issue a while back, #1369012 (Fix KeyError on missing gw_port_host for L3 agent in DVR mode
The issue here is the order of inheritance of the classes. If the order of inheritance of the classes are messed up, then the functions that are over-ridden are not called in the right order or skipped.
So with this we have seen the same problem, where the '_build_
This is the current order of inheritance.
class L3_NAT_
If the order is shuffled, it works fine and here is the shuffled order.
class L3_NAT_
This seems to fix the problem.
tags: | added: l3-dvr-backlog |
Changed in neutron: | |
assignee: | nobody → Swaminathan Vasudevan (swaminathan-vasudevan) |
status: | New → Confirmed |
tags: | added: neutron-proactive-backport-potential |
tags: | removed: neutron-proactive-backport-potential |
Fix proposed to branch: master /review. openstack. org/470063
Review: https:/