Installing OpenStack CLI Client on Ubuntu 14.04 and Ubuntu 16.04

Before you install OpenStack CLI, you must install Python and the required compiler packages on Ubuntu.

Follow the steps given below to install Python and the required compiler packages.

  1. Update the list of available packages.
    apt-get -y update
  2. Install GNU compiler library (GCC), Python, and the dependent libraries.
    apt-get -y install gcc libffi-dev libssl-dev python python-dev python-virtualenv virtualenvwrapper

Install OpenStack CLI

Follow the steps given below to install OpenStack CLI on a Ubuntu 14.04 or Ubuntu 16.04 host.

  1. Load virtualenv variables.
    source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
  2. Create a virtual environment.
    mkvirtualenv os_cli
  3. Upgrade pip to the latest version.
    pip install pip --upgrade
  4. Run following command to set up OpenStack CLI.
    pip install --upgrade --requirement http://raw.githubusercontent.com/platform9/support-locker/master/openstack-clients/requirements.txt --constraint http://raw.githubusercontent.com/openstack/requirements/stable/newton/upper-constraints.txt

OpenStack CLI is successfully installed, and ready to be used on the Ubuntu host.

The browser you are using is outdated. For the best experience please download or update your browser to one of the following: