If neutron sends a single event to nova and the server_uuid isn't found
in nova. The python-novaclient will raise a 404 error. This patch ensures
we explicitly catch that exception and use LOG.warning instead of LOG.exception
as this is not an error and can happen when deleting an instance if neutron
detects that the port_status goes down before the port is deleted because
nova first unplugs the vif and then deletes it from neutron.
Closes-bug: #1309187
(cherry picked from commit c049583e80d9b2234557a11b77d843549f1efa65)
Reviewed: https:/ /review. openstack. org/141180 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=088b755e621 cf9d38f3e41f712 56a22ded26a9d6
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit 088b755e621cf9d 38f3e41f71256a2 2ded26a9d6
Author: Aaron Rosen <email address hidden>
Date: Thu Apr 17 13:42:39 2014 -0700
Notifier: Catch NotFound error from nova
If neutron sends a single event to nova and the server_uuid isn't found
in nova. The python-novaclient will raise a 404 error. This patch ensures
we explicitly catch that exception and use LOG.warning instead of LOG.exception
as this is not an error and can happen when deleting an instance if neutron
detects that the port_status goes down before the port is deleted because
nova first unplugs the vif and then deletes it from neutron.
Closes-bug: #1309187 34557a11b77d843 549f1efa65)
(cherry picked from commit c049583e80d9b22
Conflicts: notifiers/ nova.py
neutron/
Change-Id: I7e72da61ccf4c1 a3ccc48feb0fdf3 d165cdda388