stack.sh fails on keystone command needs unset SERVICE_TOKEN & SERVICE_PASSWORD

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

Bug Description

when running stack.sh, it always fails on me at:

TOKEN=$(keystone --os_tenant_name $ADMIN_TENANT --os_username $ADMIN_USER --os_password $ADMIN_PASSWORD --os_auth_url http://$HOST_IP:5000/v2.0 token-get | grep ' id ' | get_field 2)

Unless I unset SERVICE_TOKEN SERVICE_PASSWORD just prior.

Revision history for this message
John Tran (jtran) wrote :

Here is my localrc:

devstack$ cat localrc
export ADMIN_PASSWORD=none
export MYSQL_PASSWORD=none
export RABBIT_PASSWORD=none
export HOST_IP=127.0.0.1
export SCREEN_LOGDIR=/opt/stack/logs
#export FLOATING_RANGE=192.168.2.224/27
#export FIXED_RANGE=10.0.0.0/24
#export FIXED_NETWORK_SIZE=256
#export FLAT_INTERFACE=eth0
export SERVICE_TOKEN=servtoken
export SERVICE_PASSWORD=none
export ENABLED_SERVICES=${ENABLED_SERVICES},tempest

Revision history for this message
John Tran (jtran) wrote :

The following lines are the symptom unless unset the aforementioned vars.

5349 Expecting an endpoint provided via either --endpoint or env[SERVICE_ENDPOINT]
5350 + TOKEN=

Revision history for this message
Vincent Untz (vuntz) wrote :

Hrm, that's because you used "export FOO=bar" in localrc, instead of "FOO=bar". Can you try changing your localrc accordingly?

For the record, what you see is known behavior of the keystone command line tool: https://bugs.launchpad.net/keystone/+bug/962600/comments/3

Changed in devstack:
status: New → Incomplete
Revision history for this message
John Tran (jtran) wrote :

That was it! Thanks for looking into it.

Dean Troyer (dtroyer)
Changed in devstack:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.