Reviewed: https://review.openstack.org/390381 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f98e4aa5b70312cb75d5db92e9ab862ffcab1ca3 Submitter: Jenkins Branch: master
commit f98e4aa5b70312cb75d5db92e9ab862ffcab1ca3 Author: Diana Clarke <[email protected]> Date: Mon Oct 24 13:23:14 2016 -0400 Fix exception raised in exception wrapper In some cases the exception wrapper can't find the module name for a traceback (like lxml c extensions), resulting in an exception from inspect.getmodule(). Just set the module name to 'unknown' in these cases. Change-Id: Id5e181d682598eab6987ad6f0f194c77e061f69c Closes-Bug: #1635467 ** 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/1635467 Title: _emit_versioned_exception_notification fails with AttributeError: 'NoneType' object has no attribute '__name__' Status in OpenStack Compute (nova): Fix Released Bug description: Seen here: http://logs.openstack.org/99/389399/1/check/gate-tempest-dsvm-full- devstack-plugin-ceph-ubuntu- xenial/9ef7a1b/logs/screen-n-cpu.txt.gz?level=TRACE#_2016-10-21_00_55_46_872 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server [req-a08665db-81d9-4114-9523-d7bf54576c3c tempest-ServerRescueNegativeTestJSON-1537801177 tempest-ServerRescueNegativeTestJSON-1537801177] Exception during message handling 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server Traceback (most recent call last): 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 155, in _process_incoming 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message) 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 225, in dispatch 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args) 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 195, in _do_dispatch 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args) 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server File "/opt/stack/new/nova/nova/exception_wrapper.py", line 75, in wrapped 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server function_name, call_dict, binary) 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server File "/opt/stack/new/nova/nova/exception_wrapper.py", line 32, in _emit_exception_notification 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server _emit_versioned_exception_notification(context, ex, binary) 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server File "/opt/stack/new/nova/nova/exception_wrapper.py", line 36, in _emit_versioned_exception_notification 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server versioned_exception_payload = exception.ExceptionPayload.from_exception(ex) 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server File "/opt/stack/new/nova/nova/notifications/objects/exception.py", line 40, in from_exception 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server module_name=inspect.getmodule(trace[0]).__name__, 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server AttributeError: 'NoneType' object has no attribute '__name__' 2016-10-21 00:55:46.872 27346 ERROR oslo_messaging.rpc.server To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1635467/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

