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())])
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()) ] )
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)
def before(self): self._report(reports.sbd_check_started())
def before(self): self._report(reports.sbd_check_started())