NOVA(1)
๐ NOVA(1) ๐
okok so this is the manual page for nova, brought to you by python-novaclient (that's the fancy package name, iykyk) โ and bestie, we're about to get into it โจ
๐ธ NAME ๐ธ
nova โ the OpenStack Nova command line client ๐
The nova client is the command-line interface (CLI) for the Compute service (nova) API and its extensions. Basically it's your little remote control for the whole compute situation ๐ฎ
Need help on a specific nova command? Just ask, she answers:
$ nova help COMMAND
โ ๏ธ Deprecated since version 17.8.0: thenovaCLI has been deprecated in favour of the unifiedopenstackCLI. For information on using theopenstackCLI, see OpenStackClient. Not me delivering bad news in the first paragraph ๐ญ but like, forewarned is forearmed, fr fr.
๐ฆ NOVA USAGE ๐ฆ
Here's the whole entire shape of her, verbatim, no notes:
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 ๐
okay this is the whole squad, all 102 of them, no skipping, no "and the rest" โ we do not do that here ๐
add-fixed-ipโ DEPRECATED โ adds a new IP address on a network to a server.add-secgroupโ adds a Security Group to a server. protecting her ๐ก๏ธagent-createโ creates a new agent build.agent-deleteโ deletes an existing agent build. bye ๐agent-listโ lists all the builds.agent-modifyโ modifies an existing agent build. glow-up โจaggregate-add-hostโ adds the host to the specified aggregate.aggregate-cache-imagesโ requests that images be pre-cached on hosts within an aggregate. (Supported by API versions'2.81'-'2.latest')aggregate-createโ creates a new aggregate with the specified details.aggregate-deleteโ deletes the aggregate. gone, reduced to atoms ๐aggregate-listโ prints a list of all aggregates.aggregate-remove-hostโ removes the specified host from the specified aggregate.aggregate-set-metadataโ updates the metadata associated with the aggregate.aggregate-showโ shows details of the specified aggregate.aggregate-updateโ updates the aggregate's name and optionally the availability zone.availability-zone-listโ lists all the availability zones.backupโ backs up a server by creating a'backup'type snapshot.bootโ boots a new server. main character entrance ๐clear-passwordโ clears the admin password for a server from the metadata server. Heads up: this action does not actually change the instance server password. read it again, yes, it's giving "did nothing but slay" ๐cloudpipe-configureโ DEPRECATED โ updates the VPN IP/port of a cloudpipe instance.cloudpipe-createโ DEPRECATED โ creates a cloudpipe instance for the given project.cloudpipe-listโ DEPRECATED โ prints a list of all cloudpipe instances.console-logโ gets the console log output of a server.deleteโ immediately shuts down and deletes the specified server(s). no warning, no grace period, just vibes and consequences ๐ญdiagnosticsโ retrieves server diagnostics.evacuateโ evacuates a server from a failed host. get her outta there ๐โโ๏ธflavor-access-addโ adds flavor access for the given tenant.flavor-access-listโ prints access information about the given flavor.flavor-access-removeโ removes flavor access for the given tenant.flavor-createโ creates a new flavor.flavor-deleteโ deletes a specific flavorflavor-keyโ sets or unsetsextra_specfor a flavor.flavor-listโ prints a list of available'flavors'(sizes of servers).flavor-showโ shows details about the given flavor.flavor-updateโ updates 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]floating-ip-associateโ DEPRECATED โ associates a floating IP address to a server.floating-ip-disassociateโ DEPRECATED โ disassociates a floating IP address from a server.force-deleteโ force deletes a server. it's giving no chill ๐ฅget-mks-consoleโ gets 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]get-passwordโ gets the admin password for a server. Important: this operation calls the metadata service to query metadata information and does not read password information from the server itself. love a transparent queen ๐ซถget-rdp-consoleโ gets a rdp console to a server.get-serial-consoleโ gets a serial console to a server.get-spice-consoleโ gets a spice console to a server.get-vnc-consoleโ gets a vnc console to a server.host-actionโ DEPRECATED โ performs a power action on a host.host-describeโ DEPRECATED โ describes a specific host.host-evacuateโ evacuates all instances from a failed host.host-evacuate-liveโ live migrates all instances off the specified host to other available hosts.host-listโ DEPRECATED โ lists all hosts by service.host-metaโ sets or deletes metadata on all instances of a host.host-servers-migrateโ cold migrates all instances off the specified host to other available hosts.host-updateโ DEPRECATED โ updates host settings.hypervisor-listโ lists hypervisors. (Supported by API versions'2.0'-'2.latest') [hint: use'--os-compute-api-version'flag to show help message for proper version]hypervisor-serversโ lists servers belonging to specific hypervisors.hypervisor-showโ displays the details of the specified hypervisor.hypervisor-statsโ gets hypervisor statistics over all compute nodes.hypervisor-uptimeโ displays the uptime of the specified hypervisor.image-createโ creates a new image by taking a snapshot of a running server. ๐ธinstance-actionโ shows an action.instance-action-listโ lists actions on a server.instance-usage-audit-logโ lists/gets server usage audits.interface-attachโ attaches a network interface to a server.interface-detachโ detaches a network interface from a server.interface-listโ lists interfaces attached to a server.keypair-addโ creates a new key pair for use with servers. ๐keypair-deleteโ deletes the 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]keypair-listโ prints 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]keypair-showโ shows 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]limitsโ prints rate and absolute limits.listโ lists servers. yes that's it, that's the whole description, and honestly? iconic minimalism ๐list-secgroupโ lists Security Group(s) of a server.live-migrationโ migrates a running server to a new machine.live-migration-abortโ aborts 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]live-migration-force-completeโ forces an 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]lockโ locks a server. a normal (non-admin) user will not be able to execute actions on a locked server. it's giving "you're on time-out" ๐metaโ sets or deletes metadata on a server.migrateโ migrates a server. the new host will be selected by the scheduler. she's not picking, the scheduler is ๐migration-listโ prints a list of migrations.pauseโ pauses a server. โธ๏ธquota-class-showโ lists the quotas for a quota class.quota-class-updateโ updates 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]quota-defaultsโ lists the default quotas for a tenant.quota-deleteโ deletes quota for a tenant/user so their quota will revert back to default.quota-showโ lists the quotas for a tenant/user.quota-updateโ updates 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]rebootโ reboots a server. ๐rebuildโ shuts down, re-images, and re-boots a server. full reset, new me energy โจrefresh-networkโ refreshes server network information.remove-fixed-ipโ DEPRECATED โ removes an IP address from a server.remove-secgroupโ removes a Security Group from a server.rescueโ 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. ๐reset-networkโ resets the network of a server.reset-stateโ resets the state of a server.resizeโ resizes a server.resize-confirmโ confirms a previous resize.resize-revertโ reverts a previous resize (and returns to the previous VM).restoreโ restores a soft-deleted server. she's back ๐ซถresumeโ resumes a server. โถ๏ธserver-group-createโ creates a new server group with the specified details.server-group-deleteโ deletes specific server group(s).server-group-getโ gets a specific server group.server-group-listโ prints a list of all server groups.server-migration-listโ grabs the migrations list for a server you pick. (Supported by API versions'2.23'-'2.latest') [hint: use--os-compute-api-versionflag to show help message for proper version]server-migration-showโ shows you one specific migration for a server. (Supported by API versions'2.23'-'2.latest') [hint: use--os-compute-api-versionflag to show help message for proper version]server-tag-addโ slaps one or more tags onto a server, no cap. (Supported by API versions'2.26'-'2.latest') [hint: use--os-compute-api-versionflag to show help message for proper version]server-tag-deleteโ yeets one or more tags off a server. (Supported by API versions'2.26'-'2.latest') [hint: use--os-compute-api-versionflag to show help message for proper version]server-tag-delete-allโ nukes every tag on a server, like a full clean slate era. (Supported by API versions'2.26'-'2.latest') [hint: use--os-compute-api-versionflag to show help message for proper version]server-tag-listโ shows you all the tags chillin' on a server. (Supported by API versions'2.26'-'2.latest') [hint: use--os-compute-api-versionflag to show help message for proper version]server-tag-setโ replaces the whole tag list on a server with the one you give it. (Supported by API versions'2.26'-'2.latest') [hint: use--os-compute-api-versionflag to show help message for proper version]server-topologyโ pulls the NUMA topology of whatever server you name. (Supported by API versions'2.78'-'2.latest')service-deleteโ deletes the service. that's it, that's the tweet ๐service-disableโ disables the service.service-enableโ enables the service (the glow-up arc โจ).service-force-downโ forces the service into the down state. (Supported by API versions'2.11'-'2.latest') [hint: use--os-compute-api-versionflag to show help message for proper version]service-listโ shows every running service in a list. You can filter by host & binary, bestie.set-passwordโ changes the admin password for a server ๐shelveโ shelves a server.shelve-offloadโ takes a shelved server off the compute node entirely.showโ shows you the details of a server, the whole lore.sshโ SSH'ing straight into a server, iconic.startโ starts the server(s).stopโ stops the server(s).suspendโ suspends a server.trigger-crash-dumpโ triggers a crash dump inside an instance. (Supported by API versions'2.17'-'2.latest') [hint: use--os-compute-api-versionflag to show help message for proper version]unlockโ unlocks a server.unpauseโ unpauses a server.unrescueโ restarts the server from its normal boot disk again.unshelveโ unshelves a server.updateโ updates a server's name or its description.usageโ shows usage data for a single tenant.usage-listโ lists usage data for all the tenants.version-listโ lists every API version.virtual-interface-listโ DEPRECATED shows virtual interface info about the given server.volume-attachโ attaches a volume to a server.volume-attachmentsโ lists all the volumes currently attached to a server.volume-detachโ detaches a volume from a server.volume-updateโ updates 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. Since microversion2.85, support for updating thedelete_on_terminationdelete flag, which allows changing the behavior of volume deletion on instance deletion. ๐ซถx509-create-certโ DEPRECATED creates an x509 cert for a user in a tenant.x509-get-root-certโ DEPRECATED fetches the x509 root cert.bash-completionโ prints all of the commands and options to stdout so that thenova.bash_completionscript doesn't have to hard code them. lowkey genius.helpโ shows help about this program, or about one of its subcommands.
โจ NOVA OPTIONAL ARGUMENTS โจ
These are the big global ones, the ones that apply everywhere, the main characters of the flag world ๐
--versionโ shows the program's version number and exits.--debugโ prints debugging output, for when you need to see everything.--os-cacheโ uses the auth token cache. Defaults toFalseifenv[OS_CACHE]is not set.--timingsโ prints call timing info.--os-region-name <region-name>โ defaults toenv[OS_REGION_NAME].--service-type <service-type>โ defaults tocomputefor most actions.--service-name <service-name>โ defaults toenv[NOVA_SERVICE_NAME].--os-endpoint-type <endpoint-type>โ defaults toenv[NOVA_ENDPOINT_TYPE],env[OS_ENDPOINT_TYPE]orpublicURL.--os-compute-api-version <compute-api-ver>โ acceptsX,X.Y(whereXis major andYis minor part) or"X.latest", defaults toenv[OS_COMPUTE_API_VERSION].--os-endpoint-override <bypass-url>โ uses this API endpoint instead of the Service Catalog. Defaults toenv[OS_ENDPOINT_OVERRIDE].--profile HMAC_KEYโ the HMAC key to use for encrypting context data for performance profiling of an operation. This key should be the value of the HMAC key configured for the OSprofiler middleware in nova; it is specified in the Nova configuration file at"/etc/nova/nova.conf". Without the key, profiling will not be triggered even if OSprofiler is enabled on the server side. so like, remember the key or nothing happens ๐--os-auth-type <name>,--os-auth-plugin <name>โ authentication type to use.
๐ธ nova add-secgroup ๐ธ
usage: nova add-secgroup <server> <secgroup>
Adds a Security Group to a server.
Positional arguments:
<server>โ name or ID of server.<secgroup>โ name or ID of Security Group.
๐ฆ nova agent-create ๐ฆ
usage: nova agent-create <os> <architecture> <version> <url> <md5hash>
<hypervisor>
Creates a new agent build.
Positional arguments:
<os>โ type of OS.<architecture>โ type of architecture.<version>โ version.<url>โ URL.<md5hash>โ MD5 hash.<hypervisor>โ type of hypervisor.
๐ nova agent-delete ๐
usage: nova agent-delete <id>
Deletes an existing agent build.
Positional arguments:
<id>โ ID of the agent-build.
โญ nova agent-list โญ
usage: nova agent-list [--hypervisor <hypervisor>]
Lists all builds. every single one.
Optional arguments:
--hypervisor <hypervisor>โ type of hypervisor.
๐ nova agent-modify ๐
usage: nova agent-modify <id> <version> <url> <md5hash>
Modifies an existing agent build.
Positional arguments:
<id>โ ID of the agent-build.<version>โ version.<url>โ URL<md5hash>โ MD5 hash.
๐ nova aggregate-add-host ๐
usage: nova aggregate-add-host <aggregate> <host>
Adds the host to the specified aggregate.
Positional arguments:
<aggregate>โ name or ID of aggregate.<host>โ the host to add to the aggregate.
๐ nova aggregate-cache-images ๐
usage: nova aggregate-cache-images <aggregate> <image> [<image> ..]
Requests image(s) be pre-cached on hosts within the aggregate. (Supported by API versions '2.81' - '2.latest')
New in version 16.0.0.
Positional arguments:
<aggregate>โ name or ID of aggregate.<image>โ name or ID of image(s) to cache.
๐ง nova aggregate-create ๐ง
usage: nova aggregate-create <name> [<availability-zone>]
Creates a new aggregate with the specified details.
Positional arguments:
<name>โ name of aggregate.<availability-zone>โ the availability zone of the aggregate (optional).
๐ nova aggregate-delete ๐
usage: nova aggregate-delete <aggregate>
Deletes the aggregate. bye bestie ๐
Positional arguments:
<aggregate>โ name or ID of aggregate to delete.
โจ nova aggregate-list โจ
usage: nova aggregate-list
Prints a list of all aggregates.
๐ฅ nova aggregate-remove-host ๐ฅ
usage: nova aggregate-remove-host <aggregate> <host>
Removes the specified host from the specified aggregate.
Positional arguments:
<aggregate>โ name or ID of aggregate.<host>โ the host to remove from the aggregate.
๐ฆ nova aggregate-set-metadata ๐ฆ
usage: nova aggregate-set-metadata <aggregate> <key=value> [<key=value> ...]
Updates the metadata associated with the aggregate.
Positional arguments:
<aggregate>โ name or ID of aggregate to update.<key=value>โ metadata to add/update to aggregate. Specify only the key to delete a metadata item. (yes, key alone = delete, that's the trick ๐ )
๐ nova aggregate-show ๐
usage: nova aggregate-show <aggregate>
Shows details of the specified aggregate.
Positional arguments:
<aggregate>โ name or ID of aggregate.
๐ nova aggregate-update ๐
usage: nova aggregate-update [--name NAME]
[--availability-zone <availability-zone>]
<aggregate>
Updates the aggregate's name and optionally availability zone.
Positional arguments:
<aggregate>โ name or ID of aggregate to update.
Optional arguments:
--name NAMEโ new name for aggregate.--availability-zone <availability-zone>โ new availability zone for aggregate.
๐ธ nova availability-zone-list ๐ธ
usage: nova availability-zone-list
Lists all the availability zones.
๐ nova backup ๐
usage: nova backup <server> <name> <backup-type> <rotation>
Backs up a server by creating a 'backup' type snapshot.
Positional arguments:
<server>โ name or ID of server.<name>โ name of the backup image.<backup-type>โ the backup type, like"daily"or"weekly".<rotation>โ int parameter representing how many backups to keep around.
๐ฆ nova boot ๐ฆ
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>]
[--host <host>]
[--hypervisor-hostname <hypervisor-hostname>]
[--hostname <hostname>]
<name>
Boot a new server. โจ That's it, that's the whole vibe โ brand new server, freshly booted, yours.
Little heads-up though, bestie: if you wanna create a server with pre-existing ports that have a resource_request value โ think guaranteed minimum bandwidth quality of service support โ you need microversion 2.72. No cap. ๐ซถ
Positional arguments:
<name>โ the name for your new server. Name it something cute, or don't, we don't judge. ๐
Optional arguments:
--flavor <flavor>โ name or ID of the flavor (peepnova flavor-listfor the menu ๐).--image <image>โ name or ID of the image (seeglance image-list). This is the glow-up your server boots from โจ.--image-with <key=value>โ image metadata property (checkglance image-show).--boot-volume <volume_id>โ volume ID to boot from. Boot straight off a volume, main character energy.--snapshot <snapshot_id>โ snapshot ID to boot from โ heads up, this will create a volume. ๐ญ Not free, bestie.--min-count <number>โ boot at least<number>servers (limited by quota, so don't get too ambitious).--max-count <number>โ boot up to<number>servers (also limited by quota, okurrr).--meta <key=value>โ record arbitrary key/value metadata to/meta_data.jsonon the metadata server. Can be specified multiple times โ stack 'em up ๐.--key-name <key-name>โ key name of a keypair that you should've created earlier with the commandkeypair-add.--user-data <user-data>โ user data file to pass along, to be exposed by the metadata server.--availability-zone <availability-zone>โ the availability zone for server placement ๐.--security-groups <security-groups>โ comma separated list of security group names.--block-device-mapping <dev-name=mapping>โ block device mapping, in the format<dev-name>=<id>:<type>:<size(GiB)>:<delete-on-terminate>.--block-device key1=value1[,key2=value2...]โ block device mapping with these keys, and yes there are a lot of them, buckle up ๐ข:id=UUID(this can beimage_id,snapshot_idorvolume_idโ only if using source image, snapshot or volume)source=sourcetype (that'simage,snapshot,volumeorblank)dest=destinationtype of the block device (volumeorlocal)bus=device's bus(e.g.uml,lxc,virtio, ...; if you leave it out, the hypervisor driver chooses a suitable default โ and it's only honoured if device type is supplied)type=devicetype (e.g.disk,cdrom, ...; defaults to'disk')device=nameof the device (e.g.vda,xda, ...; if omitted, the hypervisor driver chooses a suitable device depending on the selected bus โ note the libvirt driver always uses default device names)size=sizeof the block device in MiB (for swap) and in GiB (for other formats) โ if omitted, the hypervisor driver calculates sizeformat=devicewill be formatted (e.g.swap,ntfs, ...; optional)bootindex=integerused for ordering the boot disks (for image backed instances it's equal to0, for others it needs to be specified)shutdown=shutdownbehaviour (eitherpreserveorremoveโ for local destination set toremove)tag=devicemetadata tag (optional; supported by API versions'2.42'-'2.latest')- and
volume_type=typeof volume to create (either ID or name) when source isblank,imageorsnapshotand dest isvolume(optional; supported by API versions'2.67'-'2.latest').
--swap <swap_size>โ create and attach a local swap block device of<swap_size>MiB.--ephemeral size=<size>[,format=<format>]โ create and attach a local ephemeral block device of<size>GiB and format it to<format>.--hint <key=value>โ send arbitrary key/value pairs to the scheduler for custom use. Scheduler gossip, iykyk ๐ .--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>โ create a NIC on the server. Specify this option multiple times to create multiple nics โ unless you're using the special'auto'or'none'values. Here's the breakdown, bestie:auto: automatically allocate network resources if none are available. This cannot be specified with any other nic value and cannot be specified multiple times.none: do not attach a NIC at all. This also cannot be specified with any other nic value and cannot be specified multiple times.net-id: attach NIC to the network with a specific UUID.net-name: attach NIC to the network with this name (eitherport-idornet-idornet-namemust be provided).v4-fixed-ip: IPv4 fixed address for the NIC (optional).v6-fixed-ip: IPv6 fixed address for the NIC (optional).port-id: attach NIC to the port with this UUID.tag: interface metadata tag (optional) (eitherport-idornet-idmust be provided).
(Supported by API versions '2.42' - '2.latest')
--config-drive <value>โ enable config drive. The value must be a boolean value.--pollโ report the new server boot progress until it completes ๐. Perfect for the impatient girlies.--admin-pass <value>โ admin password for the instance.--access-ip-v4 <value>โ alternative access IPv4 of the instance.--access-ip-v6 <value>โ alternative access IPv6 of the instance.--description <description>โ description for the server. (Supported by API versions'2.19'-'2.latest')--tags <tags>โ tags for the server. Tags must be separated by commas:--tags <tag1,tag2>(Supported by API versions'2.52'-'2.latest')--return-reservation-idโ return a reservation id bound to created servers.--trusted-image-certificate-id <trusted-image-certificate-id>โ trusted image certificate IDs used to validate certificates during the image signature verification process ๐. Defaults toenv[OS_TRUSTED_IMAGE_CERTIFICATE_IDS]. May be specified multiple times to pass multiple trusted image certificate IDs. (Supported by API versions'2.63'-'2.latest')--host <host>โ requested host to create servers. Admin only by default. (Supported by API versions'2.74'-'2.latest')--hypervisor-hostname <hypervisor-hostname>โ requested hypervisor hostname to create servers. Admin only by default. (Supported by API versions'2.74'-'2.latest')--hostname <hostname>โ hostname for the instance. This sets the hostname stored in the metadata server โ but lowkey important: a utility such ascloud-initrunning on the guest is required to propagate these changes to the guest. (Supported by API versions'2.90'-'2.latest')
๐ธ nova clear-password ๐ธ
nova clear-password <server>
Clear the admin password for a server from the metadata server. And no, bestie, this doesn't actually change the instance server password โ it just clears it from the metadata server. Important distinction ๐ .
Positional arguments:
<server>โ name or ID of server.
๐ nova console-log ๐
nova console-log [--length <length>] <server>
Get console log output of a server. Bring receipts ๐.
๐ Locale encoding issues ๐
If you encounter an error such as:
UnicodeEncodeError: 'ascii' codec can't encode characters in position
...the solution is different depending on which locale your computer is running in. Annoying, I know ๐ญ.
So 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're on a US machine, en_US.utf-8 is the encoding of choice. And 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>โ name or ID of server.
Optional arguments:
--length <length>โ length in lines to tail.
๐ฅ nova delete ๐ฅ
nova delete [--all-tenants] <server> [<server> ...]
Immediately shut down and delete specified server(s). Like, gone gone. No undo button, no "wait actually" โ periodt ๐.
Positional arguments:
<server>โ name or ID of server(s).
Optional arguments:
--all-tenantsโ delete server(s) in another tenant by name (Admin only).
๐ฆ nova diagnostics ๐ฆ
nova diagnostics <server>
Retrieve server diagnostics. Health check for your server, slay ๐ฉบ.
Positional arguments:
<server>โ name or ID of server.
๐ nova evacuate ๐
nova evacuate [--password <password>] [--on-shared-storage] [--force] <server> [<host>]
Evacuate server from failed host ๐จ. Rescue mission energy.
Positional arguments:
<server>โ name or ID of server.<host>โ name or ID of the target host. If no host is specified, the scheduler will choose one for you (letting the scheduler pick is honestly the move).
Optional arguments:
--password <password>โ set the provided admin password on the evacuated server. Not applicable if the server is on shared storage.--on-shared-storageโ specifies whether server files are located on shared storage. (Supported by API versions'2.0'-'2.13')--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. Fr fr, don't do it ๐ซถ.
๐ nova flavor-access-add ๐
nova flavor-access-add <flavor> <tenant_id>
Add flavor access for the given tenant. Sharing is caring ๐.
Positional arguments:
<flavor>โ flavor name or ID to add access for the given tenant.<tenant_id>โ tenant ID to add flavor access for.
โญ nova flavor-access-list โญ
nova flavor-access-list [--flavor <flavor>]
Print access information about the given flavor ๐.
--flavor <flavor>โ narrows the results down by flavor name or ID โจ
๐ nova flavor-access-remove
usage: nova flavor-access-remove <flavor> <tenant_id>
Bye-bye flavor access for that one tenant ๐ literally revoking it.
Positional arguments:
<flavor>โ the flavor name or ID whose access you're removing for the tenant.<tenant_id>โ the tenant ID you're pulling the flavor access from.
๐ง nova flavor-create
usage: nova flavor-create [--ephemeral <ephemeral>] [--swap <swap>]
[--rxtx-factor <factor>] [--is-public <is-public>]
[--description <description>]
<name> <id> <ram> <disk> <vcpus>
Bestie, you're literally building a whole new flavor from scratch. Main character behavior ๐
Positional arguments:
<name>โ the unique name of your brand-new flavor.<id>โ the unique ID of the new flavor. If you put'auto'here it'll generate a UUID for the ID for you, slay.<ram>โ memory size, in MiB.<disk>โ disk size, in GiB.<vcpus>โ number of vcpus.
Optional arguments:
--ephemeral <ephemeral>โ ephemeral space size in GiB (default0).--swap <swap>โ swap space size in MiB (default0).--rxtx-factor <factor>โ the RX/TX factor (default1).--is-public <is-public>โ makes the flavor accessible to the public (defaulttrue).--description <description>โ a free form description of the flavor. Limited to 65535 characters in length, and only printable characters are allowed. (Supported by API versions'2.55'-'2.latest')
๐ฆ nova flavor-delete
usage: nova flavor-delete <flavor>
Deletes one specific flavor. Gone, periodt ๐
Positional arguments:
<flavor>โ the name or ID of the flavor to delete.
๐ธ nova flavor-key
usage: nova flavor-key <flavor> <action> <key=value> [<key=value> ...]
Sets or unsets the extra_spec for a flavor โ iykyk, it's the flavor's little extras drawer ๐
Positional arguments:
<flavor>โ name or ID of the flavor.<action>โ the action:'set'or'unset'.<key=value>โ the extra_specs to set/unset (only the key is necessary on unset).
๐ nova flavor-list
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>]
Prints a list of the available 'flavors' (aka sizes of servers). Your whole menu of vibes, lowkey ๐
Optional arguments:
--extra-specsโ also grabs the extra-specs of each flavor.--allโ displays all flavors (Admin only). Yeah, admin gate ๐--marker <marker>โ the last flavor ID of the previous page; shows you the list of flavors after"marker".--min-disk <min-disk>โ filters the flavors by a minimum disk space, in GiB.--min-ram <min-ram>โ filters the flavors by a minimum RAM, in MiB.--limit <limit>โ maximum number of flavors to display. Iflimitis bigger than the'CONF.api.max_limit'option of Nova API, that'CONF.api.max_limit'limit gets used instead. The cap stays capping ๐งข--sort-key <sort-key>โ the flavors list sort key.--sort-dir <sort-dir>โ the flavors list sort direction.
โญ nova flavor-show
usage: nova flavor-show <flavor>
Shows you all the deets about the flavor you picked. It's giving full profile reveal โจ
Positional arguments:
<flavor>โ name or ID of the flavor.
๐ nova flavor-update
usage: nova flavor-update <flavor> <description>
Updates the description on 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>โ name or ID of the flavor to update.<description>โ a free form description of the flavor. Limited to 65535 characters in length, and only printable characters are allowed.
๐ฅ nova force-delete
usage: nova force-delete <server>
Force deletes a server. No gentle goodbyes, just yeet ๐
Positional arguments:
<server>โ name or ID of server.
๐ซถ nova get-mks-console
usage: nova get-mks-console <server>
Gets you 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>โ name or ID of server.
๐ nova get-password
usage: nova get-password <server> [<private-key>]
Gets the admin password for a server. Heads up bestie, this operation calls the metadata service to query metadata info โ it does not read password information from the server itself ๐
Positional arguments:
<server>โ name or ID of server.<private-key>โ private key (used locally to decrypt the password) (Optional). When you specify it, the command displays the clear (decrypted) VM password. When you don't, the ciphered VM password is what you get.
๐ nova get-rdp-console
usage: nova get-rdp-console <server> <console-type>
Gets you an rdp console to a server.
Positional arguments:
<server>โ name or ID of server.<console-type>โ type of rdp console ("rdp-html5").
๐ง nova get-serial-console
usage: nova get-serial-console [--console-type CONSOLE_TYPE] <server>
Gets you a serial console to a server.
Positional arguments:
<server>โ name or ID of server.
Optional arguments:
--console-type CONSOLE_TYPEโ type of serial console, default="serial".
๐ฆ nova get-spice-console
usage: nova get-spice-console <server> <console-type>
Gets you a spice console to a server.
Positional arguments:
<server>โ name or ID of server.<console-type>โ type of spice console ("spice-html5").
๐ธ nova get-vnc-console
usage: nova get-vnc-console <server> <console-type>
Gets you a vnc console to a server.
Positional arguments:
<server>โ name or ID of server.<console-type>โ type of vnc console ("novnc"or"xvpvnc").
๐ nova host-evacuate
usage: nova host-evacuate [--target_host <target_host>] [--force] [--strict]
<host>
Evacuates all the instances off a failed host. Everybody out, immediately ๐โโ๏ธ๐จ
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>โ name of the target host. If no host is specified, the scheduler will select a target.--forceโ forces 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โ evacuates the host with an exact hypervisor hostname match.
๐
nova host-evacuate-live
usage: nova host-evacuate-live [--target-host <target_host>] [--block-migrate]
[--max-servers <max_servers>] [--force]
[--strict]
<host>
Live migrates all the instances off the specified host onto other available hosts. No downtime energy โจ
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>โ name of target host. If no host is specified, the scheduler will choose one.--block-migrateโ enables block migration. (Default=auto) (Supported by API versions'2.25'-'2.latest')--max-servers <max_servers>โ maximum number of servers to live migrate simultaneously.--forceโ forces 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โ live evacuates the host with an exact hypervisor hostname match.
๐ nova host-meta
usage: nova host-meta [--strict] <host> <action> <key=value> [<key=value> ...]
Sets or deletes metadata on all the instances of a host. Every single one, bestie ๐ซถ
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>โ the actions:'set'or'delete'.<key=value>โ the metadata to set or delete (only the key is necessary on delete).
Optional arguments:
--strictโ sets host-meta to the hypervisor with an exact hostname match.
๐ nova host-servers-migrate
usage: nova host-servers-migrate [--strict] <host>
Cold migrates all the instances off the specified host onto other available hosts. Chill migration, no live drama ๐ง
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โ migrates the host with an exact hypervisor hostname match.
โญ nova hypervisor-list
usage: nova hypervisor-list [--matching <hostname>] [--marker <marker>]
[--limit <limit>]
Lists 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>โ lists hypervisors matching the given<hostname>. Ifmatchingis used, thelimitandmarkeroptions will be ignored.--marker <marker>โ the last hypervisor of the previous page; shows the list of hypervisors after"marker". (Supported by API versions'2.33'-'2.latest')--limit <limit>โ maximum number of hypervisors to display. Iflimitis bigger than the'CONF.api.max_limit'option of Nova API, that'CONF.api.max_limit'limit gets used instead. (Supported by API versions'2.33'-'2.latest')
๐ฆ nova hypervisor-servers
usage: nova hypervisor-servers <hostname>
Lists the servers that belong to specific hypervisors. Who lives where, basically ๐
Positional arguments:
<hostname>โ the hypervisor hostname (or pattern) to search for.
๐ธ nova hypervisor-show ๐ธ
usage: nova hypervisor-show [--wrap <integer>] <hypervisor>
Okay so this one shows you all the deets of one specific hypervisor. Like the full profile page, bestie ๐
Positional arguments:
<hypervisor>โ Name or ID of the hypervisor. Heads up tho: starting with microversion2.53the ID must be a UUID. no cap, they tightened that up โจ
Optional arguments:
--wrap <integer>โ Wrap the output to a specified length. Default is40, or0to disable. (So if the output is giving long unbroken lines, you know what to do ๐)
๐ฆ nova hypervisor-stats ๐ฆ
usage: nova hypervisor-stats
Gets hypervisor statistics across all the compute nodes. Global vibes only, no positional args needed. Slay, zero effort ๐ซถ
โญ nova hypervisor-uptime โญ
usage: nova hypervisor-uptime <hypervisor>
Displays the uptime of the specified hypervisor. Like "how long has this thing been awake" energy ๐ญ
Positional arguments:
<hypervisor>โ Name or ID of the hypervisor. Starting with microversion2.53the ID must be a UUID. Same rule, every time ๐
๐ nova image-create ๐
usage: nova image-create [--metadata <key=value>] [--show] [--poll]
<server> <name>
Creates a brand new image by taking a snapshot of a running server. It's giving "photoshoot but for your instance" ๐ธ
Positional arguments:
<server>โ Name or ID of server.<name>โ Name of snapshot.
Optional arguments:
--metadata <key=value>โ Record arbitrary key/value metadata to/meta_data.jsonon the metadata server. Can be specified multiple times. (Yes, stack 'em up ๐)--showโ Print image info.--pollโ Report the snapshot progress and poll until image creation is complete. (Impatient bestie mode: it'll keep you posted until it's done โจ)
๐ nova instance-action ๐
usage: nova instance-action <server> <request_id>
Shows one single action. Just the one. Curated. ๐
Positional arguments:
<server>โ Name or UUID of the server to show actions for. Only UUID can be used to show actions for a deleted server. (Supported by API versions'2.21'-'2.latest')<request_id>โ Request ID of the action to get.
๐ nova instance-action-list ๐
usage: nova instance-action-list [--marker <marker>] [--limit <limit>]
[--changes-since <changes_since>]
[--changes-before <changes_before>]
<server>
Lists all the actions on a server. The whole lore drop, fr fr ๐
Positional arguments:
<server>โ Name or UUID of the server to list actions for. Only UUID can be used to list actions on a deleted server. (Supported by API versions'2.21'-'2.latest')
Optional arguments:
--marker <marker>โ The last instance action of the previous page; displays list of actions after "marker". (Supported by API versions'2.58'-'2.latest')--limit <limit>โ Maximum number of instance actions to display. Note that there is a configurable max limit on the server, and the limit that is used will be the minimum of what is requested here and what is configured in the server. (Supported by API versions'2.58'-'2.latest') โ so you can ask for a million but the server's lowkey gonna cap you ๐--changes-since <changes_since>โ List only instance actions changed later or equal to a certain point of time. The provided time should be an ISO 8061 formatted time. e.g.2016-03-04T06:27:59Z. (Supported by API versions'2.58'-'2.latest')--changes-before <changes_before>โ List only instance actions changed earlier or equal to a certain point of time. The provided time should be an ISO 8061 formatted time. e.g.2016-03-04T06:27:59Z. (Supported by API versions'2.66'-'2.latest')
๐ง nova instance-usage-audit-log ๐ง
usage: nova instance-usage-audit-log [--before <before>]
List/Get server usage audits. Receipts, basically ๐งพ
Optional arguments:
--before <before>โ Filters the response by the date and time before which to list usage audits. The date and time stamp format is as follows:CCYY-MM-DD hh:mm:ss.NNNNNNex2015-08-27 09:49:58or2015-08-27 09:49:58.123456. Get the format exactly right or it's not gonna slay ๐ค
๐ฅ nova interface-attach ๐ฅ
usage: nova interface-attach [--port-id <port_id>] [--net-id <net_id>]
[--fixed-ip <fixed_ip>] [--tag <tag>]
<server>
Attaches a network interface to a server. Plug it in, plug it in ๐
Positional arguments:
<server>โ Name or ID of server.
Optional arguments:
--port-id <port_id>โ Port ID.--net-id <net_id>โ Network ID--fixed-ip <fixed_ip>โ Requested fixed IP.--tag <tag>โ Tag for the attached interface. (Supported by API versions'2.49'-'2.latest')
๐ nova interface-detach ๐
usage: nova interface-detach <server> <port_id>
Detaches a network interface from a server. Unplug. Bye bestie ๐
Positional arguments:
<server>โ Name or ID of server.<port_id>โ Port ID.
๐ธ nova interface-list ๐ธ
usage: nova interface-list <server>
Lists the interfaces attached to a server. Roll call ๐
Positional arguments:
<server>โ Name or ID of server.
๐ nova keypair-add ๐
usage: nova keypair-add [--pub-key <pub-key>] [--key-type <key-type>]
[--user <user-id>]
<name>
Creates a new key pair for use with servers. Keys = access, and access is main character energy ๐
Positional arguments:
<name>โ Name of key.
Optional arguments:
--pub-key <pub-key>โ Path to a public ssh key.--key-type <key-type>โ Keypair type. Can besshorx509. (Supported by API versions'2.2'-'2.latest')--user <user-id>โ ID of user to whom to add key-pair (Admin only). (Supported by API versions'2.10'-'2.latest')
๐ฆ nova keypair-delete ๐ฆ
usage: nova keypair-delete [--user <user-id>] <name>
Deletes the 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]
Gone. Deleted. Not me being dramatic, that's literally what it does ๐
Positional arguments:
<name>โ Keypair name to delete.
Optional arguments:
--user <user-id>โ ID of key-pair owner (Admin only).
โจ nova keypair-list โจ
usage: nova keypair-list [--user <user-id>] [--marker <marker>]
[--limit <limit>]
Prints 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>โ List key-pairs of specified user ID (Admin only).--marker <marker>โ The last keypair of the previous page; displays list of keypairs after "marker".--limit <limit>โ Maximum number of keypairs to display. If limit is bigger than'CONF.api.max_limit'option of Nova API, limit'CONF.api.max_limit'will be used instead. (Yep, the server wins that argument ๐ซ )
๐ nova keypair-show ๐
usage: nova keypair-show [--user <user-id>] <keypair>
Shows 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>โ Name of keypair.
Optional arguments:
--user <user-id>โ ID of key-pair owner (Admin only).
๐
nova limits ๐
usage: nova limits [--tenant [<tenant>]] [--reserved]
Prints rate and absolute limits. The "know your ceiling" command ๐ง
Optional arguments:
--tenant [<tenant>]โ Display information from single tenant (Admin only).--reservedโ Include reservations count.
๐ nova list ๐
usage: nova list [--reservation-id <reservation-id>] [--ip <ip-regexp>]
[--ip6 <ip6-regexp>] [--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>] [--availability-zone <availability_zone>]
[--key-name <key_name>] [--[no-]config-drive]
[--progress <progress>] [--vm-state <vm_state>]
[--task-state <task_state>] [--power-state <power_state>]
[--changes-since <changes_since>]
[--changes-before <changes_before>]
[--tags <tags>] [--tags-any <tags-any>]
[--not-tags <not-tags>] [--not-tags-any <not-tags-any>]
[--locked]
Lists servers. The big one. The main event. The whole group chat roster ๐โจ
Ngl, important note: 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. So if the list looks sus and short, that might be why ๐ญ
Optional arguments:
--reservation-id <reservation-id>โ Only return servers that match reservation-id.--ip <ip-regexp>โ Search with regular expression match by IP address.--ip6 <ip6-regexp>โ Search with regular expression match by IPv6 address.--name <name-regexp>โ Search with regular expression match by name.--status <status>โ Search by server status.--flavor <flavor>โ Search by flavor name or ID.--image <image>โ Search by image name or ID.--host <hostname>โ Search servers by hostname to which they are assigned (Admin only).--all-tenants [<0|1>]โ Display information from all tenants (Admin only).--tenant [<tenant>]โ Display information from single tenant (Admin only).--user [<user>]โ Display information from single user (Admin only until microversion2.82).--deletedโ Only display deleted servers (Admin only).--fields <fields>โ Comma-separated list of fields to display. Use the show command to see which fields are available.--minimalโ Get only UUID and name. Bare minimum, honestly kinda iconic ๐--sort <key>[:<direction>]โ Comma-separated list of sort keys and directions in the form of<key>[:<asc|desc>]. The direction defaults to descending if not specified.--marker <marker>โ The last server UUID of the previous page; displays list of servers after "marker".--limit <limit>โ Maximum number of servers to display. If limit ==-1, all servers will be displayed. If limit is bigger than'CONF.api.max_limit'option of Nova API, limit'CONF.api.max_limit'will be used instead.--availability-zone <availability_zone>โ Display servers based on their availability zone (Admin only until microversion2.82).--key-name <key_name>โ Display servers based on their keypair name (Admin only until microversion2.82).--config-driveโ Display servers that have a config drive attached. It is mutually exclusive with'--no-config-drive'. (Admin only until microversion2.82).--no-config-driveโ shows you only the servers with no config drive attached. It's mutually exclusive with--config-drive, so pick a lane bestie, you can't have both ๐ (Admin only until microversion 2.82).--progress <progress>โ filters servers by theirprogressvalue. (Admin only until microversion 2.82).--vm-state <vm_state>โ filters servers by theirvm_statevalue. (Admin only until microversion 2.82).--task-state <task_state>โ filters servers by theirtask_statevalue. (Admin only until microversion 2.82).--power-state <power_state>โ filters servers by theirpower_statevalue. (Admin only until microversion 2.82).--changes-since <changes_since>โ lists only servers that changed later than or equal to a certain point in time. That time has to be an ISO 8061 formatted time, e.g.2016-03-04T06:27:59Zโจ--changes-before <changes_before>โ the flip side: only servers that changed earlier than or equal to a given point in time. Also an ISO 8061 formatted time, e.g.2016-03-05T06:27:59Z. (Supported by API versions2.66-2.latest)--tags <tags>โ every single tag you hand over must be present for a server to make the list. The boolean energy here is literallyt1 AND t2. Separate your tags with commas:--tags <tag1,tag2>. (Supported by API versions2.26-2.latest)--tags-any <tags-any>โ if just one of the given tags is present, that server gets included. Boolean expression:t1 OR t2. Commas between tags:--tags-any <tag1,tag2>. (Supported by API versions2.26-2.latest)--not-tags <not-tags>โ only the servers that have none of the given tags show up. Boolean expression:NOT(t1 AND t2). Commas, again:--not-tags <tag1,tag2>. (Supported by API versions2.26-2.latest)--not-tags-any <not-tags-any>โ only servers that don't have at least one of the given tags make the cut. Boolean expression:NOT(t1 OR t2). You know the drill, commas:--not-tags-any <tag1,tag2>. (Supported by API versions2.26-2.latest)--locked <locked>โ filters servers by theirlockedvalue. You must give it a value, no vibes-only mode: eg.truelists only locked servers andfalselists only unlocked ones. (Supported by API versions2.73-2.latest)
๐ nova list-secgroup ๐
usage: nova list-secgroup <server>
Lists the Security Group(s) of a server. like, who's in the group chat ๐ซถ
Positional arguments
<server>โ Name or ID of server.
๐ฆ nova live-migration ๐ฆ
usage: nova live-migration [--block-migrate] [--force] <server> [<host>]
Scoots a running server over to a new machine. no downtime era โจ
Positional arguments
<server>โ Name or ID of server.<host>โ Destination host name. If you don't specify a host, the scheduler will choose one for you (it's giving delegating, and honestly? iconic).
Optional arguments
--block-migrateโ True in case of block_migration. (Default=auto:live_migration) (Supported by API versions2.25-2.latest)--forceโ forces the live-migration by not verifying the provided destination host with the scheduler. (Supported by API versions2.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. like, the safe route exists for a reason bestie ๐ญ
๐ธ nova live-migration-abort ๐ธ
usage: nova live-migration-abort <server> <migration>
Aborts 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>โ Name or ID of server.<migration>โ ID of migration.
๐ nova live-migration-force-complete ๐
usage: nova live-migration-force-complete <server> <migration>
Forces an 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>โ Name or ID of server.<migration>โ ID of migration.
๐ nova lock ๐
usage: nova lock [--reason <reason>] <server>
Locks a server. A normal (non-admin) user will not be able to execute actions on a locked server. it's giving "you're on read-only" energy ๐
Positional arguments
<server>โ Name or ID of server.
Optional arguments
--reason <reason>โ Reason for locking the server. (Supported by API versions2.73-2.latest)
๐ nova meta ๐
usage: nova meta <server> <action> <key=value> [<key=value> ...]
Sets or deletes metadata on a server.
Positional arguments
<server>โ Name or ID of server.<action>โ Actions:setordelete.<key=value>โ Metadata to set or delete (only key is necessary on delete).
โ๏ธ nova migrate โ๏ธ
usage: nova migrate [--host <host>] [--poll] <server>
Migrates a server. The new host will be selected by the scheduler.
Positional arguments
<server>โ Name or ID of server.
Optional arguments
--host <host>โ Destination host name. (Supported by API versions2.56-2.latest)--pollโ reports the server migration progress until it completes. sit there and watch it cook ๐ฅ
๐ nova migration-list ๐
usage: nova migration-list [--instance-uuid <instance_uuid>]
[--host <host>]
[--status <status>]
[--migration-type <migration_type>]
[--source-compute <source_compute>]
[--marker <marker>]
[--limit <limit>]
[--changes-since <changes_since>]
[--changes-before <changes_before>]
[--project-id <project_id>]
[--user-id <user_id>]
Prints a list of migrations. the receipts of where everything's been ๐
Examples
To see the list of evacuation operations from a compute service host:
nova migration-list --migration-type evacuation --source-compute host.foo.bar
Optional arguments
--instance-uuid <instance_uuid>โ fetches migrations for the given instance.--host <host>โ fetches migrations for the given source or destination host.--status <status>โ fetches migrations for the given status.--migration-type <migration_type>โ filters migrations by type. Valid values are:evacuationlive-migrationmigration
NOTE: this is a cold migration.
resize
--source-compute <source_compute>โ filters migrations by source compute host name.--marker <marker>โ the last migration of the previous page; displays the list of migrations after `marker`. Note that the marker is the migration UUID. (Supported by API versions2.59-2.latest)--limit <limit>โ maximum number of migrations to display. Note that there is a configurable max limit on the server, and the limit that's used will be the minimum of what you request here and what's configured in the server. (Supported by API versions2.59-2.latest)--changes-since <changes_since>โ lists only migrations changed later than or equal to a certain point in time. The provided time should be an ISO 8061 formatted time. e.g.2016-03-04T06:27:59Z. (Supported by API versions2.59-2.latest)--changes-before <changes_before>โ lists only migrations changed earlier than or equal to a certain point in time. The provided time should be an ISO 8061 formatted time. e.g.2016-03-04T06:27:59Z. (Supported by API versions2.66-2.latest)--project-id <project_id>โ filters the migrations by the given project ID. (Supported by API versions2.80-2.latest)--user-id <user_id>โ filters the migrations by the given user ID. (Supported by API versions2.80-2.latest)
๐ง nova pause ๐ง
usage: nova pause <server>
Pauses a server. it's not gone, it's just resting โจ
Positional arguments
<server>โ Name or ID of server.
๐ nova quota-class-show ๐
usage: nova quota-class-show <class>
Lists the quotas for a quota class.
Positional arguments
<class>โ Name of quota class to list the quotas for.
๐ nova quota-class-update ๐
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>
Updates 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>โ Name of quota class to set the quotas for.
Optional arguments
--instances <instances>โ new value for the "instances" quota.--cores <cores>โ new value for the "cores" quota.--ram <ram>โ new value for the "ram" quota.--metadata-items <metadata-items>โ new value for the "metadata-items" quota.--key-pairs <key-pairs>โ new value for the "key-pairs" quota.--server-groups <server-groups>โ new value for the "server-groups" quota.--server-group-members <server-group-members>โ new value for the "server-group-members" quota.
โญ nova quota-defaults โญ
usage: nova quota-defaults [--tenant <tenant-id>]
Lists the default quotas for a tenant. the factory settings, basically ๐
Optional arguments
--tenant <tenant-id>โ ID of tenant to list the default quotas for.
๐ซถ nova quota-delete ๐ซถ
usage: nova quota-delete --tenant <tenant-id> [--user <user-id>]
Deletes quota for a tenant/user so their quota will revert back to default. yes, it's a reset, and yes, that capital R "Revert" is canon ๐
Optional arguments
--tenant <tenant-id>โ ID of tenant to delete quota for. ๐๏ธ--user <user-id>โ ID of user to delete quota for. ๐๏ธ
๐ nova quota-show
usage: nova quota-show [--tenant <tenant-id>] [--user <user-id>] [--detail]
Lists the quotas for a tenant/user โ like a lil receipt for your limits, bestie. ๐งพโจ
๐ Optional arguments
--tenant <tenant-id>โ ID of tenant to list the quotas for.--user <user-id>โ ID of user to list the quotas for.--detailโ Show detailed info (limit,reserved,in-use). ๐
๐ธ nova quota-update
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>
Updates the quotas for a tenant/user. Supported by API versions '2.0' - '2.latest' โ and fr fr, if you need the version-specific help, the hint is right here:
[hint: use '--os-compute-api-version' flag to show help message for proper version]
๐ Positional arguments
<tenant-id>โ ID of tenant to set the quotas for.
๐ Optional arguments
--user <user-id>โ ID of user to set the quotas for.--instances <instances>โ New value for the"instances"quota.--cores <cores>โ New value for the"cores"quota.--ram <ram>โ New value for the"ram"quota.--metadata-items <metadata-items>โ New value for the"metadata-items"quota.--key-pairs <key-pairs>โ New value for the"key-pairs"quota.--server-groups <server-groups>โ New value for the"server-groups"quota.--server-group-members <server-group-members>โ New value for the"server-group-members"quota.--forceโ Whether force update the quota even if the already used and reserved exceeds the new quota. ๐ค
๐ nova reboot
usage: nova reboot [--hard] [--poll] <server> [<server> ...]
Reboots a server. Like hitting restart on your fave game, but make it cloud. ๐ฎโจ
๐ Positional arguments
<server>โ Name or ID of server(s).
๐ Optional arguments
--hardโ Perform a hard reboot (instead of a soft one). Note: Ironic does not currently support soft reboot; consequently, bare metal nodes will always do a hard reboot, regardless of the use of this option. ๐--pollโ Poll until reboot is complete. โณ
๐ฆ nova rebuild
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]
[--hostname <hostname>]
<server> <image>
Shutdown, re-image, and re-boot a server โ the full glow-up pipeline, no cap. ๐ ๐ฅ
๐ Positional arguments
<server>โ Name or ID of server.<image>โ Name or ID of new image.
๐ Optional arguments
--rebuild-password <rebuild-password>โ Set the provided admin password on the rebuilt server. ๐--pollโ Report the server rebuild progress until it completes. โณ--minimalโ Skips flavor/image lookups when showing servers. ๐ง--preserve-ephemeralโ Preserve the default ephemeral storage partition on rebuild. ๐พ--name <name>โ Name for the new server. โจ--description <description>โ New description for the server. (Supported by API versions'2.19'-'2.latest')--meta <key=value>โ Record arbitrary key/value metadata to/meta_data.jsonon the metadata server. Can be specified multiple times. ๐ท๏ธ--key-name <key-name>โ Keypair name to set in the server. Cannot be specified with the'--key-unset'option. (Supported by API versions'2.54'-'2.latest')--key-unsetโ Unset keypair in the server. Cannot be specified with the'--key-name'option. (Supported by API versions'2.54'-'2.latest')--user-data <user-data>โ User data file to pass to be exposed by the metadata server. (Supported by API versions'2.57'-'2.latest')--user-data-unsetโ Unsetuser_datain the server. Cannot be specified with the'--user-data'option. (Supported by API versions'2.57'-'2.latest')--trusted-image-certificate-id <trusted-image-certificate-id>โ Trusted image certificate IDs used to validate certificates during the image signature verification process. Defaults toenv[OS_TRUSTED_IMAGE_CERTIFICATE_IDS]. May be specified multiple times to pass multiple trusted image certificate IDs. (Supported by API versions'2.63'-'2.latest')--trusted-image-certificates-unsetโ Unsettrusted_image_certificatesin the server. Cannot be specified with the--trusted-image-certificate-idoption. (Supported by API versions'2.63'-'2.latest')--hostname <hostname>โ New hostname for the instance. This only updates the hostname stored in the metadata server: a utility running on the guest is required to propagate these changes to the guest. (Supported by API versions'2.90'-'2.latest')
๐ nova refresh-network
usage: nova refresh-network <server>
Refresh server network information. Itโs giving โclear the cache and try again.โ ๐งผโจ
๐ Positional arguments
<server>โ Name or ID of a server for which the network cache should be refreshed from neutron (Admin only).
๐ nova remove-secgroup
usage: nova remove-secgroup <server> <secgroup>
Remove a Security Group from a server. Bye-bye, secgroup bestie. ๐๐
๐ Positional arguments
<server>โ Name or ID of server.<secgroup>โ Name of Security Group.
๐ง nova rescue
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. Itโs the Unix equivalent of a rescue mission, lowkey iconic. ๐โจ
๐ Positional arguments
<server>โ Name or ID of server.
๐ Optional arguments
--password <password>โ The admin password to be set in the rescue environment. ๐--image <image>โ The image to rescue with. ๐ผ๏ธ
๐ nova reset-network
usage: nova reset-network <server>
Reset network of a server. Networking said โnew phone, who dis?โ ๐ฑ๐
๐ Positional arguments
<server>โ Name or ID of server.
โญ nova reset-state
usage: nova reset-state [--all-tenants] [--active] <server> [<server> ...]
Reset the state of a server. Sometimes your server is just in its feelings and needs a vibe reset. ๐ญโจ
๐ Positional arguments
<server>โ Name or ID of server(s).
๐ Optional arguments
--all-tenantsโ Reset state server(s) in another tenant by name (Admin only). ๐--activeโ Request the server be reset to"active"state instead of"error"state (the default). ๐
๐ฆ nova resize
usage: nova resize [--poll] <server> <flavor>
Resize a server. Itโs the โnew year, new meโ of compute. ๐ โจ
๐ Positional arguments
<server>โ Name or ID of server.<flavor>โ Name or ID of new flavor.
๐ Optional arguments
--pollโ Report the server resize progress until it completes. โณ
โ
nova resize-confirm
usage: nova resize-confirm <server>
Confirm a previous resize. Lock it in, bestie. ๐๐
๐ Positional arguments
<server>โ Name or ID of server.
โฉ๏ธ nova resize-revert
usage: nova resize-revert <server>
Revert a previous resize (and return to the previous VM). Ctrl+Z energy, but make it cloud. ๐ญ๐ซถ
๐ Positional arguments
<server>โ Name or ID of server.
๐ธ nova restore
usage: nova restore <server>
Restore a soft-deleted server. Not me bringing you back from the deleted folder. ๐๐
๐ Positional arguments
<server>โ Name or ID of server.
โถ๏ธ nova resume
usage: nova resume <server>
Resume a server. Wake up, sleepy icon. โฐโจ
๐ Positional arguments
<server>โ Name or ID of server.
๐ nova server-group-create
usage: nova server-group-create [--rules <key=value>] <name> <policy>
Create a new server group with the specified details. Squad goals, but for compute. ๐ซถโจ
๐ Positional arguments
<name>โ Server group name.<policy>โ Policy for the server groups.
๐ Optional arguments
--ruleโ Policy rules for the server groups. (Supported by API versions'2.64'-'2.latest'๏ผ. Currently, only themax_server_per_hostrule is supported for the anti-affinity policy. Themax_server_per_hostrule 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. ๐
๐๏ธ nova server-group-delete
usage: nova server-group-delete <id> [<id> ...]
Delete specific server group(s). Itโs giving cleanup era. ๐งนโจ
๐ Positional arguments
<id>โ Unique ID(s) of the server group to delete.
๐ nova server-group-get
usage: nova server-group-get <id>
Get a specific server group. Stalk the group, but consensually. ๐๐
๐ Positional arguments
<id>โ Unique ID of the server group to get.
๐ nova server-group-list
usage: nova server-group-list [--limit <limit>] [--offset <offset>]
[--all-projects]
Print a list of all server groups. A whole lineup of squads. ๐โจ
๐ Optional arguments
--limit <limit>โ Maximum number of server groups to display. If limit is bigger than'CONF.api.max_limit'option of Nova API, limit'CONF.api.max_limit'will be used instead. ๐--offset <offset>โ The offset of groups list to display; use with limit to return a slice of server groups. ๐ฐ--all-projectsโ Display server groups from all projects (Admin only). ๐
๐ nova server-migration-list
usage: nova server-migration-list <server>
Get the migrations list of specified server. Supported by API versions '2.23' - '2.latest' โ and yes, the hint applies here too:
[hint: use '--os-compute-api-version' flag to show help message for proper version]
New in version 3.3.0. ๐
๐ Positional arguments
<server>โ Name or ID of server.
๐ฐ๏ธ nova server-migration-show
usage: nova server-migration-show <server> <migration>
Get the migration of specified server. Supported by API versions '2.23' - '2.latest' โ same hint, same energy:
[hint: use '--os-compute-api-version' flag to show help message for proper version]
New in version 3.3.0. ๐
๐ Positional arguments
<server>โ Name or ID of server.<migration>โ ID of migration.
๐ท๏ธ nova server-tag-add
usage: nova server-tag-add <server> <tag> [<tag> ...]
Add one or more tags to a server โ yes, plural, itโs giving sticker-pack energy. (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>โ Name or ID of server.<tag>โ Tag(s) to add.
๐ท๏ธ nova server-tag-delete
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>โ Name or ID of server.<tag>โ Tag(s) to delete.
๐งน nova server-tag-delete-all
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>โ Name or ID of server.
๐ nova server-tag-list
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>โ Name or ID of server.
๐ nova server-tag-set
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>โ Name or ID of server.<tags>โ Tag(s) to set.
๐ง nova server-topology
usage: nova server-topology <server>
Retrieve server NUMA topology information. Host specific fields are only visible to users with the administrative role. (Supported by API versions '2.78' - '2.latest')
โจ New in version 15.1.0.
๐ Positional arguments
<server>โ Name or ID of server.
๐ nova service-delete
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>โ ID of service as a UUID. (Supported by API versions'2.53'-'2.latest')
โธ๏ธ nova service-disable
usage: nova service-disable [--reason <reason>] <id>
Disable the service.
๐ Positional arguments
<id>โ ID of the service as a UUID. (Supported by API versions'2.53'-'2.latest')
๐๏ธ Optional arguments
--reason <reason>โ Reason for disabling the service.
โถ๏ธ nova service-enable
usage: nova service-enable <id>
Enable the service.
๐ Positional arguments
<id>โ ID of the service as a UUID. (Supported by API versions'2.53'-'2.latest')
๐ซก nova service-force-down
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>โ ID of the service as a UUID. (Supported by API versions'2.53'-'2.latest')
๐๏ธ Optional arguments
--unsetโ Unset the forced_down state of the service.
๐ก nova service-list
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>โ Name of host.--binary <binary>โ Service binary.
๐ nova set-password
usage: nova set-password <server>
Change the admin password for a server.
๐ Positional arguments
<server>โ Name or ID of server.
๐ nova shelve
usage: nova shelve <server>
Shelve a server.
๐ Positional arguments
<server>โ Name or ID of server.
๐ฆ nova shelve-offload
usage: nova shelve-offload <server>
Remove a shelved server from the compute node.
๐ Positional arguments
<server>โ Name or ID of server.
๐ nova show
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>โ Name or ID of server.
๐๏ธ Optional arguments
--minimalโ Skips flavor/image lookups when showing servers.--wrap <integer>โ Wrap the output to a specified length, or0to disable.
๐ง nova ssh
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>โ Name or ID of server.
๐๏ธ Optional arguments
--port PORTโ Optional flag to indicate which port to use for ssh. (Default=22)--address-type ADDRESS_TYPEโ Optional flag to indicate which IP type to use. Possible values includesfixedandfloating(the Default).--network <network>โ Network to use for the ssh.--ipv6โ Optional flag to indicate whether to use an IPv6 address attached to a server. (Defaults to IPv4 address)--login <login>โ Login to use.-i IDENTITY, --identity IDENTITYโ Private key file, same as the-ioption to the ssh command.--extra-opts EXTRAโ Extra options to pass to ssh. see:man ssh.
๐ nova start
usage: nova start [--all-tenants] <server> [<server> ...]
Start the server(s).
๐ Positional arguments
<server>โ Name or ID of server(s).
๐๏ธ Optional arguments
--all-tenantsโ Start server(s) in another tenant by name (Admin only).
๐ nova stop
usage: nova stop [--all-tenants] <server> [<server> ...]
Stop the server(s).
๐ Positional arguments
<server>โ Name or ID of server(s).
๐๏ธ Optional arguments
--all-tenantsโ Stop server(s) in another tenant by name (Admin only).
๐ด nova suspend
usage: nova suspend <server>
Suspend a server.
๐ Positional arguments
<server>โ Name or ID of server.
๐ฅ nova trigger-crash-dump
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>โ Name or ID of server.
๐ nova unlock
usage: nova unlock <server>
Unlock a server.
๐ Positional arguments
<server>โ Name or ID of server.
โฏ๏ธ nova unpause
usage: nova unpause <server>
Unpause a server.
๐ Positional arguments
<server>โ Name or ID of server.
๐ฉน nova unrescue
usage: nova unrescue <server>
Restart the server from normal boot disk again.
๐ Positional arguments
<server>โ Name or ID of server.
๐ค๏ธ nova unshelve
usage: nova unshelve [--availability-zone <availability_zone>] <server>
Unshelve a server.
๐ Positional arguments
<server>โ Name or ID of server.
๐๏ธ Optional arguments
--availability-zone <availability_zone>โ Name of the availability zone in which to unshelve aSHELVED_OFFLOADEDserver. (Supported by API versions'2.77'-'2.latest')
โ๏ธ nova update
usage: nova update [--name <name>] [--description <description>]
[--hostname <hostname>]
<server>
Update attributes of a server.
๐ Positional arguments
<server>โ Name (old name) or ID of server.
๐๏ธ Optional arguments
--name <name>โ New name for the server.--description <description>โ New description for the server. If it equals to empty string (i.g.""), the server description will be removed. (Supported by API versions'2.19'-'2.latest')--hostname <hostname>โ New hostname for the instance. This only updates the hostname stored in the metadata server: a utility running on the guest is required to propagate these changes to the guest. (Supported by API versions'2.90'-'2.latest')
๐ nova usage
usage: nova usage [--start <start>] [--end <end>] [--tenant <tenant-id>]
Show usage data for a single tenant.
๐๏ธ Optional arguments
--start <start>โ Usage range start date ex2012-01-20. (default: 4 weeks ago)--end <end>โ Usage range end date, ex2012-01-20. (default: tomorrow)--tenant <tenant-id>โ UUID of tenant to get usage for.
๐๏ธ nova usage-list
usage: nova usage-list [--start <start>] [--end <end>]
List usage data for all tenants.
๐๏ธ Optional arguments
--start <start>โ Usage range start date ex2012-01-20. (default: 4 weeks ago)--end <end>โ Usage range end date, ex2012-01-20. (default: tomorrow)
๐งพ nova version-list
usage: nova version-list
List all API versions.
๐ nova volume-attach
usage: nova volume-attach [--delete-on-termination] [--tag <tag>]
<server> <volume> [<device>]
Attach a volume to a server.
๐ Positional arguments
<server>โ Name or ID of server.<volume>โ ID of the volume to attach.<device>โ Name of the device e.g./dev/vdb. Use"auto"for autoassign (if supported). Libvirt driver will use default device name.
๐๏ธ Optional arguments
--tag <tag>โ Tag for the attached volume. (Supported by API versions'2.49'-'2.latest')--delete-on-terminationโ Specify if the attached volume should be deleted when the server is destroyed. By default the attached volume is not deleted when the server is destroyed. (Supported by API versions'2.79'-'2.latest')
๐ nova volume-attachments
usage: nova volume-attachments <server>
List all the volumes attached to a server.
๐ Positional arguments
<server>โ Name or ID of server.
nova volume-detach ๐ธ
usage: nova volume-detach <server> <volume>
Okay so bestie, this one un-sticks a volume from a server. That's it, that's the whole vibe โ a clean little detach, no drama. ๐
Positional arguments:
<server>โ the name or ID of the server. Name it, ID it, whatever, just tell me who.<volume>โ the ID of the volume you want to detach. Heads up, this one's ID only โ no cute nicknames allowed. ๐
nova volume-update ๐ฆ
usage: nova volume-update [--[no-]delete-on-termination]
<server> <src_volume> <dest_volume>
This is the glow-up command โจ It updates the attachment on the server โ it migrates the data from an attached volume over to the specified available volume, and then swaps out the active attachment to point at the new volume. Literally trading up, no cap.
Positional arguments:
<server>โ name or ID of the server. Who's getting the makeover.<src_volume>โ the ID of the source (original) volume. The one being left behind ๐ญ<dest_volume>โ the ID of the destination volume. The main character now. ๐
Optional arguments:
--delete-on-terminationโ says the volume should be deleted when the server is destroyed. Mutually exclusive with--no-delete-on-terminationโ you cannot have both, pick a lane bestie. (Supported by API versions2.85โ2.latest)--no-delete-on-terminationโ says the attached volume should not be deleted when the server is destroyed. Also mutually exclusive with--delete-on-termination. (Supported by API versions2.85โ2.latest)
Heads up: those two flags are mutually exclusive, fr fr โ the tool will not let you argue both sides at once. ๐
nova bash-completion โญ
usage: nova bash-completion
Prints literally all of the commands and options to stdout, so that the nova.bash_completion script doesn't have to hard code them. It's giving "let the machine do the admin," and honestly? Iconic. ๐ซถ
โจ AUTHOR โจ
OpenStack Contributors ๐
๐ COPYRIGHT ๐
OpenStack Contributors
And that's a wrap on the whole page, bestie! ๐ This is 18.12.0, dated Mar 24, 2026, straight from the OpenStack Contributors โ go forth and nova responsibly, mwah ๐๐
๐ฆ where this page comes from
- epel 10: python3-novaclient 1:18.12.0-1.el10_3 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms