ironic.db.sqlalchemy.api
Module¶SQLAlchemy storage backend.
ironic.db.sqlalchemy.api.
Connection
[source]¶Bases: ironic.db.api.Connection
SqlAlchemy connection.
backfill_version_column
(context, max_count)[source]¶Backfill the version column with Ocata versions.
The version column was added to all the resource tables in this Pike release (via ‘ironic-dbsync upgrade’). After upgrading (from Ocata to Pike), the ‘ironic-dbsync online_data_migrations’ command will invoke this method to populate (backfill) the version columns. The version used will be the object version prior to this column being added.
Parameters: |
|
---|---|
Returns: | A 2-tuple, 1. the total number of objects that need to be migrated (at the beginning of this call) and 2. the number of migrated objects. |
check_versions
()[source]¶Checks the whole database for incompatible objects.
This scans all the tables in search of objects that are not supported; i.e., those that are not specified in ironic.common.release_mappings.RELEASE_MAPPING. This includes objects that have null ‘version’ values.
Returns: | A Boolean. True if all the objects have supported versions; False otherwise. |
---|
get_nodeinfo_list
(columns=None, filters=None, limit=None, marker=None, sort_key=None, sort_dir=None)[source]¶get_ports_by_portgroup_id
(portgroup_id, limit=None, marker=None, sort_key=None, sort_dir=None)[source]¶get_volume_connectors_by_node_id
(node_id, limit=None, marker=None, sort_key=None, sort_dir=None)[source]¶get_volume_targets_by_node_id
(node_id, limit=None, marker=None, sort_key=None, sort_dir=None)[source]¶get_volume_targets_by_volume_id
(volume_id, limit=None, marker=None, sort_key=None, sort_dir=None)[source]¶register_conductor_hardware_interfaces
(conductor_id, hardware_type, interface_type, interfaces, default_interface)[source]¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.