nova service cmd not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Critical
|
Stefan Dinescu |
Bug Description
Brief Description
-----------------
run nova service cmd but not working
Severity
--------
Critical
Steps to Reproduce
------------------
login to system
source to openrc
run nova service cmd
TC-name:
Expected Behavior
------------------
cmd runs out without error
Actual Behavior
----------------
cmd failed
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
--------------
controller-0:~$ source /etc/platform/
[wrsroot@
+----+-
| id | hostname | personality | administrative | operational | availability |
+----+-
| 1 | controller-0 | controller | unlocked | enabled | available |
+----+-
[wrsroot@
ERROR (CommandError): You must provide a user name/id (via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID]) or an auth token (via --os-token).
command terminated with exit code 1
[wrsroot@
[wrsroot@
ERROR (CommandError): You must provide a user name/id (via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID]) or an auth token (via --os-token).
command terminated with exit code 1
[wrsroot@
Mon Jun 17 15:23:50 UTC 2019
controller-0:~$ cat ~/openrc.admin
unset OS_SERVICE_TOKEN
export OS_ENDPOINT_
export CINDER_
export OS_USERNAME=admin
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 |
description: | updated |
Changed in starlingx: | |
importance: | Undecided → High |
tags: | added: stx.sanity |
tags: | added: stx.2.0 |
Changed in starlingx: | |
assignee: | Frank Miller (sensfan22) → Stefan Dinescu (stefandinescu) |
Changed in starlingx: | |
importance: | High → Critical |
This is the step to reproduce, where ~/openrc.admin contains auth info for admin user of containerized openstack:
# source to openrc and run cmd, error indicate auth info needed.
controller-0:~$ source ~/openrc.admin ; nova list
ERROR (CommandError): You must provide a user name/id (via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID]) or an auth token (via --os-token).
command terminated with exit code 1
## openrc file contains following:
unset OS_SERVICE_TOKEN
export OS_ENDPOINT_ TYPE=internalUR L ENDPOINT_ TYPE=internalUR L
export CINDER_
export OS_USERNAME=admin `TERM=linux /opt/platform/ .keyring/ 19.01/. CREDENTIAL 2>/dev/null` TYPE=password keystone. openstack. svc.cluster. local/v3
export OS_PASSWORD=
export OS_AUTH_
export OS_AUTH_URL=http://
export OS_PROJECT_ NAME=admin DOMAIN_ NAME=Default DOMAIN_ NAME=Default API_VERSION= 3 NAME=RegionOne internal
export OS_USER_
export OS_PROJECT_
export OS_IDENTITY_
export OS_REGION_
export OS_INTERFACE=
# run cmd with auth info provided via cmdline works though: keystone. openstack. svc.cluster. local/v3 --os-user- domain- name Default --os-project- domain- name Default --os-endpoint-type internalURL --os-region-name RegionOne list -----+- ------- +------ ------+ ------- ------+ ------- ---+ -----+- ------- +------ ------+ ------- ------+ ------- ---+ -----+- ------- +------ ------+ ------- ------+ ------- ---+
nova --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://
+----+-
| ID | Name | Status | Task State | Power State | Networks |
+----+-
+----+-