The nova client is the command-line interface (CLI) for the Compute service (nova) API and its extensions.
This chapter documents nova version 9.0.1
.
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:
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>]
[--os-auth-type <name>] [--os-auth-url OS_AUTH_URL]
[--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
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
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>]
[--file <dst-path=src-path>] [--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>]
[--trusted-image-certificate-id <trusted-image-certificate-id>]
<name>
Boot a new server.
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>
--file <dst-path=src-path>
--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>
--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
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>]
<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>
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]
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] <host>
Evacuate all instances from failed host.
Positional arguments:
<host>
Optional arguments:
--target_host <target_host>
--force
usage: nova host-evacuate-live [--target-host <target_host>] [--block-migrate]
[--max-servers <max_servers>] [--force]
<host>
Live migrate all instances off the specified host to other available hosts.
Positional arguments:
<host>
Optional arguments:
--target-host <target_host>
--block-migrate
--max-servers <max_servers>
--force
usage: nova host-meta <host> <action> <key=value> [<key=value> ...]
Set or Delete metadata on all instances of a host.
Positional arguments:
<host>
<action>
<key=value>
usage: nova host-servers-migrate <host>
Cold migrate all instances off the specified host to other available hosts.
Positional arguments:
<host>
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>]
<server>
List actions on a server.
Positional arguments:
<server>
Optional arguments:
--marker <marker>
--limit <limit>
--changes-since <changes_since>
usage: nova interface-attach [--port-id <port_id>] [--net-id <net_id>]
[--fixed-ip <fixed_ip>]
<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>
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>]
[--tags <tags>] [--tags-any <tags-any>]
[--not-tags <not-tags>] [--not-tags-any <not-tags-any>]
List servers.
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>
--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
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
.
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]
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 [--poll] <server>
Migrate a server. The new host will be selected by the scheduler.
Positional arguments:
<server>
Optional arguments:
--poll
usage: nova migration-list [--instance-uuid <instance_uuid>] [--host <host>]
[--status <status>] [--marker <marker>]
[--limit <limit>] [--changes-since <changes_since>]
Print a list of migrations.
Optional arguments:
--instance-uuid <instance_uuid>
--host <host>
--status <status>
--marker <marker>
--limit <limit>
--changes-since <changes_since>
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>]
[--injected-files <injected-files>]
[--injected-file-content-bytes <injected-file-content-bytes>]
[--injected-file-path-bytes <injected-file-path-bytes>]
[--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>
--injected-files <injected-files>
--injected-file-content-bytes <injected-file-content-bytes>
--injected-file-path-bytes <injected-file-path-bytes>
--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>]
[--injected-files <injected-files>]
[--injected-file-content-bytes <injected-file-content-bytes>]
[--injected-file-path-bytes <injected-file-path-bytes>]
[--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>
--injected-files <injected-files>
--injected-file-content-bytes <injected-file-content-bytes>
--injected-file-path-bytes <injected-file-path-bytes>
--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>]
[--file <dst-path=src-path>]
[--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>
--file <dst-path=src-path>
--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>
--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]
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]
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]
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]
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]
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]
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]
Positional arguments:
<server>
<tags>
usage: nova service-delete <id>
Delete the service.
Positional arguments:
<id>
usage: nova service-disable [--reason <reason>] <hostname> <binary>
Disable the service.
Positional arguments:
<hostname>
<binary>
Optional arguments:
--reason <reason>
usage: nova service-enable <hostname> <binary>
Enable the service.
Positional arguments:
<hostname>
<binary>
usage: nova service-force-down [--unset] <hostname> <binary>
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]
Positional arguments:
<hostname>
<binary>
Optional arguments:
--unset
usage: nova service-list [--host <hostname>] [--binary <binary>]
Show a list of all running services. Filter by host & binary.
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.
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]
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 <server> <volume> [<device>]
Attach a volume to a server.
Positional arguments:
<server>
<volume>
<device>
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>
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.