Piston: Access using the CLI

From Define Wiki
Revision as of 21:35, 2 March 2015 by David (talk | contribs) (Created page with "== Using Ubuntu 14.04 == * This was based on the ubuntu cloud 14.04 image within the piston openstack tutorail (fairly minimal setup) * Setup virtualenv to setup an isolated p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Using Ubuntu 14.04

  • This was based on the ubuntu cloud 14.04 image within the piston openstack tutorail (fairly minimal setup)
  • Setup virtualenv to setup an isolated python environment
sudo apt-get install python-dev
sudo apt-get install python-virtualenv
sudo apt-get install libffi-dev
sudo apt-get install libssl-dev
  • Setup the virtual env and install all the openstack client modules
ubuntu@ubuntu-1404-dp:~$ virtualenv piston-openstack
New python executable in piston-openstack/bin/python
Installing setuptools, pip...done.
ubuntu@ubuntu-1404-dp:~$ source piston-openstack/bin/activate
(piston-openstack)ubuntu@ubuntu-1404-dp:~$ pip install python-cinderclient python-glanceclient python-keystoneclient python-neutronclient python-novaclient python-swiftclient cobalt-python-novaclient-ext

# Verify with: 
pip freeze
  • Do the following to download the RC file for your project:
  1. Log in to the dashboard as described in Logging in to the Dashboard.
  2. Select Admin > Project from the menu bar.
  3. Click Access & Security.
  4. Click Download OpenStack RC File.
  5. Move the downloaded file to your home directory.
  6. In a terminal window, change directory to the location where you moved the RC file.
  7. Execute the following command to source the RC file:
source projectname-openrc-region.sh