Zun

context.is_admin has wrong value in db/sqlalchemy/api.list_containers()

Bug #1670075 reported by HengHa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
Fix Released
High
HengHa

Bug Description

stack@LFG1000360946:~/zun/zun$ env|grep OS
OS_REGION_NAME=RegionOne
OS_PROJECT_NAME=admin
OS_IDENTITY_API_VERSION=2.0
OS_PASSWORD=Passw0rd
OS_AUTH_URL=http://10.251.63.84:5000/v2.0
OS_USERNAME=admin
OS_TENANT_NAME=admin
OS_VOLUME_API_VERSION=2
OS_NO_CACHE=1
LESSCLOSE=/usr/bin/lesspipe %s %s
stack@LFG1000360946:~/zun/zun$

when executing zun list, debuggging the value of context in db/sqlalchemy/api.list_containers() by pdb, context.is_admin is found to be false. This is not right.

HengHa (2001xxj)
Changed in zun:
assignee: nobody → HengHa (2001xxj)
Revision history for this message
hongbin (hongbin034) wrote :

Yes, the code was ported from Magnum and it looks Magnum has a similar bug: https://review.openstack.org/#/c/427507/

Changed in zun:
importance: Undecided → High
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zun (master)

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

Changed in zun:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zun (master)

Reviewed: https://review.openstack.org/444785
Committed: https://git.openstack.org/cgit/openstack/zun/commit/?id=f5f549890e161af3c13c6c1808e448a3b6a5cf0d
Submitter: Jenkins
Branch: master

commit f5f549890e161af3c13c6c1808e448a3b6a5cf0d
Author: xxj <email address hidden>
Date: Mon Mar 13 17:27:41 2017 +0800

    Fix: context.is_admin is always false

    Inspect the context is a is_admin or not when is_admin
    is not passed in during creating a RequestContext

    Change-Id: Ic2ead7c4a39d0bd57797257c78f2879a8b9e3033
    Closes-Bug: #1670075

Changed in zun:
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.