Example #1
0
def disable_sbd_service_on_all_nodes(report_processor, node_communicator,
                                     node_list):
    """
    Disable SBD service on all nodes in 'node_list'.
    Raises LibraryError with all ReportItems in case of any failure.

    report_processor --
    node_communicator -- NodeCommunicator
    node_list -- NodeAddressesList
    """
    report_processor.process(reports.sbd_disabling_started())
    _run_parallel_and_raise_lib_error_on_failure(
        disable_sbd_service_on_node,
        [([report_processor, node_communicator, node], {})
         for node in node_list])
Example #2
0
File: sbd.py Project: dchirikov/pcs
def disable_sbd_service_on_all_nodes(
    report_processor, node_communicator, node_list
):
    """
    Disable SBD service on all nodes in 'node_list'.
    Raises LibraryError with all ReportItems in case of any failure.

    report_processor --
    node_communicator -- NodeCommunicator
    node_list -- NodeAddressesList
    """
    report_processor.process(reports.sbd_disabling_started())
    _run_parallel_and_raise_lib_error_on_failure(
        disable_sbd_service_on_node,
        [
            ([report_processor, node_communicator, node], {})
            for node in node_list
        ]
    )
Example #3
0
File: sbd.py Project: miz-take/pcs
 def _get_before_report(self):
     return reports.sbd_disabling_started()
Example #4
0
 def _get_before_report(self):
     return reports.sbd_disabling_started()