openstack cmd options not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Frank Miller |
Bug Description
Brief Description
-----------------
run opentsack cmd with requested option, but not working
Severity
--------
Critical
Steps to Reproduce
------------------
login to system
run openstack cmd with necessary option
TC-name:
Expected Behavior
------------------
cmd runs out without error
Actual Behavior
----------------
cmd failed by
The request you have made requires authentication. (HTTP 401)
Reproducibility
---------------
Reproducible
System Configuration
-------
One node system
Lab-name: SM-2
Branch/Pull Time/Commit
-------
stx master as of 20190616T233000Z
Last Pass
---------
20190612T013000Z
Timestamp/Logs
--------------
openstack --os-username 'tenant1' --os-password 'Li69nux*' --os-project-name tenant1 --os-auth-url http://
[2019-06-17 08:54:52,343] 387 DEBUG MainThread ssh.expect :: Output:
The request you have made requires authentication. (HTTP 401) (Request-ID: req-6276c797-
controller-0:~$ cat ./openrc.tenant1
unset OS_SERVICE_TOKEN
export OS_ENDPOINT_
export CINDER_
export OS_USERNAME=tenant1
export OS_PASSWORD=
export OS_AUTH_
export OS_AUTH_URL=http://
export OS_PROJECT_
export OS_USER_
export OS_PROJECT_
export OS_IDENTITY_
export OS_REGION_
export OS_INTERFACE=
if [ ! -z "${OS_PASSWORD}" ]; then
export PS1='[\u@\h \W(keystone_
else
echo 'Openstack Admin credentials can only be loaded from the active controller.'
export PS1='\h:\w\$ '
fi
Test Activity
-------------
Sanity
tags: | added: stx.retestneeded |
Changed in starlingx: | |
importance: | Undecided → High |
tags: | added: stx.sanity |
tags: | added: stx.2.0 |
tags: | removed: stx.retestneeded |
Note that this issue is only present when tenant auth info are provided via cmdline options as opposed to env variable, this is also not seen when admin auth info are provided in cmd.
i.e.,
# Source works:
source ~/openrc.tenant1; openstack image list
# admin via cmdline works: keystone. openstack. svc.cluster. local/v3 --os-user- domain- name Default --os-project- domain- name Default --os-identity- api-version 3 --os-interface internal --os-region-name RegionOne image list
openstack --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://
# tenant via cmdline does not work: keystone. openstack. svc.cluster. local/v3 --os-user- domain- name Default --os-project- domain- name Default --os-identity- api-version 3 --os-interface internal --os-region-name RegionOne image list
openstack --os-username 'tenant1' --os-password 'Li69nux*' --os-project-name tenant1 --os-auth-url http://