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