Authentication failed when sourcing openrc with new tenant name ,user name,password

Bug #1635198 reported by zhangyanxian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

Bug info:
root@localhost:/opt/devstack#
root@localhost:/opt/devstack# source openrc zyx project_zyx
WARNING: setting legacy OS_TENANT_NAME to support cli tools.
root@localhost:/opt/devstack# nova list --all-t
ERROR (Unauthorized): The request you have made requires authentication. (HTTP 401) (Request-ID: req-50048d4d-38af-4c5a-a16e-aa254b724d94)
root@localhost:/opt/devstack#

the OS_PASSWORD is still ADMIN_PASSWORD not user's password
So it's need to add an extra argument for password

we can set default OS_PASSWORD to OS_PASSWORD if set to avoid change the fixed api~

The bug is fixed as follow:
root@localhost:/opt/devstack# source openrc zyx project_zyx zyx
WARNING: setting legacy OS_TENANT_NAME to support cli tools.
root@localhost:/opt/devstack# nova list
+--------------------------------------+------+--------+------------+-------------+--------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+--------------------------------------+
| fa8330e8-b4a1-45cc-8602-3859cf29488b | vm-1 | ACTIVE | - | Running | private-zyx=10.20.20.11, 172.24.4.12 |
| 7d32b053-554c-4f40-8765-8736a000ccb4 | vm-2 | ACTIVE | - | Running | private-zyx=10.20.20.3, 172.24.4.13 |
+--------------------------------------+------+--------+------------+-------------+--------------------------------------+
root@localhost:/opt/devstack#

root@localhost:/opt/devstack# source openrc admin admin
WARNING: setting legacy OS_TENANT_NAME to support cli tools.
root@localhost:/opt/devstack# nova list --all-t
+--------------------------------------+------+----------------------------------+--------+------------+-------------+--------------------------------------+
| ID | Name | Tenant ID | Status | Task State | Power State | Networks |
+--------------------------------------+------+----------------------------------+--------+------------+-------------+--------------------------------------+
| fa8330e8-b4a1-45cc-8602-3859cf29488b | vm-1 | f3e753137bc9488284361d14f8d9fe16 | ACTIVE | - | Running | private-zyx=10.20.20.11, 172.24.4.12 |
| 7d32b053-554c-4f40-8765-8736a000ccb4 | vm-2 | f3e753137bc9488284361d14f8d9fe16 | ACTIVE | - | Running | private-zyx=10.20.20.3, 172.24.4.13 |
+--------------------------------------+------+----------------------------------+--------+------------+-------------+--------------------------------------+

Changed in devstack:
assignee: nobody → zhangyanxian (zhang-yanxian)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

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

Changed in devstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on devstack (master)

Change abandoned by zhangyanxian (zhangyanxianmail@163.com) on branch: master
Review: https://review.openstack.org/389472

description: updated
Revision history for this message
Sean Dague (sdague) wrote :

No open reviews found in this bug, unassigning. Please add a comment with active reviews before assigning an individual, or tag the bug in the gerrit review, which will do that automatically. We try not to assign bugs without patches as that discourages other folks from looking into bugs.

Changed in devstack:
assignee: zhangyanxian (zhang-yanxian) → nobody
status: In Progress → New
Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

IIUC Devstack expects the same password being used for both admin and demo user. If you want to test a more complex environment, you will probably need to write your own script to setup the environment accordingly.

Changed in devstack:
status: New → Invalid
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.