diff --git a/vmware_nsx/plugins/nsx_v/plugin.py b/vmware_nsx/plugins/nsx_v/plugin.py index b36513f770..2e6a6e093a 100644 --- a/vmware_nsx/plugins/nsx_v/plugin.py +++ b/vmware_nsx/plugins/nsx_v/plugin.py @@ -2979,8 +2979,12 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin, # TODO(berlin): Add fw rules if fw service is supported fake_fw = {'firewall_rule_list': fake_fw_rules} - edge_utils.update_firewall(self.nsx_v, context, router_id, fake_fw, - allow_external=allow_external) + try: + edge_utils.update_firewall(self.nsx_v, context, router_id, fake_fw, + allow_external=allow_external) + except vsh_exc.ResourceNotFound: + LOG.error(_LE("Failed to update firewall for router %s"), + router_id) # Security group handling section # def _delete_nsx_security_group(self, nsx_sg_id): diff --git a/vmware_nsx/plugins/nsx_v/vshield/edge_appliance_driver.py b/vmware_nsx/plugins/nsx_v/vshield/edge_appliance_driver.py index a8dd543bfa..315d457f07 100644 --- a/vmware_nsx/plugins/nsx_v/vshield/edge_appliance_driver.py +++ b/vmware_nsx/plugins/nsx_v/vshield/edge_appliance_driver.py @@ -338,6 +338,11 @@ class EdgeApplianceDriver(object): {'vnic_index': index, 'edge_id': edge_id}) try: self.vcns.delete_interface(edge_id, index) + except exceptions.ResourceNotFound: + LOG.error(_LE('Failed to delete vnic %(vnic_index)s on edge ' + '%(edge_id)s: edge was not found'), + {'vnic_index': index, + 'edge_id': edge_id}) except exceptions.VcnsApiException: with excutils.save_and_reraise_exception(): LOG.exception(_LE("Failed to delete vnic %(vnic_index)s: "