def _reports_skip_new_node(new_node_name, reason_type): assert reason_type in {"unreachable", "not_live_cib"} return [ reports.files_distribution_skipped(reason_type, ["pacemaker authkey"], [new_node_name]), reports.service_commands_on_nodes_skipped( reason_type, ["pacemaker_remote start", "pacemaker_remote enable"], [new_node_name]), ]
def _report_skip_live_parts_in_remove(node_names_list): return [ reports.service_commands_on_nodes_skipped( "not_live_cib", ["pacemaker_remote stop", "pacemaker_remote disable"], node_names_list), reports.files_remove_from_nodes_skipped("not_live_cib", ["pacemaker authkey"], node_names_list) ]
def _report_skip_live_parts_in_remove(node_names_list): return [ reports.service_commands_on_nodes_skipped( "not_live_cib", ["pacemaker_remote stop", "pacemaker_remote disable"], node_names_list ), reports.files_remove_from_nodes_skipped( "not_live_cib", ["pacemaker authkey"], node_names_list ) ]
def _reports_skip_new_node(new_node_name, reason_type): assert reason_type in {"unreachable", "not_live_cib"} return [ reports.files_distribution_skipped( reason_type, ["pacemaker authkey"], [new_node_name] ), reports.service_commands_on_nodes_skipped( reason_type, ["pacemaker_remote start", "pacemaker_remote enable"], [new_node_name] ), ]