Merge "NSX-V: Re-raise exception if failed to assign security-group to port"
This commit is contained in:
commit
2fcac8789f
@ -664,10 +664,11 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
|
|||||||
"group %(vnic_id)s"),
|
"group %(vnic_id)s"),
|
||||||
{'sg_id': sg_id, 'vnic_id': vnic_id})
|
{'sg_id': sg_id, 'vnic_id': vnic_id})
|
||||||
except Exception:
|
except Exception:
|
||||||
LOG.debug("NSX security group %(sg_id)s member add "
|
with excutils.save_and_reraise_exception():
|
||||||
"failed %(vnic_id)s.",
|
LOG.error(_LE("NSX security group %(sg_id)s member add "
|
||||||
{'sg_id': sg_id,
|
"failed %(vnic_id)s."),
|
||||||
'vnic_id': vnic_id})
|
{'sg_id': sg_id,
|
||||||
|
'vnic_id': vnic_id})
|
||||||
|
|
||||||
def _add_security_groups_port_mapping(self, session, vnic_id,
|
def _add_security_groups_port_mapping(self, session, vnic_id,
|
||||||
added_sgids):
|
added_sgids):
|
||||||
|
Loading…
Reference in New Issue
Block a user