OpenStack Technical Articles

DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient

Issue: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.

Description:

After openstack deployment added keystone endpoints manually .But if i type keystone endpoint-list endpoints are not showing and output the following error,/usr/lib/python2.7/dist-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.  ‘python-keystoneclient.’, DeprecationWarning)

For a Python library, continue using python-keystoneclient

Solution:

For deprecation keystone endpoints issue there are several issue involved here,

1. check export OS_AUTH_URL in openrc file which is located in few locations,

/root/openrc
/home/fuel/openrc
/var/lib/fuel/openrc
export OS_AUTH_URL=’http://keystone.fuel.local:5000/v2.0′

export OS_AUTH_URL should be internal_hostname of keystone that is example below,

export OS_AUTH_URL=’http://identity.miranties.openstack.com:35357/v2.0′

2. Check the hosts entries in controller nodes i.e /etc/hosts

internal_hostname entry should be exist with it’s associated ip example,

10.0.10.130 identity.miranties.openstack.com

3. Login to the identity node(Keystone node) if the identity node exist in controller node login to the controller only,

Update the admin endpoint in the following file,  /etc/keystone/keystone.conf

admin_endpoint = http://identity.miranties.openstack.com:35357

Tags:endpoints,keystone,openstack,cloud endpoints,endpoints list,openstack endpoint list,controller,identity nodes

About the author

admin

Add Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.