Arista ML2 driver doesn't synchronize HA networks with EOS correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-arista |
Fix Committed
|
High
|
Shashank Hegde |
Bug Description
Running Openstack Kilo and networking-arista from master (1aa15e8).
With some HA networks already created in Neutron (created automatically when adding HA routers), restarting the CVX and neutron-server lead to those networks disappearing from EOS (not listed by "show openstack networks" anymore).
The problem seems to come from _cleanup_db() in neutron/
def _cleanup_db(self):
"""Clean up any uncessary entries in our DB."""
db_tenants = db_lib.
for tenant in db_tenants:
for net in neutron_nets:
db_nets = db_lib.
for net_id in db_nets.keys():
if net_id not in neutron_nets_id:
Since HA networks have no tenant_id, they won't be returned by self.ndb.
Changed in neutron: | |
assignee: | nobody → Shashank Hegde (hegde-shashank) |
affects: | neutron → networking-arista |
Changed in networking-arista: | |
importance: | Undecided → High |
Changed in networking-arista: | |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/225343 /git.openstack. org/cgit/ openstack/ networking- arista/ commit/ ?id=36c441dbdc0 2404c4049d0f3b0 57a169fe857235
Committed: https:/
Submitter: Jenkins
Branch: master
commit 36c441dbdc02404 c4049d0f3b057a1 69fe857235
Author: Shashank Hegde <email address hidden>
Date: Fri Sep 18 14:42:18 2015 -0700
Fixed HA router network cleanup
On neutron restart, the internal network created for HA router was cleaned up
as there was no tenant associated with that network. This patch ensures that
networks without tenant id are handled correctly.
Closes-Bug: 1494310
Change-Id: I0d9db9bc8fa48a c211fee5fde6aa3 e2dc8455361