Talk:OpenStack

From Alliance Doc
Revision as of 21:14, 5 April 2016 by Cgeroux (talk | contribs)
Jump to navigation Jump to search

CERN docs on OpenStack, might be helpful https://clouddocs.web.cern.ch/clouddocs/

New combined OpenStack CLI tool

Installation

Question.png
[name@server ~]$ sudo apt-get install python-dev python-pip
Question.png
[name@server ~]$ pip install python-openstackclient

see [http://docs.openstack.org/cli-reference/common/cli_install_openstack_command_line_clients.html]

To install on a machine (ACENET specifically without admin privileges) use:

Question.png
[name@server ~]$  pip install --user python-openstackclient

which installs to ~/.local/lib/pythonX.Y/site-packages/ so by adding export PYTHONPATH=${HOME}/.local/lib/python2.7/site-packages/:${PYTHONPATH} to your .bashrc file if you are using Python major version X=2, and minor version Y=7.

Executing commands

The new CLI tool can be used interactively by running

Question.png
[name@server ~]$ openstack

and then issuing commands at the prompt. Alternatively the commands can be issued as one-offs by a preceding the command with openstack for example

Question.png
[name@server ~]$ openstack server list

When running in interactive mode a list of available commands by typing help at the openstack prompt. Note that many of these commands are available only to OpenStack administrators and will show some unuseful error message if a non-administrator tries using it.

server

volume

container

object

network

security

image

ip floating

Useful user accessible commands are

Question.png
[name@server ~]$  openstack server
Question.png
[name@server ~]$  openstack volume
Question.png
[name@server ~]$  openstack container
Question.png
[name@server ~]$  openstack object
Question.png
[name@server ~]$  openstack network
Question.png
[name@server ~]$  openstack security
Question.png
[name@server ~]$  openstack image