Bases: IronicObject
, VersionedObjectDictCompat
Return the object represented as a dict.
The returned object is JSON-serialisable.
Create a Node record in the DB.
Column-wise updates will be made based on the result of self.what_changed(). If target_power_state is provided, it will be checked against the in-database copy of the node before updates are made.
context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Node(context)
InvalidParameterValue if some property values are invalid.
Pop a value from the driver_internal_info.
Removing a driver_internal_info dict value via this method ensures that this field will be flagged for saving.
key – Key of item to pop off the driver_internal_info dict
default_value – Value to return if the key doesn’t exist
The removed value, or default_value
Delete the Node from the DB.
context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Node(context)
Find a node based on its id or uuid and return a Node object.
context – Security context
node_id – the id or uuid of a node.
a Node
object.
Find a node based on its integer ID and return a Node object.
Find a node based on the instance UUID and return a Node object.
Get a node by associated port addresses.
Return a list of Node objects.
cls – the Node
context – Security context.
limit – maximum number of resources to return in a single result.
marker – pagination marker for large data sets.
sort_key – column to sort results by.
sort_dir – direction to sort. “asc” or “desc”.
filters – Filters to apply.
fields – Requested fields to be returned. Please note, some fields are mandatory for the data model and are automatically included. These are: id, version, updated_at, created_at, owner, and lessee.
a list of Node
object.
Refresh the object by re-fetching from the DB.
context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Node(context)
Release the reservation on a node.
context – Security context.
tag – A string uniquely identifying the reservation holder.
node_id – A node id or uuid.
NodeNotFound if the node is not found.
Get and reserve a node.
To prevent other ManagerServices from manipulating the given Node while a Task is performed, mark it reserved by this host.
Save updates to this Node.
Column-wise updates will be made based on the result of self.what_changed(). If target_power_state is provided, it will be checked against the in-database copy of the node before updates are made.
context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: Node(context)
InvalidParameterValue if some property values are invalid.
Set a driver_internal_info value.
Setting a driver_internal_info dict value via this method ensures that this field will be flagged for saving.
key – Key of item to set
value – Value of item to set
Set an instance_info value.
Setting a instance_info dict value via this method ensures that this field will be flagged for saving.
key – Key of item to set
value – Value of item to set
Set a driver_internal_info value with the current timestamp.
Setting a driver_internal_info timestamp value via this method ensures that this field will be flagged for saving.
key – Key of item to set the timestamp on
Touch the database record to mark the provisioning as alive.
Bases: NotificationBase
Notification emitted when ironic creates, updates or deletes a node.
Bases: NodePayload
Payload schema for when ironic creates, updates or deletes a node.
Bases: NotificationBase
Notification emitted when node console state changed.
Bases: NotificationBase
Notification for when a node’s power state is corrected in the database.
This notification is emitted when ironic detects that the actual power state on a bare metal hardware is different from the power state on an ironic node (DB). This notification is emitted after the database is updated to reflect this correction.
Bases: NodePayload
Notification payload schema for when a node’s power state is corrected.
“from_power” indicates the previous power state on the ironic node before the node was updated.
Bases: NotificationBase
Notification emitted when maintenance state changed via API.
Bases: NotificationPayloadBase
Base class used for all notification payloads about a Node object.
Bases: NotificationBase
Notification emitted when ironic changes a node’s power state.
Bases: NodePayload
Payload schema for when ironic changes a node’s power state.
Bases: NotificationBase
Notification emitted when ironic changes a node provision state.
Bases: NodePayload
Payload schema for when ironic changes a node provision state.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.