Failed to show user

Bug #1533016 reported by lvdongbing
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bilean
Fix Released
High
lvdongbing

Bug Description

Failed to show user with following logs:
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/bilean/bilean/common/context.py", line 296, in wrapped
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher return func(self, ctx, *args, **kwargs)
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/bilean/bilean/engine/service.py", line 141, in user_get
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher user = user_mod.User.load(cnxt, user_id=user_id, realtime=True)
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/bilean/bilean/engine/user.py", line 121, in load
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher tenant_safe=tenant_safe)
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/bilean/bilean/db/api.py", line 47, in user_get
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher tenant_safe=tenant_safe)
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/bilean/bilean/db/sqlalchemy/api.py", line 126, in user_get
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher if tenant_safe and context.tenant_id != user.user_id:
2016-01-11 20:33:29.071 TRACE oslo_messaging.rpc.dispatcher AttributeError: 'User' object has no attribute 'user_id'

lvdongbing (dbcocle)
Changed in bilean:
assignee: nobody → lvdongbing (dbcocle)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to bilean (master)

Fix proposed to branch: master
Review: https://review.openstack.org/266739

Changed in bilean:
status: New → In Progress
Liyingjun (liyingjun)
Changed in bilean:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to bilean (master)

Reviewed: https://review.openstack.org/266739
Committed: https://git.openstack.org/cgit/openstack/bilean/commit/?id=27d09b9acbc12497a845981ddfdb9af1fd15fc8a
Submitter: Jenkins
Branch: master

commit 27d09b9acbc12497a845981ddfdb9af1fd15fc8a
Author: lvdongbing <email address hidden>
Date: Mon Jan 11 20:41:54 2016 -0500

    Fix the issue when trying to show user.

    Fix the issue when trying to show user and enable admin to show
    any users.

    Change-Id: I0f009ef88e8c2349406a53bf04804d3604053346
    Closes-Bug: #1533016

Changed in bilean:
status: In Progress → Fix Released
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.