The keystone CLI is deprecated in favor of python-openstackclient

Asked by winne zhang

hello everyone , I have a problem when I install the keystone. After I execute the command :

      #apt-get install -y python-software-properties
      #add-apt reposotory cloud-archive:liberty
      #apt-get update
     #apt-get upgrade -y
     #apt-get dist-upgrade -y

then, I have install the ntp,rabbitmq,mysql and the keystone. And finish the configuration file of "keystone.conf"

and I am sure the keystone is running (the service status shows)
then , when I execute the follow command :

   # keystone user-list

there throws the following waring:

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

/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:145: DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
  'the 2.0.0 release.', DeprecationWarning)

/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:147: DeprecationWarning: Using the 'tenant_name' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_name' argument instead
  super(Client, self).__init__(**kwargs)

/usr/lib/python2.7/dist-packages/debtcollector/renames.py:43: DeprecationWarning: Using the 'tenant_id' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_id' argument instead
  return f(*args, **kwargs)

/usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py:376: DeprecationWarning: Constructing an HTTPClient instance without using a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
  'the 2.0.0 release.', DeprecationWarning)

And It can not create the tenant \user \role . I really don't know how to do it . would anybody tell me ? Thanks !!!

Question information

Language:
English Edit question
Status:
Answered
For:
Rally Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andrey Kurilin (andreykurilin) said :
#1

1) you should ask keystone related question at openstack-dev@<email address hidden> or at #keystone channel of FreeNode
2) you should try to use openstakclient. UI is a similar. `openstack project create` and `openstack user create` should help you

Revision history for this message
winne zhang (winne) said :
#2

@Andrey Kurilin Thanks for you suggetion! I will try it !

Can you help with this problem?

Provide an answer of your own, or ask winne zhang for more information if necessary.

To post a message you must log in.