DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient

Asked by JohnsonYi

Openstack version: Fuel openstack 6.1
Rally version: 0.1.2

There is something DeprecationWarning when I issue command keystone user-list, msg as below:

root@rally:~# keystone user-list
/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)
/usr/local/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/local/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/local/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/local/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)
+----------------------------------+-----------------+---------+-----------------------+
| id | name | enabled | email |
+----------------------------------+-----------------+---------+-----------------------+
| 54a200e09ff04256a57bfa3b1a56426a | admin | True | admin@localhost |
| 3fdfd3548c4643bea5860209e77530b9 | ceilometer | True | ceilometer@localhost |
| 9fa6c5df4e7745d0bf0f4b5756fd8337 | cinder | True | cinder@localhost |
| eee0dbceb12741c68951f2d7799ccb76 | demo | True | <email address hidden> |
| c9f1da7f1b2244d7b112ebf96e7db067 | fuel_stats_user | True | |
| b5daa35fba4444e69ff4ce661905c4df | glance | True | glance@localhost |
| 66136d2eb9e64ffda92dac1b99259b78 | heat | True | heat@localhost |
| 9e83595e98d648cab52ed4689ae7bb9e | heat-cfn | True | heat-cfn@localhost |
| e98f55ca79144726b3bc9a84c8a266f5 | murano | True | murano@localhost |
| d7040a9951054bdbab7a69651a0d6a40 | neutron | True | neutron@localhost |
| d5d1784814aa46e7958c7f9ac2803c20 | nova | True | nova@localhost |
| 509f5b32c56a4b1c8a598c2cd9d4b14c | sahara | True | sahara-team@localhost | |
+----------------------------------+-----------------+---------+-----------------------+

Question information

Language:
English Edit question
Status:
Solved
For:
Rally Edit question
Assignee:
No assignee Edit question
Solved by:
JohnsonYi
Solved:
Last query:
Last reply:
Revision history for this message
mhg (marvinhg) said :
#1

Keyston CLI is deprecated.
Use CLI 'openstack user list' instead.

Revision history for this message
JohnsonYi (yichengli) said :
#2

@mhg Thanks. Problem solved.

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

@ JohnsonYi execuse me , but I have meet the same problem with you . I want to kenow how do you solve this question ? can you teach me ?

Revision history for this message
JohnsonYi (yichengli) said :
#4

@Winne, you can refer to mhg's comment, keystone CLI is deprecated, so use "openstack user list" instead.

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

@JohnsonYi yes ,I try it , but it dosen't work. there will be another error:

  # openstack user list

 openstack: command not found

that does't work!