Reviewed: https://review.openstack.org/427974 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=00c0830c3e227b3a278cf10cfd68f724e433f38c Submitter: Jenkins Branch: master
commit 00c0830c3e227b3a278cf10cfd68f724e433f38c Author: Matt Riedemann <mriedem...@gmail.com> Date: Wed Feb 1 19:03:03 2017 -0500 Handle NotImplementedError in _process_instance_vif_deleted_event The Ironic virt driver does not support attach/detach of VIFs (yet) so when Neutron sends an asynchronous event back to Nova that VIFs were unplugged on instance delete, we do not need to trace all over the logs when the Ironic driver does not implement detach_interface(). Change-Id: I6f6533322c1179b3396e56b37c4f3f4228d8da01 Closes-Bug: #1660317 ** Changed in: nova Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1660317 Title: NotImplementedError for detach_interface in nova-compute during instance deletion Status in Ironic: New Status in OpenStack Compute (nova): Fix Released Status in ironic package in Ubuntu: New Bug description: When baremetal instance deleted there is a harmless but annoying trace in nova-compute output. nova.compute.manager[26553]: INFO [instance: e265be67-9e87-44ea-95b6-641fc2dcaad8] Terminating instance [req-5f1eba69-239a-4dd4-8677-f28542b190bc 5a08515f35d749068a6327e387ca04e2 7d450ecf00d64399aeb93bc122cb6dae - - -] nova.compute.resource_tracker[26553]: INFO Auditing locally available compute resources for node d02c7361-5e3a-4fdf-89b5-f29b3901f0fc [req-d34e2b7b-386f-4a3c-ae85-16860a4a9c28 - - - - -] nova.compute.resource_tracker[26553]: INFO Final resource view: name=d02c7361-5e3a-4fdf-89b5-f29b3901f0fc phys_ram=0MB used_ram=8096MB phys_disk=0GB used_disk=480GB total_vcpus=0 used_vcpus=0 pci_stats=[] [req-d34e2b7b-386f-4a3c-ae85-16860a4a9c28 - - - - -] nova.compute.resource_tracker[26553]: INFO Compute_service record updated for bare-compute1:d02c7361-5e3a-4fdf-89b5-f29b3901f0fc [req-d34e2b7b-386f-4a3c-ae85-16860a4a9c28 - - - - -] nova.compute.manager[26553]: INFO [instance: e265be67-9e87-44ea-95b6-641fc2dcaad8] Neutron deleted interface 6b563aa7-64d3-4105-9ed5-c764fee7b536; detaching it from the instance and deleting it from the info cache [req-fdfeee26-a860-40a5-b2e3-2505973ffa75 11b95cf353f74788938f580e13b652d8 93c697ef6c2649eb9966900a8d6a73d8 - - -] oslo_messaging.rpc.server[26553]: ERROR Exception during message handling [req-fdfeee26-a860-40a5-b2e3-2505973ffa75 11b95cf353f74788938f580e13b652d8 93c697ef6c2649eb9966900a8d6a73d8 - - -] oslo_messaging.rpc.server[26553]: TRACE Traceback (most recent call last): oslo_messaging.rpc.server[26553]: TRACE File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 133, in _process_incoming oslo_messaging.rpc.server[26553]: TRACE res = self.dispatcher.dispatch(message) oslo_messaging.rpc.server[26553]: TRACE File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 150, in dispatch oslo_messaging.rpc.server[26553]: TRACE return self._do_dispatch(endpoint, method, ctxt, args) oslo_messaging.rpc.server[26553]: TRACE File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 121, in _do_dispatch oslo_messaging.rpc.server[26553]: TRACE result = func(ctxt, **new_args) oslo_messaging.rpc.server[26553]: TRACE File "/usr/lib/python2.7/dist-packages/nova/exception_wrapper.py", line 75, in wrapped oslo_messaging.rpc.server[26553]: TRACE function_name, call_dict, binary) oslo_messaging.rpc.server[26553]: TRACE File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ oslo_messaging.rpc.server[26553]: TRACE self.force_reraise() oslo_messaging.rpc.server[26553]: TRACE File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise oslo_messaging.rpc.server[26553]: TRACE six.reraise(self.type_, self.value, self.tb) oslo_messaging.rpc.server[26553]: TRACE File "/usr/lib/python2.7/dist-packages/nova/exception_wrapper.py", line 66, in wrapped oslo_messaging.rpc.server[26553]: TRACE return f(self, context, *args, **kw) oslo_messaging.rpc.server[26553]: TRACE File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 6691, in external_instance_event oslo_messaging.rpc.server[26553]: TRACE event.tag) oslo_messaging.rpc.server[26553]: TRACE File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 6660, in _process_instance_vif_deleted_event oslo_messaging.rpc.server[26553]: TRACE self.driver.detach_interface(instance, vif) oslo_messaging.rpc.server[26553]: TRACE File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 524, in detach_interface oslo_messaging.rpc.server[26553]: TRACE raise NotImplementedError() oslo_messaging.rpc.server[26553]: TRACE NotImplementedError oslo_messaging.rpc.server[26553]: TRACE Affected version: nova 14.0.3 neutron 6.0.0 ironic 6.2.1 configuration for nova-compute: compute_driver = ironic.IronicDriver Ironic is configured to use neutron networks with generic switch as mechanism driver for ML2 pluging. To manage notifications about this bug go to: https://bugs.launchpad.net/ironic/+bug/1660317/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp