Fix generation of thousands of DHCP tap interfaces
As reported in the bug, there may be an case where an empty
namespace file in /run/netns, but the namespace not
actually exist. In such case the DHCP agent throws an error
when pluging the interface in the dhcp namespace.
This may also result in many tap interfaces
getting generated in OVS bridge or Linux bridge.
This patch fixes the above bug by unpluging the tap device
in the bridge if exception occurs, this can prevents the tap
interfaces generate.
Co-Authored-By: Brian Haley <email address hidden>
Change-Id: I4a197edd180887ad36317ddb2f0c0e7bd2e34e30
Closes-Bug: #1561695
(cherry picked from commit 38d058c2cf0746e2452a0c2c704c914c836de9e7)
(cherry picked from commit aedc6dafa536a605aab1a524befc3011d1e7bbde)
Reviewed: https:/ /review. openstack. org/647953 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=ec14c577b87 1f06100c1972084 bedae589116517
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit ec14c577b871f06 100c1972084beda e589116517
Author: Dongcan Ye <email address hidden>
Date: Tue Jul 11 15:15:23 2017 +0800
Fix generation of thousands of DHCP tap interfaces
As reported in the bug, there may be an case where an empty
namespace file in /run/netns, but the namespace not
actually exist. In such case the DHCP agent throws an error
when pluging the interface in the dhcp namespace.
This may also result in many tap interfaces
getting generated in OVS bridge or Linux bridge.
This patch fixes the above bug by unpluging the tap device
in the bridge if exception occurs, this can prevents the tap
interfaces generate.
Co-Authored-By: Brian Haley <email address hidden>
Change-Id: I4a197edd180887 ad36317ddb2f0c0 e7bd2e34e30 2452a0c2c704c91 4c836de9e7) 5aab1a524befc30 11d1e7bbde)
Closes-Bug: #1561695
(cherry picked from commit 38d058c2cf0746e
(cherry picked from commit aedc6dafa536a60