Module Expr Str ImportFrom alias identifier ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Expr Str Assign NameStore NameLoad Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Str Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Str Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str Assign NameStore Str Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str
N/A N/A 
Mapping of bare metal node states.

Setting the node `power_state` is handled by the conductor's power
synchronization thread. Based on the power state retrieved from the driver
for the node, the state is set to POWER_ON or POWER_OFF, accordingly.
Should this fail, the `power_state` value is left unchanged, and the node
is placed into maintenance mode.

The `power_state` can also be set manually via the API. A failure to change
the state leaves the current state unchanged. The node is NOT placed into
maintenance mode in this case.
 oslo_log log logging ironic.common fsm N/A LOG N/A N/A logging getLogger __name__ N/A VERBS N/A active deleted manage provide inspect abort clean deploy delete manage provide inspect abort clean N/A  Mapping of state-changing events that are PUT to the REST API

This is a mapping of target states which are PUT to the API, eg,
    PUT /v1/node/states/provision {'target': 'active'}

The dict format is:
    {target string used by the API: internal verb}

This provides a reference set of supported actions, and in the future
may be used to support renaming these actions.
 N/A NOSTATE None N/A  No state information.

This state is used with power_state to represent a lack of knowledge of
power state, and in target_*_state fields when there is no target.
 N/A ENROLL enroll N/A  Node is enrolled.

This state indicates that Ironic is aware of a node, but is not managing it.
 N/A VERIFYING verifying N/A  Node power management credentials are being verified.  N/A MANAGEABLE manageable N/A  Node is in a manageable state.

This state indicates that Ironic has verified, at least once, that it had
sufficient information to manage the hardware. While in this state, the node
is not available for provisioning (it must be in the AVAILABLE state for that).
 N/A AVAILABLE available N/A  Node is available for use and scheduling.

This state is replacing the NOSTATE state used prior to Kilo.
 N/A ACTIVE active N/A  Node is successfully deployed and associated with an instance.  N/A DEPLOYWAIT wait call-back N/A  Node is waiting to be deployed.

This will be the node `provision_state` while the node is waiting for
the driver to finish deployment.
 N/A DEPLOYING deploying N/A  Node is ready to receive a deploy request, or is currently being deployed.

A node will have its `provision_state` set to DEPLOYING briefly before it
receives its initial deploy request. It will also move to this state from
DEPLOYWAIT after the callback is triggered and deployment is continued
(disk partitioning and image copying).
 N/A DEPLOYFAIL deploy failed N/A  Node deployment failed.  N/A DEPLOYDONE deploy complete N/A  Node was successfully deployed.

This is mainly a target provision state used during deployment. A successfully
deployed node should go to ACTIVE status.
 N/A DELETING deleting N/A  Node is actively being torn down.  N/A DELETED deleted N/A  Node tear down was successful.

In Juno, target_provision_state was set to this value during node tear down.

In Kilo, this will be a transitory value of provision_state, and never
represented in target_provision_state.
 N/A CLEANING cleaning N/A  Node is being automatically cleaned to prepare it for provisioning.  N/A CLEANWAIT clean wait N/A  Node is waiting for a clean step to be finished.

This will be the node's `provision_state` while the node is waiting for
the driver to finish a cleaning step.
 N/A CLEANFAIL clean failed N/A  Node failed cleaning. This requires operator intervention to resolve.  N/A ERROR error N/A  An error occurred during node processing.

The `last_error` attribute of the node details should contain an error message.
 N/A REBUILD rebuild N/A  Node is to be rebuilt.

This is not used as a state, but rather as a "verb" when changing the node's
provision_state via the REST API.
 N/A INSPECTING inspecting N/A  Node is under inspection.

This is the provision state used when inspection is started. A successfully
inspected node shall transition to MANAGEABLE status.
 N/A INSPECTFAIL inspect failed N/A  Node inspection failed.  N/A UPDATE_ALLOWED_STATES N/A DEPLOYFAIL INSPECTING INSPECTFAIL CLEANFAIL ERROR VERIFYING N/A Transitional states in which we allow updating a node. N/A DELETE_ALLOWED_STATES N/A AVAILABLE NOSTATE MANAGEABLE ENROLL N/A States in which node deletion is allowed. N/A STABLE_STATES N/A ENROLL MANAGEABLE AVAILABLE ACTIVE ERROR N/A States that will not transition unless receiving a request. N/A POWER_ON power on N/A  Node is powered on.  N/A POWER_OFF power off N/A  Node is powered off.  N/A REBOOT rebooting N/A  Node is rebooting.  on_exit N/A N/A old_state event N/A N/A N/A Used to log when a state is exited. N/A N/A N/A LOG debug Exiting old state '%s' in response to event '%s' old_state event N/A on_enter N/A N/A new_state event N/A N/A N/A Used to log when entering a state. N/A N/A N/A LOG debug Entering new state '%s' in response to event '%s' new_state event N/A N/A watchers N/A N/A N/A watchers N/A on_exit on_exit N/A N/A watchers N/A on_enter on_enter N/A machine N/A N/A fsm FSM N/A state STABLE_STATES N/A N/A N/A N/A machine add_state state stable True watchers N/A N/A N/A machine add_state VERIFYING target MANAGEABLE watchers N/A N/A N/A machine add_state DEPLOYING target ACTIVE watchers N/A N/A N/A machine add_state DEPLOYWAIT target ACTIVE watchers N/A N/A N/A machine add_state DEPLOYFAIL target ACTIVE watchers N/A N/A N/A machine add_state CLEANING target AVAILABLE watchers N/A N/A N/A machine add_state CLEANWAIT target AVAILABLE watchers N/A N/A N/A machine add_state CLEANFAIL target AVAILABLE watchers N/A N/A N/A machine add_state DELETING target AVAILABLE watchers N/A N/A N/A machine add_transition AVAILABLE DEPLOYING deploy N/A N/A N/A machine add_state INSPECTING target MANAGEABLE watchers N/A N/A N/A machine add_state INSPECTFAIL target MANAGEABLE watchers N/A N/A N/A machine add_transition DEPLOYING DEPLOYFAIL fail N/A N/A N/A machine add_transition DEPLOYFAIL DEPLOYING rebuild N/A N/A N/A machine add_transition DEPLOYFAIL DEPLOYING deploy N/A N/A N/A machine add_transition DEPLOYING DEPLOYWAIT wait N/A N/A N/A machine add_transition DEPLOYWAIT DEPLOYING resume N/A N/A N/A machine add_transition DEPLOYWAIT DEPLOYFAIL fail N/A N/A N/A machine add_transition DEPLOYING ACTIVE done N/A N/A N/A machine add_transition ACTIVE DEPLOYING rebuild N/A N/A N/A machine add_transition ACTIVE DELETING delete N/A N/A N/A machine add_transition DEPLOYWAIT DELETING delete N/A N/A N/A machine add_transition DEPLOYFAIL DELETING delete N/A N/A N/A machine add_transition DELETING ERROR error N/A N/A N/A machine add_transition DELETING CLEANING clean N/A N/A N/A machine add_transition CLEANING AVAILABLE done N/A N/A N/A machine add_transition CLEANING CLEANFAIL fail N/A N/A N/A machine add_transition CLEANWAIT CLEANFAIL fail N/A N/A N/A machine add_transition CLEANWAIT CLEANFAIL abort N/A N/A N/A machine add_transition CLEANING CLEANWAIT wait N/A N/A N/A machine add_transition CLEANWAIT CLEANING resume N/A N/A N/A machine add_transition CLEANFAIL MANAGEABLE manage N/A N/A N/A machine add_transition MANAGEABLE CLEANING provide N/A N/A N/A machine add_transition MANAGEABLE CLEANING clean N/A N/A N/A machine add_transition CLEANING MANAGEABLE manage N/A N/A N/A machine add_transition AVAILABLE MANAGEABLE manage N/A N/A N/A machine add_transition ERROR DEPLOYING rebuild N/A N/A N/A machine add_transition ERROR DELETING delete N/A N/A N/A machine add_transition MANAGEABLE INSPECTING inspect N/A N/A N/A machine add_transition INSPECTING MANAGEABLE done N/A N/A N/A machine add_transition INSPECTING INSPECTFAIL fail N/A N/A N/A machine add_transition INSPECTFAIL MANAGEABLE manage N/A N/A N/A machine add_transition INSPECTFAIL INSPECTING inspect N/A N/A N/A machine add_transition ENROLL VERIFYING manage N/A N/A N/A machine add_transition VERIFYING MANAGEABLE done N/A N/A N/A machine add_transition VERIFYING ENROLL fail