Ask Your Question

Keystone Deprecationwarning

asked 2016-01-21 04:59:50 -0500

pragya87 gravatar image

I am following this instruction - and I have made it untill this point where I set the token and endpoint export OS_SERVICE_TOKEN= <my previously="" randomly="" genereted="" token="" set="" in="" the="" keystone.conf=""> export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0 And when I enter the command:

keystone tenant-create --name admin --description "Admin Tenant" Getting following error :-

home/keystone//.local/lib/python2.7/dist-packages/keystoneclient/ DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient 'python-keystoneclient' DeprecationWarning

Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]

I am using Ubuntu 15.10 .

I am not able to priceed further. Need urgent help on this. 1) I have tried keystone --debug tenant-create --name admin --description "Admin Tenant" This doesnt work as well. 2) I have done apt-get upgrade. Still it doesnt work 3)I have followed this link-

The PID keeps on changing .Many times i edited the file -/etc/keystone/keystone.conf but still i see the same error.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-01-27 08:46:27 -0500

jckreddy gravatar image

Initially you need to set OS_URL variable try with below mentioned command export OS_URL=http://${HOSTNAME}:35357/v2.0

Once these keystone service created we will return token and os_rul Unset the temporary OS_TOKEN and OS_URL environment variables unset OS_TOKEN OS_URL then migrate to v3 i..e. OS_AUTH_URL "export OS_AUTH_URL=http://${HOSTNAME}:35357/v3"

Note : (token_auth) uses V2 (OS_URL) and (admin/demo) uses V3 (OS_AUTH_URL)

edit flag offensive delete link more


This command doesnt help .This is how i tried export OS_URL=http://${HOSTNAME}:35357/v2.0 export OS_AUTH_URL=http://${HOSTNAME}:35357/v3

agian when i tried the below command : sudo keystone tenant-create --name admin --description "Admin Tenant" Getting the same error as pointed above .No changes

pragya87 gravatar imagepragya87 ( 2016-01-27 23:17:06 -0500 )edit

answered 2016-01-29 01:04:31 -0500

pragya87 gravatar image

Also i tried the openstack command from the following link :- (

When i give this command : openstack service create \ --name keystone --description "OpenStack Identity" identity

Error is seen :- Traceback (most recent call last): File "/usr/bin/openstack",line 5, in <module> import requestexceptions ImportError: No Module name requestexceptions

When i opened the file vim /usr/bin/openstack i cannot see anything with name requestexceptions .. Let me know where to add this or import this.. is this a library ??

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

1 follower


Asked: 2016-01-21 04:59:50 -0500

Seen: 989 times

Last updated: Jan 29 '16