Esempio n. 1
0
def enable_sbd_service_on_all_nodes(report_processor, node_communicator,
                                    node_list):
    """
    Enable 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_enabling_started())
    _run_parallel_and_raise_lib_error_on_failure(
        enable_sbd_service_on_node,
        [([report_processor, node_communicator, node], {})
         for node in node_list])
Esempio n. 2
0
File: sbd.py Progetto: dchirikov/pcs
def enable_sbd_service_on_all_nodes(
        report_processor, node_communicator, node_list
):
    """
    Enable 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_enabling_started())
    _run_parallel_and_raise_lib_error_on_failure(
        enable_sbd_service_on_node,
        [
            ([report_processor, node_communicator, node], {})
            for node in node_list
        ]
    )
Esempio n. 3
0
File: sbd.py Progetto: miz-take/pcs
 def _get_before_report(self):
     return reports.sbd_enabling_started()
Esempio n. 4
0
 def _get_before_report(self):
     return reports.sbd_enabling_started()