Conduct all activity related to bare-metal deployments.
A single instance of ironic.conductor.manager.ConductorManager is created within the ironic-conductor process, and is responsible for performing all actions on bare metal resources (Chassis, Nodes, and Ports). Commands are received via RPCs. The conductor service also performs periodic tasks, eg. to monitor the status of active deployments.
Drivers are loaded via entrypoints by the ironic.common.driver_factory class. Each driver is instantiated only once, when the ConductorManager service starts. In this way, a single ConductorManager may use multiple drivers, and manage heterogeneous hardware.
When multiple ConductorManager are run on different hosts, they are all active and cooperatively manage all nodes in the deployment. Nodes are locked by each conductor when performing actions which change the state of that node; these locks are represented by the ironic.conductor.task_manager.TaskManager class.
A ironic.common.hash_ring.HashRing is used to distribute nodes across the set of active conductors which support each node’s driver. Rebalancing this ring can trigger various actions by each conductor, such as building or tearing down the TFTP environment for a node, notifying Neutron of a change, etc.
Bases: ironic.conductor.base_manager.BaseConductorManager
Ironic Conductor manager main class.
RPC method to continue cleaning a node.
This is useful for cleaning tasks that are async. When they complete, they call back via RPC, a new worker and lock are set up, and cleaning continues. This can also be used to resume cleaning on take_over.
Parameters: |
|
---|---|
Raises: | InvalidStateRequested if the node is not in CLEANWAIT state |
Raises: | NoFreeConductorWorker when there is no free worker to start async task |
Raises: | NodeLocked if node is locked by another conductor. |
Raises: | NodeNotFound if the node no longer appears in the database |
Raises: | NodeCleaningFailure if an internal error occurred when getting the next clean steps |
Perform an action on a VersionedObject instance.
Parameters: |
|
---|---|
Returns: | A tuple with the updates made to the object and the result of the action method |
Perform a backport of an object instance.
The default behavior of the base VersionedObjectSerializer, upon receiving an object with a version newer than what is in the local registry, is to call this method to request a backport of the object.
Parameters: |
|
---|---|
Returns: | The downgraded instance of objinst |
Perform an action on a VersionedObject class.
Parameters: |
|
---|---|
Returns: | The result of the action method, which may (or may not) be an instance of the implementing VersionedObject class. |