Ask Your Question
0

Keystone Commands don't work !

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

Afnan gravatar image

Dears,

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

/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: 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
0

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
0

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

Comments

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
0

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

Hi,

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

Regards

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

Stats

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

Seen: 687 times

Last updated: Jan 13 '16