Keystone fail to get token

Asked by luyingxi

Using devstack with the latest code from github.com to begin using Cinder.
I met the following problems:
2015-03-06 09:28:50.507 | + echo 'Waiting for g-api (127.0.0.1:9292) to start...'
2015-03-06 09:28:50.507 | Waiting for g-api (127.0.0.1:9292) to start...
2015-03-06 09:28:50.507 | + wait_for_service 60 http://127.0.0.1:9292
2015-03-06 09:28:50.507 | + local timeout=60
2015-03-06 09:28:50.507 | + local url=http://127.0.0.1:9292
2015-03-06 09:28:50.507 | + timeout 60 sh -c 'while ! curl -g -k --noproxy '\''*'\'' -s http://127.0.0.1:9292 >/dev/null; do sleep 1; done'
2015-03-06 09:28:54.046 | + is_service_enabled g-reg
2015-03-06 09:28:54.069 | + return 0
2015-03-06 09:28:54.080 | ++ keystone token-get
2015-03-06 09:28:54.084 | ++ grep ' id '
2015-03-06 09:28:54.088 | ++ get_field 2
2015-03-06 09:28:54.090 | ++ local data field
2015-03-06 09:28:54.090 | ++ read data
2015-03-06 09:28:57.299 | Could not find user: admin (Disable debug mode to suppress these details.) (HTTP 401)
2015-03-06 09:28:57.356 | + TOKEN=
2015-03-06 09:28:57.356 | + die_if_not_set 1146 TOKEN 'Keystone fail to get token'
2015-03-06 09:28:57.356 | + local exitcode=0
2015-03-06 09:28:57.378 | [Call Trace]
2015-03-06 09:28:57.378 | ./stack.sh:1146:die_if_not_set
2015-03-06 09:28:57.378 | /opt/devstack/functions-common:308:die
2015-03-06 09:28:57.400 | [ERROR] /opt/devstack/functions-common:1146 Keystone fail to get token
2015-03-06 09:28:58.420 | Error on exit

How to solve the error?

Question information

Language:
English Edit question
Status:
Solved
For:
devstack Edit question
Assignee:
No assignee Edit question
Solved by:
luyingxi
Solved:
Last query:
Last reply:
Revision history for this message
luyingxi (luyingxi) said :
#1

Perform the following steps to solve the problem:
1、Switch to root
2、Delete the name folder for "stack"
3、cd ……/devstack/tools
    ./create-stack-user.sh
4、chmod 777 devstack
     sudo chown -R stack:stack /opt/devstack
5、su stack
     ./stack.sh