예제 #1
0
파일: sbd.py 프로젝트: idevat/pcs
def set_sbd_config_on_all_nodes(
    report_processor, node_communicator, node_list, config, watchdog_dict
):
    """
    Send SBD configuration 'config' to all nodes in 'node_list'. Option
        SBD_OPTS="-n <node_name>" is added automatically.
    Raises LibraryError with all ReportItems in case of any failure.

    report_processor --
    node_communicator -- NodeCommunicator
    node_list -- NodeAddressesList
    config -- dictionary in format: <SBD config option>: <value>
    watchdog_dict -- dictionary of watchdogs where key is NodeAdresses object
        and value is path to watchdog
    """
    report_processor.process(reports.sbd_config_distribution_started())
    _run_parallel_and_raise_lib_error_on_failure(
        set_sbd_config_on_node,
        [
            (
                [
                    report_processor, node_communicator, node, config,
                    watchdog_dict.get(node)
                ],
                {}
            )
            for node in node_list
        ]
    )
예제 #2
0
def set_sbd_config_on_all_nodes(report_processor, node_communicator, node_list,
                                config, watchdog_dict):
    """
    Send SBD configuration 'config' to all nodes in 'node_list'. Option
        SBD_OPTS="-n <node_name>" is added automatically.
    Raises LibraryError with all ReportItems in case of any failure.

    report_processor --
    node_communicator -- NodeCommunicator
    node_list -- NodeAddressesList
    config -- dictionary in format: <SBD config option>: <value>
    watchdog_dict -- dictionary of watchdogs where key is NodeAdresses object
        and value is path to watchdog
    """
    report_processor.process(reports.sbd_config_distribution_started())
    _run_parallel_and_raise_lib_error_on_failure(set_sbd_config_on_node, [([
        report_processor, node_communicator, node, config,
        watchdog_dict.get(node)
    ], {}) for node in node_list])
예제 #3
0
파일: sbd.py 프로젝트: miz-take/pcs
 def before(self):
     self._report(reports.sbd_config_distribution_started())
예제 #4
0
파일: sbd.py 프로젝트: tomjelinek/pcs
 def before(self):
     self._report(reports.sbd_config_distribution_started())