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.
    [code lang=”bash”]apt-get -y update[/code]
  2. Install GNU compiler library (GCC), Python, and the dependent libraries.
    [code lang=”bash”]apt-get -y install gcc libffi-dev libssl-dev python python-dev python-virtualenv virtualenvwrapper[/code]

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.
    [code lang=”bash”]source /usr/share/virtualenvwrapper/virtualenvwrapper.sh[/code]
  2. Create a virtual environment.
    [code lang=”bash”]mkvirtualenv os_cli[/code]
  3. Upgrade pip to the latest version.
    [code lang=”bash”]pip install pip –upgrade[/code]
  4. Run following command to set up OpenStack CLI.
    [code lang=”bash”]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[/code]

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]

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

State of Kubernetes FinOps Survey – Win 13 prizes including a MacBook Air.Start Now
+