From 069334d75bf737ac09b921e7ee554140004d7a2e Mon Sep 17 00:00:00 2001 From: Roey Chen Date: Sun, 15 May 2016 09:38:51 -0700 Subject: [PATCH] NSXv3: Clean up logical port for any nsgroup association error Closes-bug: #1582177 Change-Id: I924c10d93c88f81c74f8ea2751ab1ed711a48a76 --- vmware_nsx/plugins/nsx_v3/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/plugins/nsx_v3/plugin.py b/vmware_nsx/plugins/nsx_v3/plugin.py index 924eb0e1d6..a71ea19611 100644 --- a/vmware_nsx/plugins/nsx_v3/plugin.py +++ b/vmware_nsx/plugins/nsx_v3/plugin.py @@ -1025,7 +1025,7 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin, if sgids: security.update_lport_with_security_groups( context, lport['id'], [], sgids) - except nsx_exc.SecurityGroupMaximumCapacityReached: + except Exception: with excutils.save_and_reraise_exception(): LOG.debug("Couldn't associate port %s with " "one or more security-groups, reverting "