Piston: Access using the CLI
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:
- Log in to the dashboard as described in Logging in to the Dashboard.
- Select Admin > Project from the menu bar.
- Click Access & Security.
- Click Download OpenStack RC File.
- Move the downloaded file to your home directory.
- In a terminal window, change directory to the location where you moved the RC file.
- Execute the following command to source the RC file:
source projectname-openrc-region.sh