Ask Your Question
0

perform the token command" openstack token issue” wrong

asked 2017-02-06 07:51:00 -0500

wangk66 gravatar image

updated 2017-02-07 11:09:49 -0500

rbowen gravatar image

Hello, when I install openstack( Miltake version) on Cenos 7 , I encounter a problem at the end of keystone installation. My install book is openstack offie version "http://docs.openstack.org/mitaka/zh_CN/install-guide-rdo/keystone-openrc.html" The command is issued " openstack token issue ” to obtain a token .the log recording as the following :

[root@controller ~]# tail -f /var/log/keystone/keystone.log 
2017-02-06 21:04:51.089 2162 WARNING keystone.assignment.core [-] Deprecated: Use of the identity driver config to automatically configure the same assignment driver has been deprecated, in the "O" release, the assignment driver will need to be expicitly configured if different than the default (SQL).
2017-02-06 21:04:52.100 2162 WARNING keystone.middleware.core [-] The admin_token_auth middleware presents a security risk and should be removed from the [pipeline:api_v3], [pipeline:admin_api], and [pipeline:public_api] sections of your paste ini file.
2017-02-06 21:04:52.277 2162 WARNING keystone.middleware.core [-] The admin_token_auth middleware presents a security risk and should be removed from the [pipeline:api_v3], [pipeline:admin_api], and [pipeline:public_api] sections of your paste ini file.
2017-02-06 21:04:52.600 2162 INFO keystone.common.wsgi [req-954aaa2b-7cba-41fb-92de-7f7f0e33723b - - - - -] GET http://controller:35357/v3/
2017-02-06 21:04:57.173 2161 WARNING keystone.assignment.core [-] Deprecated: Use of the identity driver config to automatically configure the same assignment driver has been deprecated, in the "O" release, the assignment driver will need to be expicitly configured if different than the default (SQL).
2017-02-06 21:04:57.812 2161 WARNING keystone.middleware.core [-] The admin_token_auth middleware presents a security risk and should be removed from the [pipeline:api_v3], [pipeline:admin_api], and [pipeline:public_api] sections of your paste ini file.
2017-02-06 21:04:57.971 2161 WARNING keystone.middleware.core [-] The admin_token_auth middleware presents a security risk and should be removed from the [pipeline:api_v3], [pipeline:admin_api], and [pipeline:public_api] sections of your paste ini file.
2017-02-06 21:04:58.288 2161 INFO keystone.common.wsgi [req-4d4c774f-7f39-4d66-9be3-ff7859556e11 - - - - -] POST http://controller:35357/v3/auth/tokens
2017-02-06 21:04:59.889 2161 WARNING keystone.common.wsgi [req-4d4c774f-7f39-4d66-9be3-ff7859556e11 - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.0.5.

Thanks for your warm help!

edit retag flag offensive close merge delete

Comments

It looks like you are not authenticating correctly. Typo in the openrc file?

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-06 08:19:51 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2017-02-28 13:48:20 -0500

Did you source the openrc file?, Ensure that OS_PASSWORD, OS_USERNAME etc variables are set in your environment, or give them explicitly when invoking openstack token issue

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2017-02-06 07:51:00 -0500

Seen: 798 times

Last updated: Feb 07 '17