2011-02-24 13:54:10 -04:00
|
|
|
The :program:`nova` shell utility
|
2015-09-17 16:05:33 +03:00
|
|
|
=================================
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2011-02-24 13:54:10 -04:00
|
|
|
.. program:: nova
|
2011-01-25 14:01:22 -06:00
|
|
|
.. highlight:: bash
|
|
|
|
|
2011-02-24 13:54:10 -04:00
|
|
|
The :program:`nova` shell utility interacts with OpenStack Nova API
|
2011-02-08 09:27:22 -04:00
|
|
|
from the command line. It supports the entirety of the OpenStack Nova API.
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2011-02-08 09:27:22 -04:00
|
|
|
First, you'll need an OpenStack Nova account and an API key. You get this
|
|
|
|
by using the `nova-manage` command in OpenStack Nova.
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2011-02-24 13:54:10 -04:00
|
|
|
You'll need to provide :program:`nova` with your OpenStack username and
|
2012-08-22 13:01:17 -05:00
|
|
|
API key. You can do this with the :option:`--os-username`, :option:`--os-password`
|
|
|
|
and :option:`--os-tenant-id` options, but it's easier to just set them as
|
2011-06-13 16:16:58 +04:00
|
|
|
environment variables by setting two environment variables:
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2012-03-13 22:30:52 -05:00
|
|
|
.. envvar:: OS_USERNAME
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2011-02-08 09:27:22 -04:00
|
|
|
Your OpenStack Nova username.
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2012-03-13 22:30:52 -05:00
|
|
|
.. envvar:: OS_PASSWORD
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2011-11-09 07:10:46 -08:00
|
|
|
Your password.
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2012-03-13 22:30:52 -05:00
|
|
|
.. envvar:: OS_TENANT_NAME
|
2011-06-13 16:16:58 +04:00
|
|
|
|
|
|
|
Project for work.
|
|
|
|
|
2012-03-13 22:30:52 -05:00
|
|
|
.. envvar:: OS_AUTH_URL
|
2011-02-26 05:04:40 -04:00
|
|
|
|
|
|
|
The OpenStack API server URL.
|
|
|
|
|
2012-04-12 14:16:31 -05:00
|
|
|
.. envvar:: OS_COMPUTE_API_VERSION
|
2011-08-07 14:00:23 -05:00
|
|
|
|
|
|
|
The OpenStack API version.
|
|
|
|
|
2011-01-25 14:01:22 -06:00
|
|
|
For example, in Bash you'd use::
|
|
|
|
|
2012-03-13 22:30:52 -05:00
|
|
|
export OS_USERNAME=yourname
|
|
|
|
export OS_PASSWORD=yadayadayada
|
|
|
|
export OS_TENANT_NAME=myproject
|
|
|
|
export OS_AUTH_URL=http://...
|
2015-02-03 02:32:58 +02:00
|
|
|
export OS_COMPUTE_API_VERSION=2
|
2011-01-25 14:01:22 -06:00
|
|
|
|
|
|
|
From there, all shell commands take the form::
|
|
|
|
|
2011-02-24 13:54:10 -04:00
|
|
|
nova <command> [arguments...]
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2011-02-24 13:54:10 -04:00
|
|
|
Run :program:`nova help` to get a full list of all possible commands,
|
|
|
|
and run :program:`nova help <command>` to get detailed help for that
|
2011-02-08 09:27:22 -04:00
|
|
|
command.
|