Revert "Ensure namespace network resources are deleted even on subnet not found"
This reverts commit 7691e94ef3327e185d0157f83b9e75f9ef555346. The 0.41.0 version of openstacksdk is free of this issue. Also we still need to keep the handle_neutron_errors for support of older openstacksdks. Change-Id: I5bffda72cc8f1e348581ef38cb68cb8336e2af59
This commit is contained in:
parent
b0779c76e1
commit
6d46466c27
@ -102,16 +102,10 @@ class NamespacePodSubnetDriver(default_subnet.DefaultPodSubnetDriver):
|
|||||||
# or subnet is already detached.
|
# or subnet is already detached.
|
||||||
LOG.debug(e.message)
|
LOG.debug(e.message)
|
||||||
pass
|
pass
|
||||||
except os_exc.SDKException as e:
|
except os_exc.SDKException:
|
||||||
# FIXME(maysams): Rely only on the NotFoundException handling
|
LOG.exception("Error deleting subnet %(subnet)s from router "
|
||||||
# when the bug fixed at 704998 is merged.
|
"%(router)s.",
|
||||||
if "could not be found" in str(e.message):
|
{'subnet': subnet_id, 'router': router_id})
|
||||||
LOG.debug(e.message)
|
|
||||||
else:
|
|
||||||
LOG.exception(
|
|
||||||
"Error deleting subnet %(subnet)s from router "
|
|
||||||
"%(router)s.", {'subnet': subnet_id, 'router':
|
|
||||||
router_id})
|
|
||||||
raise
|
raise
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user