2017-07-04 11:06:56 +01:00
|
|
|
===================================
|
|
|
|
The :program:`nova` Shell Utility
|
|
|
|
===================================
|
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
|
|
|
|
|
2017-07-04 11:06:56 +01:00
|
|
|
The :program:`nova` shell utility interacts with OpenStack Nova API from the
|
|
|
|
command line. It supports the entirety of the OpenStack Nova API.
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2017-10-16 17:53:34 +09:00
|
|
|
You'll need to provide :program:`nova` with your OpenStack Keystone user
|
|
|
|
information. You can do this with the `--os-username`, `--os-password`,
|
|
|
|
`--os-project-name` (`--os-project-id`), `--os-project-domain-name`
|
|
|
|
(`--os-project-domain-id`) and `--os-user-domain-name` (`--os-user-domain-id`)
|
|
|
|
options, but it's easier to just set them as environment variables by setting
|
|
|
|
some environment variables:
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2022-04-05 18:02:39 +01:00
|
|
|
.. deprecated:: 17.8.0
|
|
|
|
|
|
|
|
The ``nova`` CLI has been deprecated in favour of the unified
|
|
|
|
``openstack`` CLI. For information on using the ``openstack`` CLI, see
|
|
|
|
:python-openstackclient-doc:`OpenStackClient <>`.
|
|
|
|
|
2012-03-13 22:30:52 -05:00
|
|
|
.. envvar:: OS_USERNAME
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2017-10-16 17:53:34 +09:00
|
|
|
Your OpenStack Keystone user name.
|
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
|
|
|
|
2017-10-16 17:53:34 +09:00
|
|
|
.. envvar:: OS_PROJECT_NAME
|
|
|
|
|
|
|
|
The name of project for work.
|
|
|
|
|
|
|
|
.. envvar:: OS_PROJECT_ID
|
|
|
|
|
|
|
|
The ID of project for work.
|
|
|
|
|
|
|
|
.. envvar:: OS_PROJECT_DOMAIN_NAME
|
|
|
|
|
|
|
|
The name of domain containing the project.
|
|
|
|
|
|
|
|
.. envvar:: OS_PROJECT_DOMAIN_ID
|
|
|
|
|
|
|
|
The ID of domain containing the project.
|
|
|
|
|
|
|
|
.. envvar:: OS_USER_DOMAIN_NAME
|
|
|
|
|
|
|
|
The user's domain name.
|
|
|
|
|
|
|
|
.. envvar:: OS_USER_DOMAIN_ID
|
2011-06-13 16:16:58 +04:00
|
|
|
|
2017-10-16 17:53:34 +09:00
|
|
|
The user's domain ID.
|
2011-06-13 16:16:58 +04:00
|
|
|
|
2012-03-13 22:30:52 -05:00
|
|
|
.. envvar:: OS_AUTH_URL
|
2011-02-26 05:04:40 -04:00
|
|
|
|
2017-10-16 17:53:34 +09:00
|
|
|
The OpenStack Keystone endpoint URL.
|
2011-02-26 05:04:40 -04:00
|
|
|
|
2012-04-12 14:16:31 -05:00
|
|
|
.. envvar:: OS_COMPUTE_API_VERSION
|
2011-08-07 14:00:23 -05:00
|
|
|
|
2017-10-16 17:53:34 +09:00
|
|
|
The OpenStack Nova API version (microversion).
|
2011-08-07 14:00:23 -05:00
|
|
|
|
2017-07-04 11:06:56 +01:00
|
|
|
.. envvar:: OS_REGION_NAME
|
|
|
|
|
|
|
|
The Keystone region name. Defaults to the first region if multiple regions
|
|
|
|
are available.
|
|
|
|
|
2017-09-03 17:24:40 -04:00
|
|
|
.. envvar:: OS_TRUSTED_IMAGE_CERTIFICATE_IDS
|
|
|
|
|
|
|
|
A comma-delimited list of trusted image certificate IDs. Only used
|
|
|
|
with the ``nova boot`` and ``nova rebuild`` commands starting with the
|
|
|
|
2.63 microversion.
|
|
|
|
|
|
|
|
For example::
|
|
|
|
|
|
|
|
export OS_TRUSTED_IMAGE_CERTIFICATE_IDS=trusted-cert-id1,trusted-cert-id2
|
|
|
|
|
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
|
2017-10-16 17:53:34 +09:00
|
|
|
export OS_PROJECT_NAME=myproject
|
|
|
|
export OS_PROJECT_DOMAIN_NAME=default
|
|
|
|
export OS_USER_DOMAIN_NAME=default
|
|
|
|
export OS_AUTH_URL=http://<url-to-openstack-keystone>/identity
|
2017-07-04 11:06:56 +01:00
|
|
|
export OS_COMPUTE_API_VERSION=2.1
|
2017-03-16 16:16:44 +00:00
|
|
|
|
2011-01-25 14:01:22 -06:00
|
|
|
From there, all shell commands take the form::
|
2017-03-16 16:16:44 +00:00
|
|
|
|
2011-02-24 13:54:10 -04:00
|
|
|
nova <command> [arguments...]
|
2011-01-25 14:01:22 -06:00
|
|
|
|
2017-07-04 11:06:56 +01: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 command.
|
|
|
|
|
2019-10-11 03:48:51 +09:00
|
|
|
For more information, see :doc:`the command reference </cli/nova>`.
|