macOS上的OpenStack命令行客户端 - keystone:找不到命令

时间:2016-07-15 14:16:45

标签: macos python-2.7 pip openstack keystone

我在Mac 10.11.5上关注Install the OpenStack command-line clients

  

在Linux,Mac OS X或Microsoft Windows上安装客户端   系统,使用点子。它易于使用,确保您获得最新信息   来自Python Package Index的客户端版本,并允许您   稍后更新或删除软件包。

我希望使用user-password-update

更改密码

安装keystone后,找不到命令。如何调用keystone?

$ keystone
-bash: keystone: command not found

详细介绍了我的工作以及系统的外观

$ pip install python-keystoneclient
(..)
Successfully installed Babel-2.3.4 debtcollector-1.6.0 funcsigs-1.0.2 iso8601-0.1.11 keystoneauth1-2.9.0 monotonic-1.1 msgpack-python-0.4.7 netaddr-0.7.18 netifaces-0.10.4 oslo.config-3.13.0 oslo.i18n-3.8.0 oslo.serialization-2.11.0 oslo.utils-3.16.0 pbr-1.10.0 positional-1.1.1 pyparsing-2.1.5 python-keystoneclient-3.2.0 pytz-2016.6.1 requests-2.10.0 rfc3986-0.3.1 six-1.10.0 stevedore-1.16.0 wrapt-1.10.8

$ pip show -f python-keystoneclient
---
Metadata-Version: 2.0
Name: python-keystoneclient
Version: 3.2.0
Summary: Client Library for OpenStack Identity
Home-page: http://docs.openstack.org/developer/python-keystoneclient
Author: OpenStack
Author-email: openstack-dev@lists.openstack.org
Installer: pip
License: UNKNOWN
Location: /usr/local/lib/python2.7/site-packages
Requires: oslo.i18n, oslo.utils, six, requests, oslo.serialization, positional, keystoneauth1, debtcollector, oslo.config, pbr, stevedore
Classifiers:
  Environment :: OpenStack
  Intended Audience :: Information Technology
  Intended Audience :: System Administrators
  License :: OSI Approved :: Apache Software License
  Operating System :: POSIX :: Linux
  Programming Language :: Python
  Programming Language :: Python :: 2
  Programming Language :: Python :: 2.7
  Programming Language :: Python :: 3
  Programming Language :: Python :: 3.4
Files:
  keystoneclient/__init__.py
  (...)
  python_keystoneclient-3.2.0.dist-info/pbr.json
  python_keystoneclient-3.2.0.dist-info/top_level.txt
Entry-points:
  [keystoneclient.auth.plugin]
  admin_token = keystoneclient.auth.token_endpoint:Token
  password = keystoneclient.auth.identity.generic:Password
  token = keystoneclient.auth.identity.generic:Token
  v2password = keystoneclient.auth.identity.v2:Password
  v2token = keystoneclient.auth.identity.v2:Token
  v3oidcpassword = keystoneclient.contrib.auth.v3.oidc:OidcPassword
  v3password = keystoneclient.auth.identity.v3:Password
  v3scopedsaml = keystoneclient.contrib.auth.v3.saml2:Saml2ScopedToken
  v3token = keystoneclient.auth.identity.v3:Token
  v3unscopedadfs = keystoneclient.contrib.auth.v3.saml2:ADFSUnscopedToken
  v3unscopedsaml = keystoneclient.contrib.auth.v3.saml2:Saml2UnscopedToken
$ echo $PYTHONPATH 
/usr/local/lib/python2.7/site-packages/

PYTHONPATH也定了。如何在路径中获取Python模块,在终端上执行命令?

1 个答案:

答案 0 :(得分:3)

Python-keystone client已被弃用,我怀疑是问题:如果您将其安装在新系统上,则可执行文件不存在。您应该安装openstack-client。

# pip install python-openstackclient