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.
- Update the list of available packages.
apt-get -y update
- 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.
- Load virtualenv variables.
- Create a virtual environment.
- Upgrade pip to the latest version.
pip install pip --upgrade
- 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.
Note: When the instance storage is not shared between the source host and the destination host, block migration must be used. This type of migration can be slower, since it copies data and requires that both hosts have compatible CPU architectures. If you want to perform a block migration, use a python-openstackclient release version higher than python-openstackclient release version 3.2.1. Use the following command to upgrade the release version of your python-openstackclient to the newton-eol version.
[bash]pip install –upgrade git+https://github.com/openstack/python-openstackclient.git@newton-eol[/bash]