The nova client is the command-line interface (CLI) for the Compute service (nova) API and its extensions.
For help on a specific nova command, enter:
$ nova help COMMAND
Note
Over time, command line functionality will be phased out
of the nova
CLI and into the openstack
CLI. Using
the openstack
client where possible is preferred but
there is not full parity yet for all of the nova
commands.
For information on using the openstack
CLI, see
OpenStackClient.
usage: nova [--version] [--debug] [--os-cache] [--timings]
[--os-region-name <region-name>] [--service-type <service-type>]
[--service-name <service-name>]
[--os-endpoint-type <endpoint-type>]
[--os-compute-api-version <compute-api-ver>]
[--os-endpoint-override <bypass-url>] [--profile HMAC_KEY]
[--insecure] [--os-cacert <ca-certificate>]
[--os-cert <certificate>] [--os-key <key>] [--timeout <seconds>]
[--collect-timing] [--os-auth-type <name>]
[--os-auth-url OS_AUTH_URL] [--os-system-scope OS_SYSTEM_SCOPE]
[--os-domain-id OS_DOMAIN_ID] [--os-domain-name OS_DOMAIN_NAME]
[--os-project-id OS_PROJECT_ID]
[--os-project-name OS_PROJECT_NAME]
[--os-project-domain-id OS_PROJECT_DOMAIN_ID]
[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
[--os-trust-id OS_TRUST_ID]
[--os-default-domain-id OS_DEFAULT_DOMAIN_ID]
[--os-default-domain-name OS_DEFAULT_DOMAIN_NAME]
[--os-user-id OS_USER_ID] [--os-username OS_USERNAME]
[--os-user-domain-id OS_USER_DOMAIN_ID]
[--os-user-domain-name OS_USER_DOMAIN_NAME]
[--os-password OS_PASSWORD]
<subcommand> ...
Subcommands:
add-fixed-ip
add-secgroup
agent-create
agent-delete
agent-list
agent-modify
aggregate-add-host
aggregate-create
aggregate-delete
aggregate-list
aggregate-remove-host
aggregate-set-metadata
aggregate-show
aggregate-update
availability-zone-list
backup
boot
cell-capacities
cell-show
clear-password
cloudpipe-configure
cloudpipe-create
cloudpipe-list
console-log
delete
diagnostics
evacuate
flavor-access-add
flavor-access-list
flavor-access-remove
flavor-create
flavor-delete
flavor-key
flavor-list
flavor-show
flavor-update
floating-ip-associate
floating-ip-disassociate
force-delete
get-mks-console
get-password
get-rdp-console
get-serial-console
get-spice-console
get-vnc-console
host-action
host-describe
host-evacuate
host-evacuate-live
host-list
host-meta
host-servers-migrate
host-update
hypervisor-list
hypervisor-servers
hypervisor-show
hypervisor-stats
hypervisor-uptime
image-create
instance-action
instance-action-list
instance-usage-audit-log
interface-attach
interface-detach
interface-list
keypair-add
keypair-delete
keypair-list
keypair-show
limits
list
list-extensions
list-secgroup
live-migration
live-migration-abort
live-migration-force-complete
lock
meta
migrate
migration-list
pause
quota-class-show
quota-class-update
quota-defaults
quota-delete
quota-show
quota-update
reboot
rebuild
refresh-network
remove-fixed-ip
remove-secgroup
rescue
reset-network
reset-state
resize
resize-confirm
resize-revert
restore
resume
server-group-create
server-group-delete
server-group-get
server-group-list
server-migration-list
server-migration-show
server-tag-add
server-tag-delete
server-tag-delete-all
server-tag-list
server-tag-set
service-delete
service-disable
service-enable
service-force-down
service-list
set-password
shelve
shelve-offload
show
ssh
start
stop
suspend
trigger-crash-dump
unlock
unpause
unrescue
unshelve
update
usage
usage-list
version-list
virtual-interface-list
volume-attach
volume-attachments
volume-detach
volume-update
x509-create-cert
x509-get-root-cert
bash-completion
help
--version
--debug
--os-cache
env[OS_CACHE]
is not set.--timings
--os-region-name <region-name>
env[OS_REGION_NAME]
.--service-type <service-type>
--service-name <service-name>
env[NOVA_SERVICE_NAME]
.--os-endpoint-type <endpoint-type>
env[NOVA_ENDPOINT_TYPE]
,
env[OS_ENDPOINT_TYPE]
or publicURL.--os-compute-api-version <compute-api-ver>
env[OS_COMPUTE_API_VERSION]
.--os-endpoint-override <bypass-url>
env[OS_ENDPOINT_OVERRIDE]
.--profile HMAC_KEY
--os-auth-type <name>, --os-auth-plugin <name>
usage: nova add-secgroup <server> <secgroup>
Add a Security Group to a server.
Positional arguments:
<server>
<secgroup>
usage: nova agent-create <os> <architecture> <version> <url> <md5hash>
<hypervisor>
Create new agent build.
Positional arguments:
<os>
<architecture>
<version>
<url>
<md5hash>
<hypervisor>
usage: nova agent-delete <id>
Delete existing agent build.
Positional arguments:
<id>
usage: nova agent-list [--hypervisor <hypervisor>]
List all builds.
Optional arguments:
--hypervisor <hypervisor>
usage: nova agent-modify <id> <version> <url> <md5hash>
Modify existing agent build.
Positional arguments:
<id>
<version>
<url>
<md5hash>
usage: nova aggregate-add-host <aggregate> <host>
Add the host to the specified aggregate.
Positional arguments:
<aggregate>
<host>
usage: nova aggregate-create <name> [<availability-zone>]
Create a new aggregate with the specified details.
Positional arguments:
<name>
<availability-zone>
usage: nova aggregate-delete <aggregate>
Delete the aggregate.
Positional arguments:
<aggregate>
usage: nova aggregate-remove-host <aggregate> <host>
Remove the specified host from the specified aggregate.
Positional arguments:
<aggregate>
<host>
usage: nova aggregate-set-metadata <aggregate> <key=value> [<key=value> ...]
Update the metadata associated with the aggregate.
Positional arguments:
<aggregate>
<key=value>
usage: nova aggregate-show <aggregate>
Show details of the specified aggregate.
Positional arguments:
<aggregate>
usage: nova aggregate-update [--name NAME]
[--availability-zone <availability-zone>]
<aggregate>
Update the aggregate’s name and optionally availability zone.
Positional arguments:
<aggregate>
Optional arguments:
--name NAME
--availability-zone <availability-zone>
usage: nova backup <server> <name> <backup-type> <rotation>
Backup a server by creating a ‘backup’ type snapshot.
Positional arguments:
<server>
<name>
<backup-type>
<rotation>
usage: nova boot [--flavor <flavor>] [--image <image>]
[--image-with <key=value>] [--boot-volume <volume_id>]
[--snapshot <snapshot_id>] [--min-count <number>]
[--max-count <number>] [--meta <key=value>]
[--key-name <key-name>] [--user-data <user-data>]
[--availability-zone <availability-zone>]
[--security-groups <security-groups>]
[--block-device-mapping <dev-name=mapping>]
[--block-device key1=value1[,key2=value2...]]
[--swap <swap_size>]
[--ephemeral size=<size>[,format=<format>]]
[--hint <key=value>]
[--nic <auto,none,net-id=net-uuid,net-name=network-name,port-id=port-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,tag=tag>]
[--config-drive <value>] [--poll] [--admin-pass <value>]
[--access-ip-v4 <value>] [--access-ip-v6 <value>]
[--description <description>] [--tags <tags>]
[--return-reservation-id]
[--trusted-image-certificate-id <trusted-image-certificate-id>]
<name>
Boot a new server.
In order to create a server with pre-existing ports that contain a
resource_request
value, such as for guaranteed minimum bandwidth
quality of service support, microversion 2.72
is required.
Positional arguments:
<name>
Optional arguments:
--flavor <flavor>
--image <image>
--image-with <key=value>
--boot-volume <volume_id>
--snapshot <snapshot_id>
--min-count <number>
--max-count <number>
--meta <key=value>
--key-name <key-name>
--user-data <user-data>
--availability-zone <availability-zone>
--security-groups <security-groups>
--block-device-mapping <dev-name=mapping>
--block-device
--swap <swap_size>
--ephemeral
--hint <key=value>
--nic <auto,none,net-id=net-uuid,net-name=network-name,port-id=port-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,tag=tag>
--config-drive <value>
--poll
--admin-pass <value>
--access-ip-v4 <value>
--access-ip-v6 <value>
--description <description>
--tags <tags>
--return-reservation-id
--trusted-image-certificate-id <trusted-image-certificate-id>
usage: nova cell-capacities [--cell <cell-name>]
Get cell capacities for all cells or a given cell.
Optional arguments:
--cell <cell-name>
usage: nova cell-show <cell-name>
Show details of a given cell.
Positional arguments:
<cell-name>
usage: nova clear-password <server>
Clear the admin password for a server from the metadata server. This action does not actually change the instance server password.
Positional arguments:
<server>
usage: nova console-log [--length <length>] <server>
Get console log output of a server.
Locale encoding issues
If you encounter an error such as:
UnicodeEncodeError: 'ascii' codec can't encode characters in position
The solution to these problems is different depending on which locale your computer is running in.
For instance, if you have a German Linux machine, you can fix the problem by exporting the locale to de_DE.utf-8:
export LC_ALL=de_DE.utf-8
export LANG=de_DE.utf-8
If you are on a US machine, en_US.utf-8 is the encoding of choice. On some newer Linux systems, you could also try C.UTF-8 as the locale:
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
Positional arguments:
<server>
Optional arguments:
--length <length>
usage: nova delete [--all-tenants] <server> [<server> ...]
Immediately shut down and delete specified server(s).
Positional arguments:
<server>
Optional arguments:
--all-tenants
usage: nova diagnostics <server>
Retrieve server diagnostics.
Positional arguments:
<server>
usage: nova evacuate [--password <password>] [--force] <server> [<host>]
Evacuate server from failed host.
Positional arguments:
<server>
<host>
Optional arguments:
--password <password>
--force
Force an evacuation by not verifying the provided destination host by the scheduler. (Supported by API versions ‘2.29’ - ‘2.67’)
Warning
This could result in failures to actually evacuate the
server to the specified host. It is recommended to either not specify
a host so that the scheduler will pick one, or specify a host without
--force
.
usage: nova flavor-access-add <flavor> <tenant_id>
Add flavor access for the given tenant.
Positional arguments:
<flavor>
<tenant_id>
usage: nova flavor-access-list [--flavor <flavor>]
Print access information about the given flavor.
Optional arguments:
--flavor <flavor>
usage: nova flavor-access-remove <flavor> <tenant_id>
Remove flavor access for the given tenant.
Positional arguments:
<flavor>
<tenant_id>
usage: nova flavor-create [--ephemeral <ephemeral>] [--swap <swap>]
[--rxtx-factor <factor>] [--is-public <is-public>]
[--description <description>]
<name> <id> <ram> <disk> <vcpus>
Create a new flavor.
Positional arguments:
<name>
<id>
<ram>
<disk>
<vcpus>
Optional arguments:
--ephemeral <ephemeral>
--swap <swap>
--rxtx-factor <factor>
--is-public <is-public>
--description <description>
usage: nova flavor-delete <flavor>
Delete a specific flavor
Positional arguments:
<flavor>
usage: nova flavor-key <flavor> <action> <key=value> [<key=value> ...]
Set or unset extra_spec for a flavor.
Positional arguments:
<flavor>
<action>
<key=value>
usage: nova flavor-list [--extra-specs] [--all] [--marker <marker>]
[--min-disk <min-disk>] [--min-ram <min-ram>]
[--limit <limit>] [--sort-key <sort-key>]
[--sort-dir <sort-dir>]
Print a list of available ‘flavors’ (sizes of servers).
Optional arguments:
--extra-specs
--all
--marker <marker>
--min-disk <min-disk>
--min-ram <min-ram>
--limit <limit>
--sort-key <sort-key>
--sort-dir <sort-dir>
usage: nova flavor-show <flavor>
Show details about the given flavor.
Positional arguments:
<flavor>
usage: nova flavor-update <flavor> <description>
Update the description of an existing flavor. (Supported by API versions ‘2.55’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
New in version 10.0.0.
Positional arguments
<flavor>
<description>
usage: nova force-delete <server>
Force delete a server.
Positional arguments:
<server>
usage: nova get-mks-console <server>
Get an MKS console to a server. (Supported by API versions ‘2.8’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
New in version 3.0.0.
Positional arguments:
<server>
usage: nova get-password <server> [<private-key>]
Get the admin password for a server. This operation calls the metadata service to query metadata information and does not read password information from the server itself.
Positional arguments:
<server>
<private-key>
usage: nova get-rdp-console <server> <console-type>
Get a rdp console to a server.
Positional arguments:
<server>
<console-type>
usage: nova get-serial-console [--console-type CONSOLE_TYPE] <server>
Get a serial console to a server.
Positional arguments:
<server>
Optional arguments:
--console-type CONSOLE_TYPE
usage: nova get-spice-console <server> <console-type>
Get a spice console to a server.
Positional arguments:
<server>
<console-type>
usage: nova get-vnc-console <server> <console-type>
Get a vnc console to a server.
Positional arguments:
<server>
<console-type>
usage: nova host-evacuate [--target_host <target_host>] [--force] [--strict]
<host>
Evacuate all instances from failed host.
Positional arguments:
<host>
The hypervisor hostname (or pattern) to search for.
Warning
Use a fully qualified domain name if you only want to evacuate from a specific host.
Optional arguments:
--target_host <target_host>
--force
Force an evacuation by not verifying the provided destination host by the scheduler. (Supported by API versions ‘2.29’ - ‘2.67’)
Warning
This could result in failures to actually evacuate the
server to the specified host. It is recommended to either not specify
a host so that the scheduler will pick one, or specify a host without
--force
.
--strict
usage: nova host-evacuate-live [--target-host <target_host>] [--block-migrate]
[--max-servers <max_servers>] [--force]
[--strict]
<host>
Live migrate all instances off the specified host to other available hosts.
Positional arguments:
<host>
Name of host. The hypervisor hostname (or pattern) to search for.
Warning
Use a fully qualified domain name if you only want to live migrate from a specific host.
Optional arguments:
--target-host <target_host>
--block-migrate
--max-servers <max_servers>
--force
Force a live-migration by not verifying the provided destination host by the scheduler. (Supported by API versions ‘2.30’ - ‘2.67’)
Warning
This could result in failures to actually live migrate the
servers to the specified host. It is recommended to either not specify
a host so that the scheduler will pick one, or specify a host without
--force
.
--strict
usage: nova host-meta [--strict] <host> <action> <key=value> [<key=value> ...]
Set or Delete metadata on all instances of a host.
Positional arguments:
<host>
The hypervisor hostname (or pattern) to search for.
Warning
Use a fully qualified domain name if you only want to update metadata for servers on a specific host.
<action>
<key=value>
Optional arguments:
--strict
usage: nova host-servers-migrate [--strict] <host>
Cold migrate all instances off the specified host to other available hosts.
Positional arguments:
<host>
Name of host. The hypervisor hostname (or pattern) to search for.
Warning
Use a fully qualified domain name if you only want to cold migrate from a specific host.
Optional arguments:
--strict
usage: nova hypervisor-list [--matching <hostname>] [--marker <marker>]
[--limit <limit>]
List hypervisors. (Supported by API versions ‘2.0’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
Optional arguments:
--matching <hostname>
--marker <marker>
--limit <limit>
usage: nova hypervisor-servers <hostname>
List servers belonging to specific hypervisors.
Positional arguments:
<hostname>
usage: nova hypervisor-show [--wrap <integer>] <hypervisor>
Display the details of the specified hypervisor.
Positional arguments:
<hypervisor>
Optional arguments:
--wrap <integer>
usage: nova hypervisor-stats
Get hypervisor statistics over all compute nodes.
usage: nova hypervisor-uptime <hypervisor>
Display the uptime of the specified hypervisor.
Positional arguments:
<hypervisor>
usage: nova image-create [--metadata <key=value>] [--show] [--poll]
<server> <name>
Create a new image by taking a snapshot of a running server.
Positional arguments:
<server>
<name>
Optional arguments:
--metadata <key=value>
--show
--poll
usage: nova instance-action <server> <request_id>
Show an action.
Positional arguments:
<server>
<request_id>
usage: nova instance-action-list [--marker <marker>] [--limit <limit>]
[--changes-since <changes_since>]
[--changes-before <changes_before>]
<server>
List actions on a server.
Positional arguments:
<server>
Optional arguments:
--marker <marker>
--limit <limit>
--changes-since <changes_since>
--changes-before <changes_before>
usage: nova instance-usage-audit-log [--before <before>]
List/Get server usage audits.
Optional arguments:
--before <before>
usage: nova interface-attach [--port-id <port_id>] [--net-id <net_id>]
[--fixed-ip <fixed_ip>] [--tag <tag>]
<server>
Attach a network interface to a server.
Positional arguments:
<server>
Optional arguments:
--port-id <port_id>
--net-id <net_id>
--fixed-ip <fixed_ip>
--tag <tag>
usage: nova interface-detach <server> <port_id>
Detach a network interface from a server.
Positional arguments:
<server>
<port_id>
usage: nova interface-list <server>
List interfaces attached to a server.
Positional arguments:
<server>
usage: nova keypair-add [--pub-key <pub-key>] [--key-type <key-type>]
[--user <user-id>]
<name>
Create a new key pair for use with servers.
Positional arguments:
<name>
Optional arguments:
--pub-key <pub-key>
--key-type <key-type>
--user <user-id>
usage: nova keypair-delete [--user <user-id>] <name>
Delete keypair given by its name. (Supported by API versions ‘2.0’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
Positional arguments:
<name>
Optional arguments:
--user <user-id>
usage: nova keypair-list [--user <user-id>] [--marker <marker>]
[--limit <limit>]
Print a list of keypairs for a user (Supported by API versions ‘2.0’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
Optional arguments:
--user <user-id>
--marker <marker>
--limit <limit>
usage: nova keypair-show [--user <user-id>] <keypair>
Show details about the given keypair. (Supported by API versions ‘2.0’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
Positional arguments:
<keypair>
Optional arguments:
--user <user-id>
usage: nova limits [--tenant [<tenant>]] [--reserved]
Print rate and absolute limits.
Optional arguments:
--tenant [<tenant>]
--reserved
usage: nova list [--reservation-id <reservation-id>] [--ip <ip-regexp>]
[--ip6 <ip6-regexp>] [--name <name-regexp>]
[--instance-name <name-regexp>] [--status <status>]
[--flavor <flavor>] [--image <image>] [--host <hostname>]
[--all-tenants [<0|1>]] [--tenant [<tenant>]]
[--user [<user>]] [--deleted] [--fields <fields>] [--minimal]
[--sort <key>[:<direction>]] [--marker <marker>]
[--limit <limit>] [--changes-since <changes_since>]
[--changes-before <changes_before>]
[--tags <tags>] [--tags-any <tags-any>]
[--not-tags <not-tags>] [--not-tags-any <not-tags-any>]
List servers.
Note that from microversion 2.69, during partial infrastructure failures in the deployment, the output of this command may return partial results for the servers present in the failure domain.
Optional arguments:
--reservation-id <reservation-id>
--ip <ip-regexp>
--ip6 <ip6-regexp>
--name <name-regexp>
--instance-name <name-regexp>
--status <status>
--flavor <flavor>
--image <image>
--host <hostname>
--all-tenants [<0|1>]
--tenant [<tenant>]
--user [<user>]
--deleted
--fields <fields>
--minimal
--sort <key>[:<direction>]
--marker <marker>
--limit <limit>
--changes-since <changes_since>
--changes-before <changes_before>
--tags <tags>
--tags-any <tags-any>
--not-tags <not-tags>
--not-tags-any <not-tags-any>
usage: nova list-extensions
List all the os-api extensions that are available.
usage: nova list-secgroup <server>
List Security Group(s) of a server.
Positional arguments:
<server>
usage: nova live-migration [--block-migrate] [--force] <server> [<host>]
Migrate running server to a new machine.
Positional arguments:
<server>
<host>
Optional arguments:
--block-migrate
--force
Force a live-migration by not verifying the provided destination host by the scheduler. (Supported by API versions ‘2.30’ - ‘2.67’)
Warning
This could result in failures to actually live migrate the
server to the specified host. It is recommended to either not specify
a host so that the scheduler will pick one, or specify a host without
--force
.
usage: nova live-migration-abort <server> <migration>
Abort an on-going live migration. (Supported by API versions ‘2.24’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
For microversions from 2.24 to 2.64 the migration status must be running
;
for microversion 2.65 and greater, the migration status can also be queued
and preparing
.
New in version 3.3.0.
Positional arguments:
<server>
<migration>
usage: nova live-migration-force-complete <server> <migration>
Force on-going live migration to complete. (Supported by API versions ‘2.22’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
New in version 3.3.0.
Positional arguments:
<server>
<migration>
usage: nova lock <server>
Lock a server. A normal (non-admin) user will not be able to execute actions on a locked server.
Positional arguments:
<server>
usage: nova meta <server> <action> <key=value> [<key=value> ...]
Set or delete metadata on a server.
Positional arguments:
<server>
<action>
<key=value>
usage: nova migrate [--host <host>] [--poll] <server>
Migrate a server. The new host will be selected by the scheduler.
Positional arguments:
<server>
Optional arguments:
--host <host>
--poll
usage: nova migration-list [--instance-uuid <instance_uuid>] [--host <host>]
[--status <status>] [--marker <marker>]
[--limit <limit>] [--changes-since <changes_since>]
[--changes-before <changes_before>]
Print a list of migrations.
Optional arguments:
--instance-uuid <instance_uuid>
--host <host>
--status <status>
--marker <marker>
--limit <limit>
--changes-since <changes_since>
--changes-before <changes_before>
usage: nova pause <server>
Pause a server.
Positional arguments:
<server>
usage: nova quota-class-show <class>
List the quotas for a quota class.
Positional arguments:
<class>
usage: nova quota-class-update [--instances <instances>] [--cores <cores>]
[--ram <ram>]
[--metadata-items <metadata-items>]
[--key-pairs <key-pairs>]
[--server-groups <server-groups>]
[--server-group-members <server-group-members>]
<class>
Update the quotas for a quota class. (Supported by API versions ‘2.0’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
Positional arguments:
<class>
Optional arguments:
--instances <instances>
--cores <cores>
--ram <ram>
--metadata-items <metadata-items>
--key-pairs <key-pairs>
--server-groups <server-groups>
--server-group-members <server-group-members>
usage: nova quota-defaults [--tenant <tenant-id>]
List the default quotas for a tenant.
Optional arguments:
--tenant <tenant-id>
usage: nova quota-delete --tenant <tenant-id> [--user <user-id>]
Delete quota for a tenant/user so their quota will Revert back to default.
Optional arguments:
--tenant <tenant-id>
--user <user-id>
usage: nova quota-show [--tenant <tenant-id>] [--user <user-id>] [--detail]
List the quotas for a tenant/user.
Optional arguments:
--tenant <tenant-id>
--user <user-id>
--detail
usage: nova quota-update [--user <user-id>] [--instances <instances>]
[--cores <cores>] [--ram <ram>]
[--metadata-items <metadata-items>]
[--key-pairs <key-pairs>]
[--server-groups <server-groups>]
[--server-group-members <server-group-members>]
[--force]
<tenant-id>
Update the quotas for a tenant/user. (Supported by API versions ‘2.0’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
Positional arguments:
<tenant-id>
Optional arguments:
--user <user-id>
--instances <instances>
--cores <cores>
--ram <ram>
--metadata-items <metadata-items>
--key-pairs <key-pairs>
--server-groups <server-groups>
--server-group-members <server-group-members>
--force
usage: nova reboot [--hard] [--poll] <server> [<server> ...]
Reboot a server.
Positional arguments:
<server>
Optional arguments:
--hard
--poll
usage: nova rebuild [--rebuild-password <rebuild-password>] [--poll]
[--minimal] [--preserve-ephemeral] [--name <name>]
[--description <description>] [--meta <key=value>]
[--key-name <key-name>] [--key-unset]
[--user-data <user-data>] [--user-data-unset]
[--trusted-image-certificate-id <trusted-image-certificate-id>]
[--trusted-image-certificates-unset]
<server> <image>
Shutdown, re-image, and re-boot a server.
Positional arguments:
<server>
<image>
Optional arguments:
--rebuild-password <rebuild-password>
--poll
--minimal
--preserve-ephemeral
--name <name>
--description <description>
--meta <key=value>
--key-name <key-name>
--key-unset
--user-data <user-data>
--user-data-unset
--trusted-image-certificate-id <trusted-image-certificate-id>
--trusted-image-certificates-unset
--trusted-image-certificate-id
option.
(Supported by API versions ‘2.63’ - ‘2.latest’)usage: nova refresh-network <server>
Refresh server network information.
Positional arguments:
<server>
usage: nova remove-secgroup <server> <secgroup>
Remove a Security Group from a server.
Positional arguments:
<server>
<secgroup>
usage: nova rescue [--password <password>] [--image <image>] <server>
Reboots a server into rescue mode, which starts the machine from either the initial image or a specified image, attaching the current boot disk as secondary.
Positional arguments:
<server>
Optional arguments:
--password <password>
--image <image>
usage: nova reset-network <server>
Reset network of a server.
Positional arguments:
<server>
usage: nova reset-state [--all-tenants] [--active] <server> [<server> ...]
Reset the state of a server.
Positional arguments:
<server>
Optional arguments:
--all-tenants
--active
usage: nova resize [--poll] <server> <flavor>
Resize a server.
Positional arguments:
<server>
<flavor>
Optional arguments:
--poll
usage: nova resize-confirm <server>
Confirm a previous resize.
Positional arguments:
<server>
usage: nova resize-revert <server>
Revert a previous resize (and return to the previous VM).
Positional arguments:
<server>
usage: nova restore <server>
Restore a soft-deleted server.
Positional arguments:
<server>
usage: nova resume <server>
Resume a server.
Positional arguments:
<server>
usage: nova server-group-create [--rules <key=value>] <name> <policy>
Create a new server group with the specified details.
Positional arguments:
<name>
<policy>
Optional arguments:
--rule
max_server_per_host
rule
is supported for the anti-affinity
policy. The max_server_per_host
rule allows specifying how many members of the anti-affinity group can
reside on the same compute host. If not specified, only one member from
the same anti-affinity group can reside on a given host.usage: nova server-group-delete <id> [<id> ...]
Delete specific server group(s).
Positional arguments:
<id>
usage: nova server-group-get <id>
Get a specific server group.
Positional arguments:
<id>
usage: nova server-group-list [--limit <limit>] [--offset <offset>]
[--all-projects]
Print a list of all server groups.
Optional arguments:
--limit <limit>
--offset <offset>
--all-projects
usage: nova server-migration-list <server>
Get the migrations list of specified server. (Supported by API versions ‘2.23’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
New in version 3.3.0.
Positional arguments:
<server>
usage: nova server-migration-show <server> <migration>
Get the migration of specified server. (Supported by API versions ‘2.23’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
New in version 3.3.0.
Positional arguments:
<server>
<migration>
usage: nova server-tag-add <server> <tag> [<tag> ...]
Add one or more tags to a server. (Supported by API versions ‘2.26’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
New in version 4.1.0.
Positional arguments:
<server>
<tag>
usage: nova server-tag-delete <server> <tag> [<tag> ...]
Delete one or more tags from a server. (Supported by API versions ‘2.26’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
New in version 4.1.0.
Positional arguments:
<server>
<tag>
usage: nova server-tag-delete-all <server>
Delete all tags from a server. (Supported by API versions ‘2.26’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
New in version 4.1.0.
Positional arguments:
<server>
usage: nova server-tag-list <server>
Get list of tags from a server. (Supported by API versions ‘2.26’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
New in version 4.1.0.
Positional arguments:
<server>
usage: nova server-tag-set <server> <tags> [<tags> ...]
Set list of tags to a server. (Supported by API versions ‘2.26’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
New in version 4.1.0.
Positional arguments:
<server>
<tags>
usage: nova service-delete <id>
Delete the service.
Important
If deleting a nova-compute service, be sure to stop the actual
nova-compute
process on the physical host before deleting the
service with this command. Failing to do so can lead to the running
service re-creating orphaned compute_nodes table records in the
database.
Positional arguments:
<id>
usage: nova service-disable [--reason <reason>] <id>
Disable the service.
Positional arguments:
<id>
Optional arguments:
--reason <reason>
usage: nova service-enable <id>
Enable the service.
Positional arguments:
<id>
usage: nova service-force-down [--unset] <id>
Force service to down. (Supported by API versions ‘2.11’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
New in version 2.27.0.
Positional arguments:
<id>
Optional arguments:
--unset
usage: nova service-list [--host <hostname>] [--binary <binary>]
Show a list of all running services. Filter by host & binary.
Note that from microversion 2.69, during partial infrastructure failures in the deployment, the output of this command may return partial results for the services present in the failure domain.
Optional arguments:
--host <hostname>
--binary <binary>
usage: nova set-password <server>
Change the admin password for a server.
Positional arguments:
<server>
usage: nova shelve <server>
Shelve a server.
Positional arguments:
<server>
usage: nova shelve-offload <server>
Remove a shelved server from the compute node.
Positional arguments:
<server>
usage: nova show [--minimal] [--wrap <integer>] <server>
Show details about the given server.
Note that from microversion 2.69, during partial infrastructure failures in the deployment, the output of this command may return partial results for the server if it exists in the failure domain.
Positional arguments:
<server>
Optional arguments:
--minimal
--wrap <integer>
usage: nova ssh [--port PORT] [--address-type ADDRESS_TYPE]
[--network <network>] [--ipv6] [--login <login>] [-i IDENTITY]
[--extra-opts EXTRA]
<server>
SSH into a server.
Positional arguments:
<server>
Optional arguments:
--port PORT
--address-type ADDRESS_TYPE
--network <network>
--ipv6
--login <login>
-i IDENTITY, --identity IDENTITY
--extra-opts EXTRA
usage: nova start [--all-tenants] <server> [<server> ...]
Start the server(s).
Positional arguments:
<server>
Optional arguments:
--all-tenants
usage: nova stop [--all-tenants] <server> [<server> ...]
Stop the server(s).
Positional arguments:
<server>
Optional arguments:
--all-tenants
usage: nova suspend <server>
Suspend a server.
Positional arguments:
<server>
usage: nova trigger-crash-dump <server>
Trigger crash dump in an instance. (Supported by API versions ‘2.17’ - ‘2.latest’) [hint: use ‘–os-compute-api-version’ flag to show help message for proper version]
New in version 3.3.0.
Positional arguments:
<server>
usage: nova unlock <server>
Unlock a server.
Positional arguments:
<server>
usage: nova unpause <server>
Unpause a server.
Positional arguments:
<server>
usage: nova unrescue <server>
Restart the server from normal boot disk again.
Positional arguments:
<server>
usage: nova unshelve <server>
Unshelve a server.
Positional arguments:
<server>
usage: nova update [--name <name>] [--description <description>] <server>
Update the name or the description for a server.
Positional arguments:
<server>
Optional arguments:
--name <name>
--description <description>
usage: nova usage [--start <start>] [--end <end>] [--tenant <tenant-id>]
Show usage data for a single tenant.
Optional arguments:
--start <start>
--end <end>
--tenant <tenant-id>
usage: nova usage-list [--start <start>] [--end <end>]
List usage data for all tenants.
Optional arguments:
--start <start>
--end <end>
usage: nova volume-attach [--tag <tag>] <server> <volume> [<device>]
Attach a volume to a server.
Positional arguments:
<server>
<volume>
<device>
Optional arguments:
--tag <tag>
usage: nova volume-attachments <server>
List all the volumes attached to a server.
Positional arguments:
<server>
usage: nova volume-detach <server> <volume>
Detach a volume from a server.
Positional arguments:
<server>
<volume>
usage: nova volume-update <server> <src_volid> <dest_volid>
Update the attachment on the server. Migrates the data from an attached volume to the specified available volume and swaps out the active attachment to the new volume.
Positional arguments:
<server>
<src_volid>
<dest_volid>
usage: nova bash-completion
Prints all of the commands and options to stdout so that the nova.bash_completion script doesn’t have to hard code them.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.