Ask Your Question

Keystone Commands don't work !

asked 2016-01-12 09:30:49 -0500

Afnan gravatar image


I faced this problem every time I tried one of the keystone commands !

/usr/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]

and the command didn't work !

Also, I have another question : how can I get the IP and the port of any service? like keystone port and IP?

Thank you,

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2016-01-12 10:04:36 -0500


you have an auth problem, most of the message is not an error, is a deprecation warning for keystone cli. Depends of your distribution you have have a file with the credentials, something like keystonerc_admin, openrc, adminrc or something similar.

If you find the file, source it and execute the command again:

e.g on RDO OpenStack

source keystonerc_admin


edit flag offensive delete link more

answered 2016-01-12 13:45:39 -0500

Sandeep gravatar image

if you used RDO you can find keystonerc_admin under /root ,just source it as eduardo told and re-execute keystone service command. if you are using devstack prepare a file and add all required variable and execute it.

edit flag offensive delete link more


for IP and port if you check /etc/nova/nova.conf you can see all IP and port for each module.

Sandeep gravatar imageSandeep ( 2016-01-12 13:48:14 -0500 )edit

answered 2016-01-13 02:15:11 -0500

Herr-Herner gravatar image

The Keystone CLI is deprecated. We are using Liberty on Ubuntu 14.04 and I only get the Keystone CLI working with the v2.0 API. Using Keystone's v3 endpoint results in:

Authorization Failed: The resource could not be found. (HTTP 404)

Use this endpoint and give it a try:

export OS_AUTH_URL=http://controller:35357/v2.0
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-01-12 09:30:49 -0500

Seen: 1,225 times

Last updated: Jan 13 '16