Merge "Don't try to delete non-existent namespace"

This commit is contained in:
Jenkins 2016-10-04 11:37:23 +00:00 committed by Gerrit Code Review
commit b6fb169242
1 changed files with 3 additions and 0 deletions

View File

@ -238,6 +238,9 @@ class DhcpLocalProcess(DhcpBase):
self.interface_name)
ns_ip = ip_lib.IPWrapper(namespace=self.network.namespace)
if not ns_ip.netns.exists(self.network.namespace):
LOG.debug("Namespace already deleted: %s", self.network.namespace)
return
try:
ns_ip.netns.delete(self.network.namespace)
except RuntimeError: