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
-
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
-
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
-
id
-
name
-
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.IronicBase[source]
Bases: TimestampMixin
, ModelBase
-
as_dict()[source]
-
metadata = None
-
version = Column(None, String(length=15), table=None)
-
class ironic.db.sqlalchemy.models.Node(**kwargs)[source]
Bases: Base
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
-
driver
-
driver_info
-
driver_internal_info
-
fault
-
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
-
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
-
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.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
-
id
-
internal_info
-
is_smartnic
-
local_link_connection
-
name
-
node_id
-
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
-
id
-
internal_info
-
mode
-
name
-
node_id
-
properties
-
standalone_ports_supported
-
updated_at
-
uuid
-
version
-
class ironic.db.sqlalchemy.models.VolumeConnector(**kwargs)[source]
Bases: Base
Represents a volume connector of a bare metal node.
-
connector_id
-
created_at
-
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
-
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]