If one deletes NAT rules directly from NVP and not through quantum,
an error will be raised when deleting a port that is associated with
the floating ip. This patch catches the NotFound exception and logs
it so that the port can successfully be deleted.
Fixes bug:
1177176
Change-Id: Ia7d0b94957d0c6b014d242439245b0e4fa9de40d
except sa_exc.NoResultFound:
LOG.debug(_("The port '%s' is not associated with floating IPs"),
port_id)
+ except q_exc.NotFound:
+ LOG.warning(_("Nat rules not found in nvp for port: %s"), id)
+
super(NvpPluginV2, self).disassociate_floatingips(context, port_id)
def create_network_gateway(self, context, network_gateway):