Installing Python tools for Openstack

This procedure is to install the Openstack client on Linux. This requires Python 2.7.  We’ll also install and configure pip to download packages form PyPi

List of items

  • Install Python 2.7.14
  • Install Setup tools
  • Install Pip
  • Install pbr
  • Install Positional
  • Install pyton-openstackclient

Instructions

  • Install Python 2.7.14. Install from src
    • ./configure –prefix /usr/local;make; make install
  • Install Setup tools.  Install from src
    • pyton setup.py build;python setup.py install
  • Install Pip.  Install from src
    • python setup.py build; python setup.py install
    • To configure pip add the following to /root/.pip/pip.conf
      • [global]
        timeout=60
        index-url=https://<<address to pip or pip proxy>>
        trusted-host=<<fqdn_of_host>>
        [list]
        format=columns
  • Install pbr.  Install from pip
    • pip install pbr
  • Install Positional.  Install from src
    • python setup.py build; python setup.py install
  • Install pyton-openstackclient.  Install from pip
    • pip install python-openstackclient

Make sure that the time on your server is correct.  You might need to resync it to the ntp server.

Now you can test the openstack client.  Make sure that you source the appropriate profile to point to your Openstack cloud

# openstack –insecure server list