yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #70504
[Bug 1427665] Re: AttributeError: 'RequestContext' object has no attribute 'user_id'
** Changed in: oslo.log
Status: New => Invalid
--
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/1427665
Title:
AttributeError: 'RequestContext' object has no attribute 'user_id'
Status in OpenStack Compute (nova):
Invalid
Status in oslo.log:
Invalid
Bug description:
Example from:
http://logs.openstack.org/47/122347/16/check/check-tempest-dsvm-full/e958fa0/logs/screen-n-cpu.txt.gz
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/__init__.py", line 851, in emit
msg = self.format(record)
File "/usr/local/lib/python2.7/dist-packages/oslo_log/handlers.py", line 69, in format
return logging.StreamHandler.format(self, record)
File "/usr/lib/python2.7/logging/__init__.py", line 724, in format
return fmt.format(record)
File "/usr/local/lib/python2.7/dist-packages/oslo_log/formatters.py", line 178, in format
context = _update_record_with_context(record)
File "/usr/local/lib/python2.7/dist-packages/oslo_log/formatters.py", line 56, in _update_record_with_context
d = _dictify_context(context)
File "/usr/local/lib/python2.7/dist-packages/oslo_log/formatters.py", line 31, in _dictify_context
context = context.to_dict()
File "/opt/stack/new/nova/nova/context.py", line 157, in to_dict
values.update({'user_id': self.user_id,
AttributeError: 'RequestContext' object has no attribute 'user_id'
Logged from file context.py, line 97
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1427665/+subscriptions
References