Exemple #1
0
def base_reports_for_host(host=NODE_NAME):
    return (
        FIXTURE_REPORTS.adapt("authkey_distribution_started", node_list=[host])
        .adapt("authkey_distribution_success", node=host)
        .adapt("pcmk_remote_start_enable_started", node_list=[host])
        .adapt("pcmk_remote_enable_success", node=host)
        .adapt("pcmk_remote_start_success", node=host)
    )
Exemple #2
0

class LocalConfig(EnvConfigMixin):
    def load_cluster_configs(self, cluster_node_list):
        (self.config.runner.cib.load().corosync_conf.load(
            node_name_list=cluster_node_list).runner.pcmk.load_agent(
                agent_name="ocf:pacemaker:remote"))


get_env_tools = partial(get_env_tools, local_extensions={"local": LocalConfig})

REPORTS = (FIXTURE_REPORTS.adapt("authkey_distribution_started",
                                 node_list=[NODE_NAME]).adapt(
                                     "authkey_distribution_success",
                                     node=NODE_NAME).adapt(
                                         "pcmk_remote_start_enable_started",
                                         node_list=[NODE_NAME]).adapt(
                                             "pcmk_remote_enable_success",
                                             node=NODE_NAME).adapt(
                                                 "pcmk_remote_start_success",
                                                 node=NODE_NAME))
EXTRA_REPORTS = FIXTURE_EXTRA_REPORTS.adapt_multi(
    [
        "manage_services_connection_failed",
        "manage_services_connection_failed_warn",
        "put_file_connection_failed",
        "put_file_connection_failed_warn",
        "pcmk_remote_enable_failed",
        "pcmk_remote_enable_failed_warn",
        "pcmk_remote_start_failed",
        "pcmk_remote_start_failed_warn",
        "authkey_distribution_failed",