Versions Compared

Key

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

...

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 xcode-select --install
    $ sudo pip3 easy_install --upgrade pip


  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 .bashrczshrc: 

    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:

...

  1. Log-in to the Rapid Access Cloud dashboard at https://cloud.cybera.ca.

  2. In the left-hand panel under “Compute”, click “Access & Security”.

  3. Click the “API Access” tab at the top then click the “Download Openstack RC file v3” on the right.

  4. The file downloaded will be named after your account name, e.g. <email>@<domain>-openrc.sh. This can be renamed to openrc if you like, or you can copy it and modify it so you can have one for the Calgary region and one for the Edmonton region. The rc file downloaded will be keyed for the region you are signed into in the dashboard.

...

Code Block
#!/bin/bash
export OS_AUTH_URL=https://yegyyc.cloud.cybera.ca:5000/v3
export OS_PROJECT_NAME="<account_username>"
export OS_USERNAME="<account_username>"
export OS_USER_DOMAIN_NAME="Default"
export OS_REGION_NAME="Calgary"
export OS_INTERFACE=public
export OS_IDENTITY_API_VERSION=3
echo "Please enter your OpenStack Password for project $OS_PROJECT_NAME as user $OS_USERNAME: "
read -sr OS_PASSWORD_INPUT
export OS_PASSWORD=$OS_PASSWORD_INPUT

...