← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1420688] Re: keystone notification context is empty

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1420688

Title:
  keystone notification context is empty

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  When keystone send notification, the context will be set as {}, this
  caused some problem when related component such as nova to deseralize
  the context

  2015-01-28 13:01:40.391 20150 ERROR oslo.messaging.notify.dispatcher [-] Exception during message handling
  2015-01-28 13:01:40.391 20150 TRACE oslo.messaging.notify.dispatcher Traceback (most recent call last):
  2015-01-28 13:01:40.391 20150 TRACE oslo.messaging.notify.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/notify/dispatcher.py", line 87, in _dispatch_and_handle_error
  2015-01-28 13:01:40.391 20150 TRACE oslo.messaging.notify.dispatcher     return self._dispatch(incoming.ctxt, incoming.message)
  2015-01-28 13:01:40.391 20150 TRACE oslo.messaging.notify.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/notify/dispatcher.py", line 103, in _dispatch
  2015-01-28 13:01:40.391 20150 TRACE oslo.messaging.notify.dispatcher     ctxt = self.serializer.deserialize_context(ctxt)
  2015-01-28 13:01:40.391 20150 TRACE oslo.messaging.notify.dispatcher   File "/usr/lib/python2.7/site-packages/nova/rpc.py", line 117, in deserialize_context
  2015-01-28 13:01:40.391 20150 TRACE oslo.messaging.notify.dispatcher     return nova.context.RequestContext.from_dict(context)
  2015-01-28 13:01:40.391 20150 TRACE oslo.messaging.notify.dispatcher   File "/usr/lib/python2.7/site-packages/nova/context.py", line 179, in from_dict
  2015-01-28 13:01:40.391 20150 TRACE oslo.messaging.notify.dispatcher     return cls(**values)
  2015-01-28 13:01:40.391 20150 TRACE oslo.messaging.notify.dispatcher TypeError: __init__() takes at least 3 arguments (1 given)
  2015-01-28 13:01:40.391 20150 TRACE oslo.messaging.notify.dispatcher 

  We should at least set project_id and user_id to context.

  https://github.com/openstack/keystone/blob/master/keystone/notifications.py#L241

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1420688/+subscriptions


References