The nova.db.migration Module

Database setup and migration commands.

db_initial_version(database='main')

The starting version for the database.

db_null_instance_uuid_scan(delete=False)

Utility for scanning the database to look for NULL instance uuid rows.

Scans the backing nova database to look for table entries where instances.uuid or instance_uuid columns are NULL (except for the fixed_ips table since that can contain NULL instance_uuid entries by design). Dumps the tables that have NULL instance_uuid entries or optionally deletes them based on usage.

This tool is meant to be used in conjunction with the 267 database migration script to detect and optionally cleanup NULL instance_uuid records.

Parameters:delete – If true, delete NULL instance_uuid records found, else just query to see if they exist for reporting.
Returns:dict of table name to number of hits for NULL instance_uuid rows.
db_sync(version=None, database='main')

Migrate the database to version or the most recent version.

db_version(database='main')

Display the current database version.

Previous topic

The nova.db.base Module

Next topic

The nova.db.sqlalchemy.api Module

Project Source

This Page