Module Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults Str body If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad Str body If CompareIsNot NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If BoolOpOr CompareIs NameLoad NameLoad CompareGt NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Assign NameStore Call NameLoad NameLoad TryExcept body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults Str body Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Num If CompareIn NameLoad AttributeLoad NameLoad attr body If NameLoad body Assign NameStore NameLoad Assign NameStore BoolOpOr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr ListLoad For NameStore NameLoad body If CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Assign NameStore NameLoad If UnaryOpNot NameLoad body Return Num If NameLoad body Assign NameStore AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Call NameLoad attr attr orelse Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Call NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict For NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareNotIn AttributeLoad NameLoad attr TupleLoad Str Str body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword NameLoad keyword NameLoad For NameStore TupleLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad Str body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Expr Str Global identifier Assign NameStore Str If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assert Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Return SubscriptLoad NameLoad Index NameLoad decorator_list
N/A N/A os migrate exceptions versioning_exceptions migrate.versioning api versioning_api migrate.versioning.repository Repository oslo_db.sqlalchemy utils db_utils oslo_log log logging N/A sqlalchemy sqlalchemy.sql null nova.db.sqlalchemy api db_session nova exception nova.i18n _ N/A INIT_VERSION N/A N/A N/A INIT_VERSION N/A main 215 N/A N/A INIT_VERSION N/A api 0 N/A _REPOSITORY N/A N/A LOG N/A N/A logging getLogger __name__ get_engine N/A N/A database N/A main N/A N/A N/A database main N/A N/A N/A N/A db_session get_engine N/A N/A database api N/A N/A N/A N/A db_session get_api_engine N/A db_sync N/A N/A version database N/A None main N/A N/A N/A version None N/A N/A N/A N/A version N/A int version N/A N/A N/A ValueError N/A N/A N/A N/A exception NovaException N/A _ version should be an integer N/A current_version N/A db_version database N/A repository N/A _find_migrate_repo database N/A N/A N/A version None N/A version current_version N/A N/A N/A N/A versioning_api upgrade N/A get_engine database repository version N/A N/A N/A N/A versioning_api downgrade N/A get_engine database repository version N/A db_version N/A N/A database N/A main N/A N/A repository N/A _find_migrate_repo database N/A N/A N/A N/A N/A versioning_api db_version N/A get_engine database repository N/A N/A N/A N/A versioning_exceptions DatabaseNotControlledError N/A exc N/A N/A meta N/A N/A sqlalchemy MetaData N/A engine N/A get_engine database N/A N/A N/A meta reflect bind engine N/A tables N/A meta tables N/A N/A N/A len tables 0 N/A N/A N/A db_version_control N/A INIT_VERSION N/A database database N/A N/A N/A versioning_api db_version N/A get_engine database repository N/A N/A N/A N/A LOG exception exc N/A N/A N/A exception NovaException N/A _ Upgrade DB using Essex release first. N/A db_initial_version N/A N/A database N/A main N/A N/A N/A INIT_VERSION N/A database N/A _process_null_records N/A N/A table col_name check_fkeys delete N/A False N/A N/A Queries the database and optionally deletes the NULL records.

    :param table: sqlalchemy.Table object.
    :param col_name: The name of the column to check in the table.
    :param check_fkeys: If True, check the table for foreign keys back to the
        instances table and if not found, return.
    :param delete: If true, run a delete operation on the table, else just
        query for number of records that match the NULL column.
    :returns: The number of records processed for the table and column.
     N/A records 0 N/A N/A col_name N/A table columns N/A N/A check_fkeys N/A N/A fkey_found False N/A fkeys N/A N/A N/A N/A table c N/A col_name foreign_keys N/A N/A fkey fkeys N/A N/A N/A N/A N/A N/A fkey column table name instances N/A N/A fkey_found True N/A N/A fkey_found N/A N/A 0 N/A delete N/A N/A records N/A N/A N/A N/A N/A N/A N/A table delete where N/A N/A N/A table c N/A col_name N/A null execute rowcount N/A N/A records N/A len N/A list N/A N/A N/A N/A N/A N/A table select where N/A N/A N/A table c N/A col_name N/A null execute N/A records N/A db_null_instance_uuid_scan N/A N/A delete N/A False N/A N/A Scans the database for NULL instance_uuid records.

    :param 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.
     N/A engine N/A get_engine N/A meta N/A N/A sqlalchemy MetaData bind engine N/A N/A N/A meta reflect engine N/A processed N/A N/A table N/A reversed N/A meta sorted_tables N/A N/A N/A N/A table name N/A fixed_ips shadow_fixed_ips N/A N/A N/A processed N/A N/A table name N/A _process_null_records table instance_uuid check_fkeys True delete delete N/A table_name N/A instances shadow_instances N/A N/A table N/A N/A db_utils get_table engine table_name N/A N/A processed N/A N/A table name N/A _process_null_records table uuid check_fkeys False delete delete N/A processed N/A db_version_control N/A N/A version database N/A None main N/A N/A repository N/A _find_migrate_repo database N/A N/A N/A versioning_api version_control N/A get_engine database repository version N/A version N/A _find_migrate_repo N/A N/A database N/A main N/A N/A Get the path for the migrate repository. N/A _REPOSITORY N/A rel_path migrate_repo N/A N/A database api N/A N/A rel_path N/A N/A N/A os path join api_migrations migrate_repo N/A path N/A N/A N/A os path join N/A N/A N/A os path abspath N/A N/A N/A os path dirname __file__ rel_path N/A N/A N/A N/A os path exists path N/A N/A N/A N/A _REPOSITORY get database None N/A N/A N/A _REPOSITORY N/A database N/A Repository path N/A N/A _REPOSITORY N/A database N/A