ironic.common.async_steps module¶
- ironic.common.async_steps.get_return_state(node)[source]¶
- Returns state based on operation being invoked. - Parameters:
- node – an ironic node object. 
- Returns:
- states.CLEANWAIT if cleaning operation in progress, or states.DEPLOYWAIT if deploy operation in progress, or states.SERVICEWAIT if servicing in progress. 
 
- ironic.common.async_steps.prepare_node_for_next_step(node, step_type=None)[source]¶
- Remove the flags responsible for the next step. - Cleans the polling and the skip-next step flags. - Parameters:
- node – A Node object 
- step_type – The type of steps to process: ‘clean’, ‘service’ or ‘deploy’. If None, detected from the node. 
 
- Returns:
- The last value of the skip-next flag. 
 
- ironic.common.async_steps.remove_node_flags(node)[source]¶
- Remove all flags for the node. - Parameters:
- node – A Node object 
 
- ironic.common.async_steps.set_node_flags(node, reboot=None, skip_current_step=None, polling=None, step_type=None)[source]¶
- Sets appropriate reboot flags in driver_internal_info based on operation - Parameters:
- node – an ironic node object. 
- reboot – Boolean value to set for node’s driver_internal_info flag cleaning_reboot, servicing_reboot or deployment_reboot based on the operation in progress. If it is None, corresponding reboot flag is not set in node’s driver_internal_info. 
- skip_current_step – Boolean value to set for node’s driver_internal_info flag skip_current_clean_step, skip_current_service_step or skip_current_deploy_step based on the operation in progress. If it is None, corresponding skip step flag is not set in node’s driver_internal_info. 
- polling – Boolean value to set for node’s driver_internal_info flag deployment_polling, servicing_polling or cleaning_polling. If it is None, the corresponding polling flag is not set in the node’s driver_internal_info. A polling flag is otherwise deleted from the node’s driver_internal_info. 
- step_type – The type of steps to process: ‘clean’, ‘service’ or ‘deploy’. If None, detected from the node. 
 
 
