]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Delete qg device during DVR-SNAT router deletion
authorAssaf Muller <amuller@redhat.com>
Fri, 13 Feb 2015 16:35:02 +0000 (11:35 -0500)
committerAssaf Muller <amuller@redhat.com>
Mon, 16 Feb 2015 14:23:10 +0000 (09:23 -0500)
commita172e200685567a71844f65ae09d79635073a2f8
treebfa9a4a6e7eedc92e5b16761d910607f74781d9b
parent4f5917e9e9e0d67ed314485baf9101eebf602f88
Delete qg device during DVR-SNAT router deletion

In the DVR SNAT case, the 'qg' device was not deleted because
of patch:
https://review.openstack.org/#/c/151882/

During functional testing, the device is deleted
during the external bridge deletion. Because that happens after
the SNAT namespace is already deleted, it can cause a kernel
panic or ovs-vswitchd crash for certain OVS versions.

Also added assertions that all router interfaces were properly
cleaned up during functional testing, and enabled the unit tests
to catch this type of error.

Change-Id: Ica86a030860aa967d5b685b5bfb5546a85b2a809
Closes-Bug: #1418097
neutron/agent/l3/agent.py
neutron/tests/functional/agent/test_l3_agent.py
neutron/tests/unit/test_l3_agent.py