KeyError: 'user_identity'

Bug #1283080 reported by Tong Li
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Balazs Gibizer

Bug Description

Using all default setting for setting up devstack. Once devstack is done, g-reg and g-api console will show same error like this.

KeyError: 'user_identity'

18c2599c92e1db002 with project_id : a068a8a689554202999265989f44f448 and roles: admin _build_user_headers /opt/stack/py
thon-keystoneclient/keystoneclient/middleware/auth_token.py:951
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 851, in emit
    msg = self.format(record)
  File "/opt/stack/glance/glance/openstack/common/log.py", line 684, 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 "/opt/stack/glance/glance/openstack/common/log.py", line 648, in format
    return logging.Formatter.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 467, in format
    s = self._fmt % record.__dict__
KeyError: 'user_identity'

Revision history for this message
Tong Li (litong01) wrote :

This may have been a problem in glanceclient.

Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

This is related to an Oslo change 997ab2776c9cad033234e28a92fb7bc0ef5bc4c0.

In Ceilometer the following update was needed to handle it properly https://review.openstack.org/#/c/65661/5/ceilometer/openstack/common/context.py

It seems this change is missing from Glance. See https://review.openstack.org/#/c/65661/5/ceilometer/openstack/common/context.py#L50

Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :
Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

I uploaded a patch that fixes the problem https://review.openstack.org/#/c/75435/

Changed in glance:
assignee: nobody → Balazs Gibizer (balazs-gibizer)
Changed in glance:
status: New → In Progress
Feilong Wang (flwang)
Changed in glance:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/75435
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=765b6c98e08577038d33c9a5d745bb75c6b9f06d
Submitter: Jenkins
Branch: master

commit 765b6c98e08577038d33c9a5d745bb75c6b9f06d
Author: Balazs Gibizer <email address hidden>
Date: Fri Feb 21 16:18:16 2014 +0100

    Fix logging context to include user_identity

    The user_identity generated created from user, tenant, domain
    user_domain and project_domain.
    The new domain related values are default to None

    Closes-Bug: #1283080

    Change-Id: I5e43142afba3492ecf05b65ba24ee70f158f88de

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → icehouse-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: icehouse-3 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.