コード例 #1
0
def check_sbd_on_all_nodes(report_processor, node_communicator,
                           nodes_watchdog):
    """
    Checks SBD (if SBD is installed and watchdog exists) on all NodeAddresses
        defined as keys in data.
    Raises LibraryError with all ReportItems in case of any failure.

    report_processor --
    node_communicator -- NodeCommunicator
    nodes_watchdog -- dictionary with NodeAddresses as keys and watchdog path
        as value
    """
    report_processor.process(reports.sbd_check_started())
    _run_parallel_and_raise_lib_error_on_failure(
        check_sbd_on_node,
        [([report_processor, node_communicator, node, watchdog], {})
         for node, watchdog in sorted(nodes_watchdog.items())])
コード例 #2
0
ファイル: sbd.py プロジェクト: dchirikov/pcs
def check_sbd_on_all_nodes(report_processor, node_communicator, nodes_watchdog):
    """
    Checks SBD (if SBD is installed and watchdog exists) on all NodeAddresses
        defined as keys in data.
    Raises LibraryError with all ReportItems in case of any failure.

    report_processor --
    node_communicator -- NodeCommunicator
    nodes_watchdog -- dictionary with NodeAddresses as keys and watchdog path
        as value
    """
    report_processor.process(reports.sbd_check_started())
    _run_parallel_and_raise_lib_error_on_failure(
        check_sbd_on_node,
        [
            ([report_processor, node_communicator, node, watchdog], {})
            for node, watchdog in sorted(nodes_watchdog.items())
        ]
    )
コード例 #3
0
ファイル: sbd.py プロジェクト: cwjenkins/pcs
def check_sbd_on_all_nodes(report_processor, node_communicator, nodes_data):
    """
    Checks SBD (if SBD is installed and watchdog exists) on all NodeAddresses
        defined as keys in nodes_data.
    Raises LibraryError with all ReportItems in case of any failure.

    report_processor --
    node_communicator -- NodeCommunicator
    nodes_data -- dictionary with NodeAddresses as keys and dict (with keys
        'watchdog' and 'device_list') as value
    """
    report_processor.process(reports.sbd_check_started())
    data_list = []
    for node, data in sorted(nodes_data.items()):
        data_list.append(([
            report_processor, node_communicator, node, data["watchdog"],
            data["device_list"]
        ], {}))

    _run_parallel_and_raise_lib_error_on_failure(check_sbd_on_node, data_list)
コード例 #4
0
ファイル: sbd.py プロジェクト: miz-take/pcs
 def before(self):
     self._report(reports.sbd_check_started())
コード例 #5
0
ファイル: sbd.py プロジェクト: tomjelinek/pcs
 def before(self):
     self._report(reports.sbd_check_started())