Install the Openstack command-line clients安装OpenStack命令行客户端 To install the clients, install the prerequisite software and the Python package for each OpenStack client. 在安装客户端之前,先必须安装必要的软件和Python软件包。 | Note |
---|
If you already installed the OpenStack client packages by using the package management tools provided by your distribution, proceed to the section called “OpenStack RC file”. 注:如果你已从发行的包管理工具中安装了OpenStack客户端软件包,则可以直接跳到“OpenStack RC 文件”章节。 |
Install the prerequisite software 安装依赖的软件To install prerequisite software Use pip to install the OpenStack clients on a Mac OS X or Linux system. It is easy and ensures that you get the latest version of the client from the Python Package Index. Also, pip lets you update or remove a package. After you install the clients, you must source an openrc file to set required environment variables before you can request OpenStack services through the clients or the APIs. 我们使用pip在Mac OS X或者Linux平台上安装OpenStack客户端。 从Python Package Index站点可以很容易找到最新的这些客户端版本。pip也可以用于更新或删除这些软件包。 当安装完这些客户端后,需要执行 source openrc file使环境变量生效,以便于通过这些客户端访问OpenStack服务的API。To install the clients 安装这些客户端的步骤如下: You must install each client separately. Run the following command to install or update a client package: 首先,你必须分开安装每个客户端。运行下面的指令来安装或更新客户端软件包: $ sudo pip install [--update] python-<project>client Where <project> is the project name and has one of the following values: 上述命令中,<project>处填写的项目名称是下面列表中的任一个: nova . Compute API and extensions. (计算服务和扩展)
neutron . Networking API. (网络API)
keystone . Identity Service API. (身份识别API)
glance . Image Service API. (镜像服务API)
swift . Object Storage API. (对像存储API)
cinder . Block Storage Service API. (块存储服务API)
heat . Orchestration API. (这个东东,如何翻译???)
For example, to install the nova client, run the following command: 比如,要安装nova客户端,则运行下面的命令: $ sudo pip install python-novaclient To update the nova client, run the following command: 要更新nova客户端,则运行下面的命令: $ sudo pip install --upgrade python-novaclient To remove the nova client, run the following command: 要删除nova客户端,则运行下面的命令: $ sudo pip uninstall python-novaclient Before you can issue client commands, you must download and source the openrc file to set environment variables. Proceed to the section called “OpenStack RC file”. 在你使用这些客户端指令前,必须先下载并执行source the openrc 文件,使环境变量生效。
|