Talk:OpenStack: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
CERN docs on OpenStack, might be helpful [https://clouddocs.web.cern.ch/clouddocs/ https://clouddocs.web.cern.ch/clouddocs/] | CERN docs on OpenStack, might be helpful [https://clouddocs.web.cern.ch/clouddocs/ https://clouddocs.web.cern.ch/clouddocs/] | ||
==New combined CLI tool | ==New combined OpenStack CLI tool== | ||
===Installation=== | |||
{{command|sudo apt-get install python-dev python-pip}} | {{command|sudo apt-get install python-dev python-pip}} | ||
{{command|pip install python-openstackclient}} | {{command|pip install python-openstackclient}} | ||
Line 9: | Line 10: | ||
which installs to ~/.local/lib/pythonX.Y/site-packages/ so by adding <code>export PYTHONPATH=${HOME}/.local/lib/python2.7/site-packages/:${PYTHONPATH}</code> to your <code>.bashrc</code> file if you are using Python major version X=2, and minor version Y=7. | which installs to ~/.local/lib/pythonX.Y/site-packages/ so by adding <code>export PYTHONPATH=${HOME}/.local/lib/python2.7/site-packages/:${PYTHONPATH}</code> to your <code>.bashrc</code> file if you are using Python major version X=2, and minor version Y=7. | ||
===Executing commands=== | |||
{{Command|openstack}} | The new CLI tool can be used interactively by running | ||
{{Command|openstack}} | |||
and then issuing commands at the prompt. Alternatively the commands can be issued as one-offs by a preceding the command with <code>openstack</code> for example | |||
{{Command|openstack server list}} | |||
When running in interactive mode a list of available commands by typing <code>help</code> 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 {{Command| openstack server}} {{Command| openstack volume}} {{Command| openstack container}} {{Command| openstack object}} {{Command| openstack network}} {{Command| openstack security}} {{Command| openstack image}} |
Revision as of 21:14, 5 April 2016
CERN docs on OpenStack, might be helpful https://clouddocs.web.cern.ch/clouddocs/
New combined OpenStack CLI tool
Installation
[name@server ~]$ sudo apt-get install python-dev python-pip
[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:
[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
[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
[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
[name@server ~]$ openstack server
[name@server ~]$ openstack volume
[name@server ~]$ openstack container
[name@server ~]$ openstack object
[name@server ~]$ openstack network
[name@server ~]$ openstack security
[name@server ~]$ openstack image