ironic.db.sqlalchemy.models module¶
SQLAlchemy models for baremetal data.
- class ironic.db.sqlalchemy.models.Allocation(**kwargs)[source]¶
Bases:
Base
Represents an allocation of a node for deployment.
- candidate_nodes¶
- conductor_affinity¶
- created_at¶
- extra¶
- id¶
- last_error¶
- name¶
- node_id¶
- owner¶
- resource_class¶
- state¶
- traits¶
- updated_at¶
- uuid¶
- version¶
- class ironic.db.sqlalchemy.models.BIOSSetting(**kwargs)[source]¶
Bases:
Base
Represents a bios setting of a bare metal node.
- allowable_values¶
- attribute_type¶
- created_at¶
- lower_bound¶
- max_length¶
- min_length¶
- name¶
- node_id¶
- read_only¶
- reset_required¶
- unique¶
- updated_at¶
- upper_bound¶
- value¶
- version¶
- class ironic.db.sqlalchemy.models.Chassis(**kwargs)[source]¶
Bases:
Base
Represents a hardware chassis.
- created_at¶
- description¶
- extra¶
- id¶
- updated_at¶
- uuid¶
- version¶
- class ironic.db.sqlalchemy.models.Conductor(**kwargs)[source]¶
Bases:
Base
Represents a conductor service entry.
- conductor_group¶
- created_at¶
- drivers¶
- hostname¶
- id¶
- online¶
- updated_at¶
- version¶
- class ironic.db.sqlalchemy.models.ConductorHardwareInterfaces(**kwargs)[source]¶
Bases:
Base
Internal table used to track what is loaded on each conductor.
- conductor_id¶
- created_at¶
- default¶
- hardware_type¶
- id¶
- interface_name¶
- interface_type¶
- updated_at¶
- version¶
- class ironic.db.sqlalchemy.models.DeployTemplate(**kwargs)[source]¶
Bases:
Base
Represents a deployment template.
- created_at¶
- extra¶
- id¶
- name¶
- steps: Mapped[List[DeployTemplateStep]]¶
- updated_at¶
- uuid¶
- version¶
- class ironic.db.sqlalchemy.models.DeployTemplateStep(**kwargs)[source]¶
Bases:
Base
Represents a deployment step in a deployment template.
- args¶
- created_at¶
- deploy_template¶
- deploy_template_id¶
- id¶
- interface¶
- priority¶
- step¶
- updated_at¶
- version¶
- class ironic.db.sqlalchemy.models.FirmwareComponent(**kwargs)[source]¶
Bases:
Base
Represents the firmware information of a bare metal node.
- component¶
- created_at¶
- current_version¶
- id¶
- initial_version¶
- last_version_flashed¶
- node_id¶
- updated_at¶
- version¶
- class ironic.db.sqlalchemy.models.IronicBase[source]¶
Bases:
TimestampMixin
,ModelBase
- metadata = None¶
- version = Column(None, String(length=15), table=None)¶
- class ironic.db.sqlalchemy.models.Node(**kwargs)[source]¶
Bases:
NodeBase
Represents a bare metal node.
- allocation_id¶
- automated_clean¶
- bios_interface¶
- boot_interface¶
- boot_mode¶
- chassis_id¶
- clean_step¶
- conductor_affinity¶
- conductor_group¶
- console_enabled¶
- console_interface¶
- created_at¶
- deploy_interface¶
- deploy_step¶
- description¶
- disable_power_off¶
- driver¶
- driver_info¶
- driver_internal_info¶
- extra¶
- fault¶
- firmware_interface¶
- id¶
- inspect_interface¶
- inspection_finished_at¶
- inspection_started_at¶
- instance_info¶
- instance_uuid¶
- last_error¶
- lessee¶
- maintenance¶
- maintenance_reason¶
- management_interface¶
- name¶
- network_data¶
- network_interface¶
- owner¶
- parent_node¶
- power_interface¶
- power_state¶
- properties¶
- protected¶
- protected_reason¶
- provision_state¶
- provision_updated_at¶
- raid_config¶
- raid_interface¶
- rescue_interface¶
- reservation¶
- resource_class¶
- retired¶
- retired_reason¶
- secure_boot¶
- service_step¶
- shard¶
- storage_interface¶
- target_power_state¶
- target_provision_state¶
- target_raid_config¶
- updated_at¶
- uuid¶
- vendor_interface¶
- version¶
- class ironic.db.sqlalchemy.models.NodeBase(**kwargs)[source]¶
Bases:
Base
Represents a base bare metal node.
- allocation_id¶
- automated_clean¶
- bios_interface¶
- boot_interface¶
- boot_mode¶
- chassis_id¶
- clean_step¶
- conductor_affinity¶
- conductor_group¶
- console_enabled¶
- console_interface¶
- created_at¶
- deploy_interface¶
- deploy_step¶
- description¶
- disable_power_off¶
- driver¶
- driver_info¶
- driver_internal_info¶
- extra¶
- fault¶
- firmware_interface¶
- id¶
- inspect_interface¶
- inspection_finished_at¶
- inspection_started_at¶
- instance_info¶
- instance_uuid¶
- last_error¶
- lessee¶
- maintenance¶
- maintenance_reason¶
- management_interface¶
- name¶
- network_data¶
- network_interface¶
- owner¶
- parent_node¶
- power_interface¶
- power_state¶
- properties¶
- protected¶
- protected_reason¶
- provision_state¶
- provision_updated_at¶
- raid_config¶
- raid_interface¶
- rescue_interface¶
- reservation¶
- resource_class¶
- retired¶
- retired_reason¶
- secure_boot¶
- service_step¶
- shard¶
- storage_interface¶
- target_power_state¶
- target_provision_state¶
- target_raid_config¶
- updated_at¶
- uuid¶
- vendor_interface¶
- version¶
- class ironic.db.sqlalchemy.models.NodeHistory(**kwargs)[source]¶
Bases:
Base
Represents a history event of a bare metal node.
- conductor¶
- created_at¶
- event¶
- event_type¶
- id¶
- node_id¶
- severity¶
- updated_at¶
- user¶
- uuid¶
- version¶
- class ironic.db.sqlalchemy.models.NodeInventory(**kwargs)[source]¶
Bases:
Base
Represents an inventory of a baremetal node.
- created_at¶
- id¶
- inventory_data¶
- node_id¶
- plugin_data¶
- updated_at¶
- version¶
- class ironic.db.sqlalchemy.models.NodeTag(**kwargs)[source]¶
Bases:
Base
Represents a tag of a bare metal node.
- created_at¶
- node¶
- node_id¶
- tag¶
- updated_at¶
- version¶
- class ironic.db.sqlalchemy.models.NodeTrait(**kwargs)[source]¶
Bases:
Base
Represents a trait of a bare metal node.
- created_at¶
- node¶
- node_id¶
- trait¶
- updated_at¶
- version¶
- class ironic.db.sqlalchemy.models.Port(**kwargs)[source]¶
Bases:
Base
Represents a network port of a bare metal node.
- address¶
- created_at¶
- extra¶
- id¶
- internal_info¶
- is_smartnic¶
- local_link_connection¶
- name¶
- node_id¶
- node_uuid = ColumnAssociationProxyInstance(AssociationProxy('_node_uuid', 'uuid'))¶
- physical_network¶
- portgroup_id¶
- pxe_enabled¶
- updated_at¶
- uuid¶
- version¶
- class ironic.db.sqlalchemy.models.Portgroup(**kwargs)[source]¶
Bases:
Base
Represents a group of network ports of a bare metal node.
- address¶
- created_at¶
- extra¶
- id¶
- internal_info¶
- mode¶
- name¶
- node_id¶
- node_uuid = ColumnAssociationProxyInstance(AssociationProxy('_node_uuid', 'uuid'))¶
- properties¶
- standalone_ports_supported¶
- updated_at¶
- uuid¶
- version¶
- class ironic.db.sqlalchemy.models.Runbook(**kwargs)[source]¶
Bases:
Base
Represents a runbook.
- created_at¶
- disable_ramdisk¶
- extra¶
- id¶
- name¶
- owner¶
- public¶
- steps: Mapped[List[RunbookStep]]¶
- updated_at¶
- uuid¶
- version¶
- class ironic.db.sqlalchemy.models.RunbookStep(**kwargs)[source]¶
Bases:
Base
Represents a deployment step in a runbook.
- args¶
- created_at¶
- id¶
- interface¶
- order¶
- runbook¶
- runbook_id¶
- step¶
- updated_at¶
- version¶
- class ironic.db.sqlalchemy.models.VolumeConnector(**kwargs)[source]¶
Bases:
Base
Represents a volume connector of a bare metal node.
- connector_id¶
- created_at¶
- extra¶
- id¶
- node_id¶
- type¶
- updated_at¶
- uuid¶
- version¶
- class ironic.db.sqlalchemy.models.VolumeTarget(**kwargs)[source]¶
Bases:
Base
Represents a volume target of a bare metal node.
- boot_index¶
- created_at¶
- extra¶
- id¶
- node_id¶
- properties¶
- updated_at¶
- uuid¶
- version¶
- volume_id¶
- volume_type¶