NSX|P: Fail network creation of mdproxy creation fails

Change-Id: I1c806c44697cb00093125dbb0c5b65ab0b13e9d7
This commit is contained in:
Adit Sarfaty 2019-10-10 09:24:58 +03:00
parent 4a749bc35e
commit 8364a82f30
1 changed files with 4 additions and 2 deletions

View File

@ -758,8 +758,10 @@ class NsxPolicyPlugin(nsx_plugin_common.NsxPluginV3Base):
self._create_net_mdproxy_port(
context, created_net, az, nsx_net_id)
except Exception as e:
LOG.error("Failed to create mdproxy port for network %s: %s",
net_id, e)
LOG.exception("Failed to create mdproxy port for network %s: "
"%s", net_id, e)
with excutils.save_and_reraise_exception():
self.delete_network(context, net_id)
# Update the QoS policy (will affect only future compute ports)
qos_com_utils.set_qos_policy_on_new_net(