Example #1
0
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]),
    ]
Example #2
0
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)
    ]
Example #3
0
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
        )
    ]
Example #4
0
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]
        ),
    ]