ironic.db.sqlalchemy.models module

SQLAlchemy models for baremetal data.

class ironic.db.sqlalchemy.models.Allocation(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.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: sqlalchemy.ext.declarative.api.Base

Represents a bios setting of a bare metal node.

created_at
name
node_id
updated_at
value
version
class ironic.db.sqlalchemy.models.Chassis(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Represents a hardware chassis.

created_at
description
extra
id
updated_at
uuid
version
class ironic.db.sqlalchemy.models.Conductor(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.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: sqlalchemy.ext.declarative.api.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: sqlalchemy.ext.declarative.api.Base

Represents a deployment template.

created_at
extra
id
name
updated_at
uuid
version
class ironic.db.sqlalchemy.models.DeployTemplateStep(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.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.IronicBase[source]

Bases: oslo_db.sqlalchemy.models.TimestampMixin, oslo_db.sqlalchemy.models.ModelBase

as_dict()[source]
metadata = None
version = Column(None, String(length=15), table=None)
class ironic.db.sqlalchemy.models.Node(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Represents a bare metal node.

allocation_id
automated_clean
bios_interface
boot_interface
chassis_id
clean_step
conductor_affinity
conductor_group
console_enabled
console_interface
created_at
deploy_interface
deploy_step
description
driver
driver_info
driver_internal_info
extra
fault
id
inspect_interface
inspection_finished_at
inspection_started_at
instance_info
instance_uuid
last_error
maintenance
maintenance_reason
management_interface
name
network_interface
owner
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
storage_interface
target_power_state
target_provision_state
target_raid_config
updated_at
uuid
vendor_interface
version
class ironic.db.sqlalchemy.models.NodeTag(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.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: sqlalchemy.ext.declarative.api.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: sqlalchemy.ext.declarative.api.Base

Represents a network port of a bare metal node.

address
created_at
extra
id
internal_info
is_smartnic
node_id
physical_network
portgroup_id
pxe_enabled
updated_at
uuid
version
class ironic.db.sqlalchemy.models.Portgroup(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Represents a group of network ports of a bare metal node.

address
created_at
extra
id
internal_info
mode
name
node_id
properties
standalone_ports_supported
updated_at
uuid
version
class ironic.db.sqlalchemy.models.VolumeConnector(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.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: sqlalchemy.ext.declarative.api.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
ironic.db.sqlalchemy.models.get_class(model_name)[source]

Returns the model class with the specified name.

Parameters

model_name – the name of the class

Returns

the class with the specified name

Raises

Exception if there is no class associated with the name

ironic.db.sqlalchemy.models.table_args()[source]