Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

nvMuch Much of the power of OpenStack is in the suite of application program interfaces (APIs), allowing the same functionality of the dashboard with the advantage of automating the provisioning process with only a few commands. Using the API means that all the actions can be added to a script that can be called to automatically and repeatedly build instances. You can also create template-like scripts so that with only minor modification to instance name, image and volume size, it is possible to build other instances and volumes quickly and without the need for clicking through the dashboard.

...

Before the tools are installed, you will want an environment that can use Python, as all of the OpenStack command-line tools are written in that language. This can be your local desktop or it could be a virtual machine in the Rapid Access Cloud. The instructions outlined below will assume a Ubuntu 14.04 instance in the Rapid Access Cloud, a virtual machine running on your desktop or a native Ubuntu desktop.

From an Ubuntu 14.04 command-line:

  1. Install Python package management (pip) and required packages: 

    Code Block
    $ sudo apt-get install pythonpython3-pip pythonpython3-dev


  2. Install Openstack command-line tools using pip: 

    Code Block
    $ sudo pippip3 install python-openstackclient


...

  1. Ensure you have the Developer Tools (Xcode) with the Command Line Tools for macOS.

  2. Open the Terminal application.

  3. Install pip (a package management system for software packages written in python): 

    Code Block
     $ sudo easy_install pip xcode-select --install


  4. Open the Terminal application.

  5. Install the openstack command line tool: 

    Code Block
    $ pippip3 install --user python-openstackclient

    Note: We recommend installing this as a user to avoid running into issues with system updates.

  6. Add the following to .bashrc: 

    Code Block
    export PATH=/Users/<username>/Library/Python/23.78/bin:$PATH
    export PYTHONPATH=/Users/<username>/Library/Python/23.78/lib/python/site-packages



Openrc file

The ‘rc’ "rc" in rc file stands for any or all of the following:

...