NOVA-MANAGE(1)

πŸ‘‘ NOVA-MANAGE(1)

okay bestie, welcome to nova-manage, the manual page for the nova management tool πŸ’– β€” the command-line queen that runs the admin side of OpenStack Compute. Sit down, grab a strawberry πŸ“, we're doing this.


✨ NAME ✨

nova-manage β€” the management tool for the OpenStack Compute services. it's giving "I run the cloud" energy and honestly? it does. πŸ‘‘


🌸 SYNOPSIS 🌸

nova-manage <category> [<action> [<options>...]]

πŸ¦‹ DESCRIPTION πŸ¦‹

nova-manage controls cloud computing instances by managing various admin-only aspects of Nova. so like, this is not the casual-user tool, this is the "I have root and I know things" tool. iykyk. πŸ’…

the standard pattern for executing a nova-manage command is, literally:

nova-manage <category> <command> [<args>]

run it with no arguments at all and it'll show you a list of available command categories:

nova-manage

and you can also run with a category argument like db to see a list of all commands in that category:

nova-manage db

main character energy: categories are the vibe, commands are the plot. 🌈


πŸŽ€ OPTIONS πŸŽ€

these options apply to all commands and may be given in any order, before or after commands. individual commands may provide additional options. options without an argument can be combined after a single dash. (yes, that's a real little shortcut, no cap.)

  • -h, --help β€” show a help message and exit. the classic. 🫢
  • --config-dir <dir> β€” path to a config directory to pull *.conf files from. this file set is sorted, so as to provide a predictable parse order if individual options are over-ridden. the set is parsed after the file(s) specified via previous --config-file arguments, hence over-ridden options in the directory take precedence. ⚠️ this option must be set from the command-line.
  • --config-file <path> β€” path to a config file to use. multiple config files can be specified, with values in later files taking precedence. defaults to None. this option must be set from the command-line.
  • --log-config-append <path>, --log-config <path>, --log_config <path> β€” the name of a logging configuration file. this file is appended to any existing logging configuration files. for details about logging configuration files, see the Python logging module documentation. note that when logging configuration files are used then all logging configuration is set in the configuration file and other logging configuration options are ignored (for example, --log-date-format). πŸ’€
  • --log-date-format <format> β€” defines the format string for %(asctime)s in log records. default: None. this option is ignored if --log-config-append is set.
  • --log-dir <dir>, --logdir <dir> β€” the base directory used for relative log_file paths. this option is ignored if --log-config-append is set.
  • --log-file PATH, --logfile <path> β€” name of log file to send logging output to. if no default is set, logging will go to stderr as defined by use_stderr. this option is ignored if --log-config-append is set.
  • --syslog-log-facility SYSLOG_LOG_FACILITY β€” syslog facility to receive log lines. this option is ignored if --log-config-append is set.
  • --use-journal β€” enable journald for logging. if running in a systemd environment you may wish to enable journal support. doing so will use the journal native protocol which includes structured metadata in addition to log messages. this option is ignored if --log-config-append is set.
  • --nouse-journal β€” the inverse of --use-journal. πŸ™ƒ
  • --use-json β€” use JSON formatting for logging. this option is ignored if --log-config-append is set.
  • --nouse-json β€” the inverse of --use-json.
  • --use-syslog β€” use syslog for logging. existing syslog format is DEPRECATED and will be changed later to honor RFC5424. this option is ignored if --log-config-append is set.
  • --nouse-syslog β€” the inverse of --use-syslog.
  • --watch-log-file β€” uses logging handler designed to watch file system. when log file is moved or removed this handler will open a new log file with specified path instantaneously. it makes sense only if --log-file option is specified and Linux platform is used. this option is ignored if --log-config-append is set.
  • --nowatch-log-file β€” the inverse of --watch-log-file.
  • --debug, -d β€” if enabled, the logging level will be set to DEBUG instead of the default INFO level. turn it on when you want to see everything πŸ‘€
  • --nodebug β€” the inverse of --debug.
  • --post-mortem β€” allow post-mortem debugging.
  • --nopost-mortem β€” the inverse of --post-mortem.
  • --version β€” show program's version number and exit. ✨

πŸ’œ DATABASE COMMANDS πŸ’œ

🌸 db version

nova-manage db version

print the current main database version. that's it, that's the whole thing, she's simple and she ate. πŸ’…

πŸ¦‹ db sync

nova-manage db sync [--local_cell] [VERSION]

upgrade the main database schema up to the most recent version, or up to VERSION if specified. by default, this command will also attempt to upgrade the schema for the cell0 database if it is mapped. if --local_cell is specified, then only the main database in the current cell is upgraded. the local database connection is determined by database.connection <#database.connection> in the configuration file, passed to nova-manage using the --config-file option(s).

refer to the nova-manage cells_v2 map_cell0 or nova-manage cells_v2 simple_cell_setup commands for more details on mapping the cell0 database. πŸ—ΊοΈ

⚠️ this command should be run after nova-manage api_db sync. order matters, bestie, don't skip steps.

Options

  • --local_cell β€” only sync db in the local cell: do not attempt to fan-out to all cells.

Return codes

  • 0 β€” successfully synced database schema. πŸŽ‰
  • 1 β€” failed to access cell0. 😭

Changed in version 20.0.0: (Train)

removed support for the legacy --version <version> argument.

Changed in version 24.0.0: (Xena)

migrated versioning engine to alembic. the optional VERSION argument is now expected to be an alembic-based version. sqlalchemy-migrate-based versions will be rejected. no old-school versions allowed, periodt.

πŸŽ€ db archive_deleted_rows

nova-manage db archive_deleted_rows [--max_rows <rows>] [--verbose]
  [--until-complete] [--before <date>] [--purge] [--all-cells] [--task-log]
  [--sleep]

move deleted rows from production tables to shadow tables. note that the corresponding rows in the instance_mappings, request_specs and instance_group_member tables of the API database are purged when instance records are archived and thus, api_database.connection <#api_database.connection> is required in the config file. yes, you literally need the API DB connection for this. πŸ”₯

if automating, this should be run continuously while the result is 1, stopping at 0, or use the --until-complete option.

Changed in version 24.0.0: (Xena)

added --task-log, --sleep options.

Options

  • --max_rows <rows> β€” maximum number of deleted rows to archive. defaults to 1000. note that this number does not include the corresponding rows, if any, that are removed from the API database for deleted instances.
  • --before <date> β€” archive rows that have been deleted before <date>. accepts date strings in the default format output by the date command, as well as YYYY-MM-DD[HH:mm:ss]. for example:
# Purge shadow table rows older than a specific date
nova-manage db archive_deleted_rows --before 2015-10-21
# or
nova-manage db archive_deleted_rows --before "Oct 21 2015"
# Times are also accepted
nova-manage db archive_deleted_rows --before "2015-10-21 12:00"

note that relative dates (such as yesterday) are not supported natively. the date command can be helpful here:

# Archive deleted rows more than one month old
nova-manage db archive_deleted_rows --before "$(date -d 'now - 1 month')"
  • --verbose β€” print how many rows were archived per table. numbers!! we love numbers ✨
  • --until-complete β€” run continuously until all deleted rows are archived. use --max_rows as a batch size for each iteration.
  • --purge β€” purge all data from shadow tables after archive completes. dramatic. πŸ’€
  • --all-cells β€” run command across all cells.
  • --task-log β€” also archive task_log table records. note that task_log records are never deleted, so archiving them will move all of the task_log records up to now into the shadow tables. it is recommended to also specify the --before option to avoid races for those consuming task_log record data via the /os-instance_usage_audit_log <https://docs.openstack.org/api-ref/compute/#server-usage-audit-log-os-instance-usage-audit-log> API (example: Telemetry).
  • --sleep β€” the amount of time in seconds to sleep between batches when --until-complete is used. defaults to 0.

okay that's the first chunk, there's more coming, don't go anywhere πŸ’–

✨ Return codes ✨

Ok bestie, here's the little decoder ring for what this command hands back to you:

  • 0 β€” Nothing was archived. Crickets. Zero. Nada. πŸ’€
  • 1 β€” Some number of rows were archived. We did something! πŸŽ‰
  • 2 β€” Invalid value for --max_rows.
  • 3 β€” No connection to the API database could be established using api_database.connection.
  • 4 β€” Invalid value for --before.
  • 255 β€” An unexpected error occurred. 🫠

🧹 db purge

nova-manage db purge [--all] [--before <date>] [--verbose] [--all-cells]

This one deletes rows from the shadow tables. Just yeets them. Gone. πŸ—‘οΈ

Heads up though: for --all-cells to actually work, the API database connection information must be configured. No config, no vibes.

Added in version 18.0.0: (Rocky)

Options

  • --all β€” Purge all the rows in the shadow tables. Every last one. No crumbs left. πŸ’…
  • --before <date> β€” Deletes archived rows that were deleted from Nova before <date>. It accepts date strings in the default format that the date command spits out, plus YYYY-MM-DD[HH:mm:ss]. For example:
# Purge shadow table rows deleted before specified date
nova-manage db purge --before 2015-10-21
# or
nova-manage db purge --before "Oct 21 2015"
# Times are also accepted
nova-manage db purge --before "2015-10-21 12:00"

Also important: relative dates (like yesterday) are not supported natively. That's literally why the date command exists, bestie β€” let it do the math for you:

# Archive deleted rows more than one month old
nova-manage db purge --before "$(date -d 'now - 1 month')"
  • --verbose β€” Prints out info about the purged records. So you can see exactly what got deleted. Nosy but valid.
  • --all-cells β€” Run against all cell databases. All of them. Every single one. 🌈

Return codes

  • 0 β€” Rows were deleted. Success slay. βœ…
  • 1 β€” Required arguments were not provided. You forgot something, bestie. 😭
  • 2 β€” Invalid value for --before.
  • 3 β€” Nothing was purged.
  • 4 β€” No connection to the API database could be established using api_database.connection.

πŸ”„ db online_data_migrations

nova-manage db online_data_migrations [--max-count <count>]

Performs data migration to update all live data. Live! Real-time! Main character energy. ✨

The way this works: you call this command after upgrading the database schema and the nova services on all controller nodes. If it exits with partial updates (exit status 1) you should call it again β€” even if some updates initially generated errors β€” because some updates may depend on others having already completed. It's a whole chain, iykyk.

If it exits with status 2, intervention is required to resolve the issue causing the remaining updates to fail. Like, a human has to get involved. πŸ™ˆ

It should be considered successfully completed only when the exit status is 0. Periodt.

For example:

$ nova-manage db online_data_migrations
Running batches of 50 until complete
2 rows matched query migrate_instances_add_request_spec, 0 migrated
2 rows matched query populate_queued_for_delete, 2 migrated
+---------------------------------------------+--------------+-----------+
|                  Migration                  | Total Needed | Completed |
+---------------------------------------------+--------------+-----------+
|         create_incomplete_consumers         |      0       |     0     |
|      migrate_instances_add_request_spec     |      2       |     0     |
|       migrate_quota_classes_to_api_db       |      0       |     0     |
|        migrate_quota_limits_to_api_db       |      0       |     0     |
|          migration_migrate_to_uuid          |      0       |     0     |
|     populate_missing_availability_zones     |      0       |     0     |
|          populate_queued_for_delete         |      2       |     2     |
|                populate_uuids               |      0       |     0     |
+---------------------------------------------+--------------+-----------+

So in that example up there, the migrate_instances_add_request_spec migration found two candidate records but did not need to perform any kind of data migration for either of them. And for the populate_queued_for_delete migration, two candidate records were found which did require a data migration. Since --max-count defaults to 50 and only two records were migrated with no more candidates remaining, the command completed successfully with exit code 0. Ate and left no crumbs. πŸ‘‘

Added in version 13.0.0: (Mitaka)

Options

  • --max-count <count> β€” Controls the maximum number of objects to migrate in a given call. If you don't specify it, migration will occur in batches of 50 until fully complete.

Return codes

  • 0 β€” No (further) updates are possible. Done done.
  • 1 β€” Some updates were completed successfully. Note that not all updates may have succeeded, so like... call it again. fr fr.
  • 2 β€” Some updates generated errors and no other migrations were able to take effect in the last batch attempted. 🚨 Intervention time.
  • 127 β€” Invalid input was provided.

πŸ¦‹ db ironic_compute_node_move

nova-manage db ironic_compute_node_move --ironic-node-uuid <uuid> --destination-host <host>

Moves ironic nodes β€” plus any instances attached to them β€” between nova-compute services. Relocation era. πŸ“¦

This is genuinely useful when you're migrating away from using peer_list and multiple hash ring balanced nova-compute servers, over to the new ironic shard system. Glow up.

Here's the order of operations, and yes it matters, bestie:

First you must turn off the nova-compute service that currently manages the Ironic host. Second, you mark that nova-compute service as forced down via the Nova API. Third, you make sure the new nova-compute service is correctly configured to target the appropriate shard (and optionally also a conductor group). Finally β€” and this is the fun part β€” most Ironic nodes should now move to the new service on their own, but any Ironic nodes that have instances on them will need to be manually moved to their new Ironic service by using this nova-manage command. πŸ™‹β€β™€οΈ

Added in version 28.0.0: (2023.2 Bobcat)

Options

  • --ironic-node-uuid <uuid> β€” The Ironic node uuid to be moved (which is also the Nova compute node uuid and the uuid of the corresponding resource provider in Placement). One uuid, three identities. Multitasking icon. πŸŽ€

Note that the Nova compute service that currently manages this Ironic node must first be marked a "forced down" via the Nova API β€” in a similar way to a down hypervisor that is about to have its VMs evacuated to a replacement hypervisor.

  • --destination-host <host> β€” Destination ironic nova-compute service CONF.host. That's where we're going. πŸš€

✨ API DATABASE COMMANDS ✨

πŸ’… api_db version πŸ’…

nova-manage api_db version

Prints the current API database version. That's it, that's the whole vibe. πŸ‘‘

✨ Added in version 2015.1.0: (Kilo)

πŸ’– api_db sync πŸ’–

nova-manage api_db sync [VERSION]

Upgrades the API database schema up to the most recent version, or to VERSION if you pass one. Important: this command does not create the API database β€” it just runs the schema migration scripts. The API database connection is determined by api_database.connection <#api_database.connection> in the configuration file passed to nova-manage.

Bestie, run this before nova-manage db sync, okay? Order matters. πŸ’…

✨ Added in version 2015.1.0: (Kilo)

πŸŒ€ Changed in version 18.0.0: (Rocky) β€” Added support for upgrading the optional placement database if [placement_database]/connection is configured.

πŸŒ€ Changed in version 20.0.0: (Train) β€” Removed support for upgrading the optional placement database, since placement is now a separate project. Also removed support for the legacy --version <version> argument.

πŸŒ€ Changed in version 24.0.0: (Xena) β€” Migrated the versioning engine to alembic. The optional VERSION argument is now expected to be an alembic-based version. sqlalchemy-migrate-based versions will be rejected. 🚫


πŸ¦‹ CELLS V2 COMMANDS πŸ¦‹

🌸 cell_v2 simple_cell_setup 🌸

nova-manage cell_v2 simple_cell_setup [--transport-url <transport_url>]

Sets up a fresh cells v2 environment. If --transport-url is not specified, it will use the one defined by transport_url <#DEFAULT.transport_url> in the configuration file. Fresh start, clean slate, main character energy. ✨

✨ Added in version 14.0.0: (Newton)

πŸŽ€ Options πŸŽ€

  • --transport-url <transport_url> β€” The transport url for the cell message queue.

πŸŽ€ Return codes πŸŽ€

  • 0 β€” Setup is completed.
  • 1 β€” No hosts are reporting, meaning none can be mapped, or if the transport URL is missing or invalid.

πŸ’œ cell_v2 map_cell0 πŸ’œ

nova-manage cell_v2 map_cell0 [--database_connection <database_connection>]

Creates a cell mapping to the database connection for the cell0 database. If a database_connection is not specified, it will use the one defined by database.connection <#database.connection> in the configuration file passed to nova-manage. The cell0 database is used for instances that have not been scheduled to any cell. This generally applies to instances that have encountered an error before they have been scheduled. So it's like the waiting room for sad little instances. πŸ₯Ί

✨ Added in version 14.0.0: (Newton)

πŸŽ€ Options πŸŽ€

  • --database_connection <database_connection> β€” The database connection URL for cell0. This is optional. If not provided, a standard database connection will be used based on the main database connection from nova configuration.

πŸŽ€ Return codes πŸŽ€

  • 0 β€” cell0 is created successfully or has already been set up.

🧚 cell_v2 map_instances 🧚

nova-manage cell_v2 map_instances --cell_uuid <cell_uuid>
  [--max-count <max_count>] [--reset]

Maps instances to the provided cell. Instances in the nova database will be queried from oldest to newest and mapped to the provided cell. A --max-count can be set on the number of instance to map in a single run. Repeated runs of the command will start from where the last run finished, so it is not necessary to increase --max-count to finish. A --reset option can be passed which will reset the marker, thus making the command start from the beginning, as opposed to the default behavior of starting from where the last run finished.

If --max-count is not specified, all instances in the cell will be mapped in batches of 50. If you have a large number of instances, consider specifying a custom value and run the command until it exits with 0. So satisfying when it finally hits zero. 😭

✨ Added in version 12.0.0: (Liberty)

πŸŽ€ Options πŸŽ€

  • --cell_uuid <cell_uuid> β€” Unmigrated instances will be mapped to the cell with the UUID provided.
  • --max-count <max_count> β€” Maximum number of instances to map. If not set, all instances in the cell will be mapped in batches of 50. If you have a large number of instances, consider specifying a custom value and run the command until it exits with 0.
  • --reset β€” The command will start from the beginning as opposed to the default behavior of starting from where the last run finished.

πŸŽ€ Return codes πŸŽ€

  • 0 β€” All instances have been mapped.
  • 1 β€” There are still instances to be mapped.
  • 127 β€” Invalid value for --max-count.
  • 255 β€” An unexpected error occurred.

🌈 cell_v2 map_cell_and_hosts 🌈

nova-manage cell_v2 map_cell_and_hosts [--name <cell_name>]
  [--transport-url <transport_url>] [--verbose]

Creates a cell mapping to the database connection and message queue transport URL, and maps hosts to that cell. The database connection comes from the database.connection <#database.connection> defined in the configuration file passed to nova-manage. If --transport-url is not specified, it will use the one defined by transport_url <#DEFAULT.transport_url> in the configuration file. This command is idempotent (can be run multiple times), and the verbose option will print out the resulting cell mapping UUID. So go ahead, run it again, it's not mad. πŸ’–

✨ Added in version 13.0.0: (Mitaka)

πŸŽ€ Options πŸŽ€

  • --transport-url <transport_url> β€” The transport url for the cell message queue.
  • --name <cell_name> β€” The name of the cell.
  • --verbose β€” Output the cell mapping uuid for any newly mapped hosts.

πŸŽ€ Return codes πŸŽ€

  • 0 β€” Successful completion.
  • 1 β€” The transport url is missing or invalid.

πŸ’« cell_v2 verify_instance πŸ’«

nova-manage cell_v2 verify_instance --uuid <instance_uuid> [--quiet]

Verifies instance mapping to a cell. This command is useful to determine if the cells v2 environment is properly setup, specifically in terms of the cell, host, and instance mapping records required. It's like a vibe check for your cells. βœ…

✨ Added in version 14.0.0: (Newton)

πŸŽ€ Options πŸŽ€

  • --uuid <instance_uuid> β€” The instance UUID to verify.
  • --quiet β€” Do not print anything.

✨ Return codes ✨

okay so if you're running this against an instance (iykyk), here's what the exit code is telling you:

  • 0 β€” πŸŽ‰ the instance was successfully mapped to a cell. we love to see it.
  • 1 β€” the instance is not mapped to a cell. go look at the map_instances command, bestie.
  • 2 β€” the cell mapping is missing. πŸ’€ so if you're upgrading from a cells v1 environment, hit up the map_cell_and_hosts command; and if you're upgrading from a non-cells v1 environment, you want the simple_cell_setup command.
  • 3 β€” this is a deleted instance that still has an instance mapping just hanging around. awkward.
  • 4 β€” this is an archived instance that still has an instance mapping. also awkward. ✨

πŸ¦‹ cell_v2 create_cell πŸ¦‹

nova-manage cell_v2 create_cell [--name <cell_name>]
  [--transport-url <transport_url>]
  [--database_connection <database_connection>] [--verbose] [--disabled]

so this one creates a cell mapping to the database connection + message queue transport URL. real "let's make this official" energy. πŸ’–

if a database_connection isn't specified, it'll use the one defined by database.connection in the configuration file that was passed to nova-manage. and if --transport-url isn't specified, it uses the one defined by transport_url in the configuration file. the --verbose option will print out the resulting cell mapping UUID, which is lowkey satisfying ngl. all the cells you create are enabled by default. however β€” passing the --disabled option can create a pre-disabled cell, meaning no scheduling will happen to this cell at all. it's giving "we built the room but nobody's allowed in yet." πŸ™ˆ

Added in version 15.0.0: (Ocata)

Changed in version 18.0.0: (Rocky)

  • Added --disabled option.

🌸 Options 🌸

  • --name <cell_name> β€” the name of the cell. give it a cute one.
  • --database_connection <database_connection> β€” the database URL for the cell database. πŸ”₯
  • --transport-url <transport_url> β€” the transport url for the cell message queue.
  • --verbose β€” output the UUID of the created cell. (so you can screenshot it, obviously.)
  • --disabled β€” create a pre-disabled cell.

✨ Return codes ✨

  • 0 β€” the cell mapping was successfully created. slay. πŸ’…
  • 1 β€” the transport URL or database connection was missing or invalid. 😭
  • 2 β€” another cell is already using the provided transport URL and/or database connection combination. not the duplication, bestie.

πŸŽ€ cell_v2 discover_hosts πŸŽ€

nova-manage cell_v2 discover_hosts [--cell_uuid <cell_uuid>] [--verbose]
  [--strict] [--by-service]

okay so this searches cells β€” or just a single cell β€” and maps found hosts. it'll check the database for each cell (or a single one if you passed it in) and map any hosts that aren't currently mapped. if a host is already mapped, nothing happens. no drama. 🫢

the thing everyone forgets: you need to re-run this command every single time you add a batch of compute hosts to a cell. otherwise the scheduler will never place instances there, and the API won't list the new hosts. so like. re-run it. don't make me say it again. 😭

if --strict is specified, the command will only return 0 if an unmapped host was discovered and mapped successfully. if --by-service is specified, this command will look in the appropriate cell(s) for any nova-compute services and make sure there are host mappings for them. this is less efficient and is only necessary when using compute drivers that may manage zero or more actual compute nodes at any given time (currently only ironic).

⚠️ This command should be run once after all compute hosts have been deployed and should not be run in parallel. When run in parallel, the commands will collide with each other trying to map the same hosts in the database at the same time. πŸ’€

Added in version 14.0.0: (Newton)

Changed in version 16.0.0: (Pike)

  • Added --strict option.

Changed in version 18.0.0: (Rocky)

  • Added --by-service option.

🌈 Options 🌈

  • --cell_uuid <cell_uuid> β€” if provided, only this cell will be searched for new hosts to map. one cell only, keep it focused. ✨
  • --verbose β€” provide detailed output when discovering hosts. spill the tea.
  • --strict β€” considered successful (exit code 0) only when an unmapped host is discovered. any other outcome is considered a failure (non-zero exit code).
  • --by-service β€” discover hosts by service instead of compute node.

✨ Return codes ✨

  • 0 β€” hosts were successfully mapped, or no hosts needed to be mapped. if --strict is specified, returns 0 only if an unmapped host was discovered and mapped. πŸ‘‘
  • 1 β€” if --strict is specified and no unmapped hosts were found. also returns 1 if an exception was raised while running. 😭
  • 2 β€” the command was aborted because of a duplicate host mapping found. this means the command collided with another running discover_hosts command or a scheduler periodic task β€” and it is safe to retry. phew. πŸ™

🧚 cell_v2 list_cells 🧚

nova-manage cell_v2 list_cells [--verbose]

by default, the cell name, UUID, disabled state, masked transport URL, and database connection details are shown. use the --verbose option to see the transport URL and database connection with their sensitive details. πŸ‘€ (yes that means passwords. careful who's looking over your shoulder.)

Added in version 15.0.0: (Ocata)

Changed in version 18.0.0: (Rocky)

  • Added the disabled column to output.

⭐ Options ⭐

  • --verbose β€” show sensitive details, such as passwords. πŸ™ˆ

✨ Return codes ✨

  • 0 β€” success. that's it. that's the list. πŸ’–

πŸ“ cell_v2 delete_cell πŸ“

nova-manage cell_v2 delete_cell [--force] --cell_uuid <cell_uuid>

delete a cell by the given UUID. it's giving spring cleaning but for your database. 🧹✨

Added in version 15.0.0: (Ocata)

πŸ’œ Options πŸ’œ

  • --force β€” delete hosts and instance_mappings that belong to the cell as well. (this is the "and take everything with you" button, so maybe double-check the UUID first, bestie. 😭)
  • --cell_uuid <cell_uuid> β€” the UUID of the cell to delete.

✨ Return codes ✨

okay so for the command we were just talking about, here's what those return codes actually mean, bestie:

  • 0 β€” An empty cell was found and deleted successfully, or a cell that has hosts was found and the cell, hosts and the instance_mappings were deleted successfully with the --force option (this happens if there are no living instances). slay πŸ’…
  • 1 β€” A cell with the provided UUID could not be found. 😭
  • 2 β€” Host mappings were found for the cell, meaning the cell is not empty, and the --force option was not provided. πŸ™ˆ
  • 3 β€” There are active instances mapped to the cell (cell not empty). πŸ’€
  • 4 β€” There are (inactive) instances mapped to the cell and the --force option was not provided. 😬

πŸ¦‹ cell_v2 list_hosts πŸ¦‹

nova-manage cell_v2 list_hosts [--cell_uuid <cell_uuid>]

Lists the hosts in one or all v2 cells. By default hosts in all v2 cells are listed. Use the --cell_uuid option to list hosts in a specific cell.

Added in version 17.0.0: (Queens) β€” periodt. ✨

Options

  • --cell_uuid <cell_uuid> β€” The UUID of the cell. (like, which cell are we peeking into? πŸ‘€)

Return codes

  • 0 β€” Success. πŸŽ‰
  • 1 β€” The cell indicated by --cell_uuid was not found. 😭

πŸ‘‘ cell_v2 update_cell πŸ‘‘

nova-manage cell_v2 update_cell --cell_uuid <cell_uuid>
  [--name <cell_name>] [--transport-url <transport_url>]
  [--database_connection <database_connection>] [--disable] [--enable]

Updates the properties of a cell by the given uuid. If a database_connection is not specified, it will attempt to use the one defined by database.connection in the configuration file. If a transport_url is not specified, it will attempt to use the one defined by transport_url in the configuration file.

Updating the transport_url or database_connection fields on a running system will NOT result in all nodes immediately using the new values. Use caution when changing these values. 😬
The scheduler will not notice that a cell has been enabled/disabled until it is restarted or sent the SIGHUP signal. 🫠

Added in version 16.0.0: (Pike)

Changed in version 18.0.0: (Rocky) β€” added --enable, --disable options. iconic. πŸ’–

Options

  • --cell_uuid <cell_uuid> β€” The UUID of the cell to update.
  • --name <cell_name> β€” Set the cell name.
  • --transport-url <transport_url> β€” Set the cell transport_url. Note that running nodes will not see the change until restarted or the SIGHUP signal is sent.
  • --database_connection <database_connection> β€” Set the cell database_connection. Note that running nodes will not see the change until restarted or the SIGHUP signal is sent.
  • --disable β€” Disables the cell. Note that the scheduling will be blocked to this cell until it is enabled and the nova-scheduler service is restarted or the SIGHUP signal is sent.
  • --enable β€” Enables the cell. Note that the nova-scheduler service will not see the change until it is restarted or the SIGHUP signal is sent.

Return codes

  • 0 β€” Success. ✨
  • 1 β€” The cell was not found by the provided UUID. 😭
  • 2 β€” The specified properties could not be set. 😬
  • 3 β€” The provided --transport-url or/and --database_connection parameters were same as another cell. πŸ™ˆ
  • 4 β€” An attempt was made to disable and enable a cell at the same time. πŸ’€
  • 5 β€” An attempt was made to disable or enable cell0. 🚫

🌸 cell_v2 delete_host 🌸

nova-manage cell_v2 delete_host --cell_uuid <cell_uuid> --host <host>

Delete a host by the given host name and the given cell UUID.

Added in version 17.0.0: (Queens)

The scheduler caches host-to-cell mapping information so when deleting a host the scheduler may need to be restarted or sent the SIGHUP signal. 🧠

Options

  • --cell_uuid <cell_uuid> β€” The UUID of the cell.
  • --host <host> β€” The host to delete.

Return codes

  • 0 β€” The empty host was found and deleted successfully
  • 1 β€” A cell with the specified UUID could not be found.
  • 2 β€” A host with the specified name could not be found
  • 3 β€” The host with the specified name is not in a cell with the specified UUID.
  • 4 β€” The host with the specified name has instances (host not empty). πŸ’€

✨ PLACEMENT COMMANDS ✨

🌸 placement heal_allocations

nova-manage placement heal_allocations [--max-count <max_count>]
  [--verbose] [--skip-port-allocations] [--dry-run]
  [--instance <instance_uuid>] [--cell <cell_uuid>] [--force]

Okay bestie, sit down for this one because it's a whole saga. πŸ’…

So here's the vibe: this command goes through every non-cell0 cell and hunts down instances that are missing their allocations in the Placement service AND aren't out here going through a task state transition. For every single victimβ€”sorry, *instance*β€”it finds, it creates allocations against that instance's compute node resource provider, based on the flavor that instance has. Iconic. πŸŽ€

Note: Nested allocations are only partially supported, bestie. Nested allocations that happen because Neutron ports have QoS policies? Those have been supported since 20.0.0 (Train). Slay. But nested allocations from vGPU or Cyborg device profile requests in the flavor? Not supported. 😭 Alsoβ€”and this is importantβ€”if you're out here using provider.yaml files on compute hosts to define extra resources, and those resources live on child resource providers, then instances using those resources are not supported either. Sorry babe.

Also, if the instance has any port attached that comes with a resource request (like Quality of Service (QoS): Guaranteed Bandwidth, you know the one), but the corresponding allocation just… isn't there? Then the allocation gets created against the network device resource providers according to that port's resource request. πŸ’–

But plot twist: sometimes that missing allocation genuinely can't be created. Maybe there's not enough resource inventory on the host the instance lives on, or maybe more than one resource provider could fulfill the request (messy). In that case? The instance needs to be manually deleted, or the port needs to be detached. No shortcuts. When nova supports migrating instances with guaranteed bandwidth ports (that's the Train spec if you're curious), migration will heal missing allocations for these instances. Until then? Manual it is. πŸ’…

Okay now the drama of persistence: before those port allocations get persisted in placement, nova-manage tries to update each port in neutron to refer to the resource provider UUID that provides the requested resources. Butβ€”if any of those port updates fail in neutron, or the allocation update fails in placement, the command tries to roll back the partial updates to the ports. And if the roll back fails? The process stops with exit code 7 and you, the admin, have to do the rollback in neutron manually according to the description in the exit code section. Good luck bestie, you got this. 🫢

There's also a special case handled for instances that do have allocations created before Placement API microversion 1.8, back when project_id and user_id values were required. For those types of allocations, project_id and user_id get updated using the values from the instance. Nostalgia. 🌸

This command requires that the api_database.connection and placement configuration options are set. Placement API >= 1.28 is required. No skipping. ✨

Added in version 18.0.0: (Rocky)

Changed in version 20.0.0: (Train) β€” Added --dry-run, --instance, and --skip-port-allocations options.

Changed in version 21.0.0: (Ussuri) β€” Added --cell option.

Changed in version 22.0.0: (Victoria) β€” Added --force option.

Changed in version 25.0.0: (Yoga) β€” Added support for healing port allocations if the port-resource-request-groups neutron API extension is enabled, and therefore ports can request multiple groups of resources, e.g. by using both guaranteed minimum bandwidth and guaranteed minimum packet rate QoS policy rules. Ate. πŸ’…


πŸŽ€ Options

  • --max-count <max_count> β€” Maximum number of instances to process. If you don't specify it, all instances in each cell get mapped in batches of 50. Have a large number of instances? Consider specifying a custom value and running the command until it exits with 0 or 4.
  • --verbose β€” Provide verbose output during execution. Because sometimes you want all the tea. πŸ‘‘
  • --dry-run β€” Runs the command and prints output but does not commit any changes. The return code should be 4.
  • --instance <instance_uuid> β€” UUID of a specific instance to process. If you specify this, --max-count has no effect. Mutually exclusive with --cell.
  • --skip-port-allocations β€” Skip the healing of the resource allocations of bound ports. E.g. healing bandwidth resource allocation for ports having minimum QoS policy rules attached. If your deployment doesn't use such a feature, then the performance impact of querying neutron ports for each instance can be avoided with this flag. Speedrun. ✨
  • --cell <cell_uuid> β€” Heal allocations within a specific cell. Mutually exclusive with --instance.
  • --force β€” Force heal allocations. Requires the --instance argument.

πŸ¦‹ Return codes

  • 0 β€” Command completed successfully and allocations were created. πŸŽ‰
  • 1 β€” --max-count was reached and there are more instances to process.
  • 2 β€” Unable to find a compute node record for a given instance. πŸ’€
  • 3 β€” Unable to create (or update) allocations for an instance against its compute node resource provider.
  • 4 β€” Command completed successfully but no allocations were created.
  • 5 β€” Unable to query ports from neutron.
  • 6 β€” Unable to update ports in neutron.
  • 7 β€” Cannot roll back neutron port updates. Manual steps needed. The error message will indicate which neutron ports need to be changed to clean up binding:profile of the port:
$ openstack port unset <port_uuid> --binding-profile allocation
  • 127 β€” Invalid input. πŸ™ˆ
  • 255 β€” An unexpected error occurred. 😭
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

and that's a wrap on that table, bestie πŸ’… onto the next ones!


placement sync_aggregates

ok so this one is all about aggregates, and the synopsis is giving very simple, very demure:

nova-manage placement sync_aggregates [--verbose]

What it actually does? It mirrors compute host aggregates to resource provider aggregates in the Placement service. Yes, it's literally copying your aggregate vibe over to the other side. πŸ¦‹

BUT β€” and hear me out β€” it needs the api_database and placement sections of the nova configuration file to be populated first. Like, actually populated. Not just sitting there empty. No config, no sync, no slay. 😭

Throw in --verbose if you want detailed progress output while it's running, so you can sit there and watch each lil step like it's a reality TV finale. πŸ‘‘

⚠️ Note: Depending on the size of your deployment and the number of compute hosts in aggregates, this command could cause a non-negligible amount of traffic to the placement service, and therefore is recommended to be run during maintenance windows. She is NOT a peak-traffic girly. Please respect her boundaries. πŸ™ˆ

Added in version 18.0.0: (Rocky) ✨

Options

  • --verbose β€” Provide verbose output during execution.

Return codes

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Return code β”‚ Description                β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 0           β”‚ Successful run             β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 1           β”‚ A host was found with more β”‚
β”‚             β”‚ than one matching compute  β”‚
β”‚             β”‚ node record                β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 2           β”‚ An unexpected error        β”‚
β”‚             β”‚ occurred while working     β”‚
β”‚             β”‚ with the placement API     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 3           β”‚ Failed updating provider   β”‚
β”‚             β”‚ aggregates in placement    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 4           β”‚ Host mappings not found    β”‚
β”‚             β”‚ for one or more host       β”‚
β”‚             β”‚ aggregate members          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 5           β”‚ Compute node records not   β”‚
β”‚             β”‚ found for one or more      β”‚
β”‚             β”‚ hosts                      β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 6           β”‚ Resource provider not      β”‚
β”‚             β”‚ found by uuid for a given  β”‚
β”‚             β”‚ host                       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 255         β”‚ An unexpected error        β”‚
β”‚             β”‚ occurred.                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

placement audit

and NOW we get to the detective of the family πŸ” the audit. Here's how you call her:

nova-manage placement audit [--verbose] [--delete]
  [--resource_provider <uuid>]

The way this works: she iterates over all the Resource Providers β€” or just one, if you're feeling specific and you hand her the UUID β€” and then she verifies whether the compute allocations are either related to an existing instance or a migration UUID. If they're not related to either? She will straight up tell you which allocations are orphaned. Exposed. Called out. No cap. πŸ’€

This command requires that the api_database.connection and placement configuration options are set. Also, Placement API >= 1.14 is required β€” so check your version before you come crying to her. 😭

Added in version 21.0.0: (Ussuri) 🌈

Options

  • --verbose β€” Provide verbose output during execution.
  • --resource_provider <provider_uuid> β€” UUID of a specific resource provider to verify.
  • --delete β€” Deletes orphaned allocations that were found.

Return codes

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Return code β”‚ Description               β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 0           β”‚ No orphaned allocations   β”‚
β”‚             β”‚ were found                β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 1           β”‚ An unexpected error       β”‚
β”‚             β”‚ occurred                  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 3           β”‚ Orphaned allocations were β”‚
β”‚             β”‚ found                     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 4           β”‚ All found orphaned        β”‚
β”‚             β”‚ allocations were deleted  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 127         β”‚ Invalid input             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ’Ύ volume_attachment get_connector πŸ’Ύ

nova-manage volume_attachment get_connector

okay so this one is literally just showing you the host connector for this compute host πŸ‘‘ define the vibe of your connection, bestie.

and when you hit it with the --json switch? it dumps a JSON string with all the connector info for the current host 🌸 save that bad boy to a file and you can feed it straight into the nova-manage volume_attachment refresh command later. it's giving "i prepared ahead of time and that's why i'm the moment" ✨

Added in version 24.0.0: (Xena) πŸ¦‹

Return codes πŸ’…

  • 0 β€” Success πŸŽ€
  • 1 β€” An unexpected error occurred 😭

πŸ” volume_attachment show πŸ”

nova-manage volume_attachment show [INSTANCE_UUID] [VOLUME_ID]

this spills ALL the tea on the volume attachment between VOLUME_ID and INSTANCE_UUID πŸ’– like, are they actually attached or is it complicated? this tells you fr fr.

Added in version 24.0.0: (Xena) πŸ¦‹

Return codes πŸ’…

  • 0 β€” Success πŸŽ€
  • 1 β€” An unexpected error occurred 😭
  • 2 β€” Instance not found πŸ™ˆ
  • 3 β€” Instance is not attached to volume πŸ’€

πŸ”„ volume_attachment refresh πŸ”„

nova-manage volume_attachment refresh [INSTANCE_UUID] [VOLUME_ID] [CONNECTOR_PATH]

refreshes the connection info tied to a given volume attachment 🌈 glow-up for your connection data.

now listen bestie, because the vibes gotta be right for this to work: the instance must be attached to the volume, must have a vm_state of stopped, and must not be locked πŸ”’ no exceptions, no cap.

CONNECTOR_PATH is the path to a JSON-formatted file holding the up-to-date connector info for the compute that's currently hosting the instance 🫢 and you generate that file with the nova-manage volume_attachment get_connector command. it's a whole little pipeline and honestly? iconic.

Added in version 24.0.0: (Xena) πŸ¦‹

Return codes πŸ’…

  • 0 β€” Success πŸŽ€
  • 1 β€” An unexpected error occurred 😭
  • 2 β€” Connector path does not exist πŸ•³οΈ
  • 3 β€” Failed to open connector path πŸ™ˆ
  • 4 β€” Instance does not exist πŸ’€
  • 5 β€” Instance state invalid (must be stopped and unlocked) πŸ”’
  • 6 β€” Volume is not attached to the instance 😬
  • 7 β€” Connector host is not correct 🚫

✨ LIBVIRT COMMANDS ✨

okay bestie, this is the libvirt corner of nova-manage, and it's giving "I need to know what machine type my instances are living in" energy πŸ’…


πŸ–₯️ libvirt get_machine_type

nova-manage libvirt get_machine_type [INSTANCE_UUID]

So like… this one fetches and shows you the recorded machine type of a libvirt instance, and you point at which instance you mean with INSTANCE_UUID. That's it. That's the whole job. ✨

Added in version 23.0.0: (Wallaby)

πŸŽ€ Return codes

  • 0 β€” Successfully completed 🫢
  • 1 β€” An unexpected error occurred 😭
  • 2 β€” Unable to find instance or instance mapping πŸ’€
  • 3 β€” No machine type found for instance πŸ™ˆ

πŸ”§ libvirt update_machine_type

nova-manage libvirt update_machine_type \
    [INSTANCE_UUID] [MACHINE_TYPE] [--force]

This one sets or updates the recorded machine type of instance INSTANCE_UUID to the machine type MACHINE_TYPE. Glow-up for your instance's machine type, fr fr ✨

But bestie, there are criteria that have to be met when you use this command, no cap:

  • The instance must have a vm_state of STOPPED, SHELVED or SHELVED_OFFLOADED. 😴
  • The machine type must be supported. The supported list includes alias and versioned types of pc, pc-i440fx, pc-q35, q35, virt or s390-ccw-virtio. πŸ‘‘
  • The update will not move the instance between underlying machine types. For example, pc to q35. 🚫
  • The update will not move the instance between an alias and versioned machine type or vice versa. For example, pc to pc-1.2.3 or pc-1.2.3 to pc. 🚫

There's a --force flag provided to skip all of those checks above, but caution should be taken because this could easily lead to the underlying ABI of the instance changing when moving between machine types. Like, that's not a cute little oopsie, that's a real ABI-changing situation πŸ’€

Added in version 23.0.0: (Wallaby)

✨ Options

  • --force β€” Skip machine type compatibility checks and force machine type update. (use responsibly bestie 🫢)

πŸŽ€ Return codes

  • 0 β€” Update completed successfully πŸŽ‰
  • 1 β€” An unexpected error occurred 😭
  • 2 β€” Unable to find instance or instance mapping πŸ’€
  • 3 β€” The instance has an invalid vm_state πŸ™ˆ
  • 4 β€” The proposed update of the machine type is invalid 🚫
  • 5 β€” The provided machine type is unsupported 🧚

πŸ“‹ libvirt list_unset_machine_type

nova-manage libvirt list_unset_machine_type [--cell-uuid <cell-uuid>]

Lists the UUID of any instance that doesn't have hw_machine_type set. Basically "who here is missing their machine type, raise your hand" πŸ™‹

This command is useful for operators trying to figure out when it's safe to change the libvirt.hw_machine_type <#libvirt.hw_machine_type> option within an environment. iykyk 🫢

Added in version 23.0.0: (Wallaby)

✨ Options

  • --cell_uuid <cell_uuid> β€” The UUID of the cell to list instances from.

πŸŽ€ Return codes

  • 0 β€” Completed successfully, no instances found without hw_machine_type set ✨
  • 1 β€” An unexpected error occurred 😭
  • 2 β€” Unable to find cell mapping πŸ’€
  • 3 β€” Instances found without hw_machine_type set πŸ‘€

🌸 IMAGE PROPERTY COMMANDS 🌸

πŸ’– image_property show πŸ’–

nova-manage image_property show [INSTANCE_UUID] [IMAGE_PROPERTY]

Bestie, this one goes and fetches the recorded image property IMAGE_PROPERTY of whatever instance INSTANCE_UUID points at, then displays it for you. Show and tell, literally. ✨

Added in version 25.0.0: (Yoga)

πŸŽ€ Return codes πŸŽ€

  • 0 β€” Successfully completed πŸ’…
  • 1 β€” An unexpected error occurred 😭
  • 2 β€” Unable to find instance or instance mapping πŸ™ˆ
  • 3 β€” No image property found for instance πŸ’€

πŸ¦‹ image_property set πŸ¦‹

nova-manage image_property set \
    [INSTANCE_UUID] [--property] [IMAGE_PROPERTY]=[VALUE]

This sets (or updates, if it's already there) the recorded image property IMAGE_PROPERTY on the instance INSTANCE_UUID, and gives it the value VALUE. Glow up for image props, no cap. ✨

You have to meet these criteria when you use this command:

  • The instance must have a vm_state of STOPPED, SHELVED or SHELVED_OFFLOADED.

This command is lowkey iconic for operators who need to update stored instance image properties that have become invalidated by a change of instance machine type, for example. πŸ‘‘

Added in version 25.0.0: (Yoga)

⭐ Options ⭐

  • --property β€” The image property to set, using the format name=value. For example: --property hw_disk_bus=virtio --property hw_cdrom_bus=sata.

πŸŽ€ Return codes πŸŽ€

  • 0 β€” Update completed successfully πŸ’…
  • 1 β€” An unexpected error occurred 😭
  • 2 β€” Unable to find instance or instance mapping πŸ™ˆ
  • 3 β€” The instance has an invalid vm_state πŸ’€
  • 4 β€” The provided image property name is invalid 🚫
  • 5 β€” The provided image property value is invalid 🚫

🌈 LIMITS COMMANDS 🌈

πŸ‘‘ limits migrate_to_unified_limits πŸ‘‘

nova-manage limits migrate_to_unified_limits [--project-id <project-id>]
[--region-id <region-id>] [--verbose] [--dry-run] [--quiet]
[--no-embedded-flavor-scan]

Okay so this is the big one: it migrates quota limits from the Nova database to unified limits in Keystone. Moving day, but for quotas. 🚚✨

This command is useful for operators migrating from legacy quotas to unified limits. The limits get migrated by copying them out of the Nova database and into Keystone, by creating them using the Keystone API.

The Nova configuration file that nova-manage is using must have a keystone_authtoken section that contains authentication settings, otherwise the Keystone API calls will not succeed. Here's an example, bestie:

[keystone_authtoken]
project_domain_name = Default
project_name = service
user_domain_name = Default
username = nova
auth_url = http://127.0.0.1/identity
auth_type = password
password = <password>

By default, in Keystone policy configuration, access to create, update, and delete in the unified limits API is restricted to callers with the admin role. So you're gonna need to make sure that the user configured under keystone_authtoken has the necessary role and scope. No role, no limits, periodt. πŸ’…

Warning: ⚠️ The limits migrate_to_unified_limits command will create limits only for resources that exist in the legacy quota system, and any resource that does not have a unified limit in Keystone will use a quota limit of 0. 😭 For resource classes that are allocated by the placement service and have no default limit set, you will need to create default limits manually. The most common example is class:DISK_GB. All Nova API requests that need to allocate DISK_GB will fail quota enforcement until a default limit for it is set in Keystone. πŸ’€ See the unified limits documentation about creating limits using the OpenStackClient.
Added in version 28.0.0: (2023.2 Bobcat)
Changed in version 31.0.0: (2025.1 Epoxy)

Added flavor scanning for resource classes missing limits, along with the --quiet and --no-embedded-flavor-scan options. πŸ”₯

⭐ Options ⭐

  • --project-id <project-id> β€” The project ID for which to migrate quota limits.
  • --region-id <region-id> β€” The region ID for which to migrate quota limits.
  • --verbose β€” Provide verbose output during execution.
  • --dry-run β€” Show what limits would be created without actually creating them. Flavors will still be scanned for resource classes missing limits.
  • --quiet β€” Do not output anything during execution. 🀫
  • --no-embedded-flavor-scan β€” Do not scan instances embedded flavors for resource classes missing limits.

πŸŽ€ Return codes πŸŽ€

  • 0 β€” Command completed successfully πŸ’…
  • 1 β€” An unexpected error occurred 😭
  • 2 β€” Failed to connect to the database πŸ™ˆ
  • 3 β€” Missing registered limits were identified 🚫

🫢 SEE ALSO 🫢

  • nova-policy(1)
  • nova-status(1)

πŸ› BUGS πŸ›


πŸ’œ Author πŸ’œ

openstack@lists.openstack.org

2010-present, OpenStack Foundation


aaaand that's a wrap on the whole entire page, bestie!! πŸŽ‰βœ¨ you made it to the end, which is giving main character energy fr fr. this one's from 34.0.0, dated Oct 01, 2026, and it's NOVA-MANAGE(1) β€” go forth and manage your nova like the icon you are. πŸ’…πŸ‘‘πŸ¦‹

πŸ“¦ where this page comes from