]>
Install the OpenStack command-line clients Install the prerequisite software and the Python package for each OpenStack client. For each command, replace PROJECT with the lower case name of the client to install, such as nova. Repeat for each client.
Prerequisite software
Prerequisite Description
Python 2.6 or later Currently, the clients do not support Python 3.
setuptools package Installed by default on Mac OS X. Many Linux distributions provide packages to make setuptools easy to install. Search your package manager for setuptools to find an installation package. If you cannot find one, download the setuptools package directly from http://pypi.python.org/pypi/setuptools.
pip package To install the clients on a Mac OS X or Linux system, use pip. It is easy to use, ensures that you get the latest version of the clients from the Python Package Index, and lets you update or remove the packages later on. Install pip through the package manager for your system: Mac OS X $ sudo easy_install pip Ubuntu 12.04 A packaged version enables you to use dpkg or aptitude to install the python-novaclient:# aptitude install python-novaclient Ubuntu # aptitude install python-pip RHEL, CentOS, or Fedora A packaged version available in RDO enables you to use yum to install the clients: # yum install python-PROJECTclient Alternatively, install pip and use it to manage client installation: # yum install python-pip openSUSE 12.2 and earlier A packaged version available in the Open Build Service enables you to use rpm or zypper to install the python-novaclient:# zypper install python-PROJECT Alternatively, install pip and use it to manage client installation: # zypper install python-pip openSUSE 12.3 and newer A packaged version enables you to use rpm or zypper to install the clients: # zypper install python-PROJECTclient
Install the clients 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. You must install each client separately. Run the following command to install or update a client package: $ sudo pip install [--upgrade] python-PROJECTclient Where PROJECT is the project name and has one of the following values: nova. Compute API and extensions. neutron. Networking API. keystone. Identity Service API. glance. Image Service API. swift. Object Storage API. cinder. Block Storage Service API. heat. Orchestration API. ceilometer. Monitoring/Metering API. For example, to install the nova client, run the following command: $ sudo pip install python-novaclient To update the nova client, run the following command: $ sudo pip install --upgrade python-novaclient To remove the nova client, run the following command: $ sudo pip uninstall python-novaclient Before you can issue client commands, you must download and source the openrc file to set environment variables. See .