예제 #1
0
 def setUp(self):
     self.env_assist, self.config = get_env_tools(self)
     self.config.runner.cib.load(resources=self.fixture_multi_resources)
     self.multiple_result_reports = (fixture.ReportStore().error(
         "multiple_result_found",
         report_codes.MULTIPLE_RESULTS_FOUND,
         result_identifier_list=[
             VIRTUAL_MACHINE_ID,
             REMOTE_HOST,
             "C",
         ],
         result_type="resource",
         search_description=REMOTE_HOST,
         force_code=report_codes.FORCE_REMOVE_MULTIPLE_NODES).as_warn(
             "multiple_result_found",
             "multiple_result_found_warn",
         ))
예제 #2
0
 def setUp(self):
     self.env_assist, self.config = get_env_tools(self)
     self.remove_resource = mock.Mock()
     (self.config.runner.cib.load(resources=self.fixture_multi_resources))
     self.multiple_result_reports = (fixture.ReportStore().error(
         "multiple_result_found",
         report_codes.MULTIPLE_RESULTS_FOUND,
         result_identifier_list=[
             NODE_NAME,
             REMOTE_HOST,
         ],
         result_type="resource",
         search_description=REMOTE_HOST,
         force_code=report_codes.FORCE_REMOVE_MULTIPLE_NODES).as_warn(
             "multiple_result_found",
             "multiple_result_found_warn",
         ))
     self.config.env.set_known_hosts_dests({
         NODE_NAME: NODE_DEST_LIST,
         REMOTE_HOST: REMOTE_DEST_LIST,
     })
예제 #3
0
 def setUp(self):
     self.env_assist, self.config = get_env_tools(self)
     self.config.runner.cib.load(resources=self.fixture_multi_resources)
     self.multiple_result_reports = (fixture.ReportStore().error(
         "multiple_result_found",
         report_codes.MULTIPLE_RESULTS_FOUND,
         result_identifier_list=[
             VIRTUAL_MACHINE_ID,
             REMOTE_HOST,
             "C",
         ],
         result_type="resource",
         search_description=REMOTE_HOST,
         force_code=report_codes.FORCE_REMOVE_MULTIPLE_NODES).as_warn(
             "multiple_result_found",
             "multiple_result_found_warn",
         ))
     self.dest_list_b = [Destination("B-ADDR", 2224)]
     self.config.env.set_known_hosts_dests({
         NODE_NAME: NODE_DEST_LIST,
         REMOTE_HOST: REMOTE_DEST_LIST,
         "B-NAME": self.dest_list_b,
     })
예제 #4
0
            },
            **kwargs)


REPORTS = (fixture.ReportStore().info(
    "authkey_distribution_started",
    report_codes.FILES_DISTRIBUTION_STARTED,
    file_list=["pacemaker authkey"],
).info(
    "authkey_distribution_success",
    report_codes.FILE_DISTRIBUTION_SUCCESS,
    file_description="pacemaker authkey",
).info(
    "pcmk_remote_start_enable_started",
    report_codes.SERVICE_COMMANDS_ON_NODES_STARTED,
    action_list=[
        "pacemaker_remote start",
        "pacemaker_remote enable",
    ],
).info(
    "pcmk_remote_enable_success",
    report_codes.SERVICE_COMMAND_ON_NODE_SUCCESS,
    service_command_description="pacemaker_remote enable",
).info(
    "pcmk_remote_start_success",
    report_codes.SERVICE_COMMAND_ON_NODE_SUCCESS,
    service_command_description="pacemaker_remote start",
))

EXTRA_REPORTS = (fixture.ReportStore().error(
    "manage_services_connection_failed",
    report_codes.NODE_COMMUNICATION_ERROR_UNABLE_TO_CONNECT,
예제 #5
0
                                     **kwargs)


REPORTS = (fixture.ReportStore().info(
    "pcmk_remote_disable_stop_started",
    report_codes.SERVICE_COMMANDS_ON_NODES_STARTED,
    action_list=[
        "pacemaker_remote stop",
        "pacemaker_remote disable",
    ],
    description="stop of service pacemaker_remote",
).info(
    "pcmk_remote_disable_success",
    report_codes.SERVICE_COMMAND_ON_NODE_SUCCESS,
    service_command_description="pacemaker_remote disable",
).info(
    "pcmk_remote_stop_success",
    report_codes.SERVICE_COMMAND_ON_NODE_SUCCESS,
    service_command_description="pacemaker_remote stop",
).info(
    "authkey_remove_started",
    report_codes.FILES_REMOVE_FROM_NODE_STARTED,
    file_list=["pacemaker_remote authkey"],
    description="remote node files",
).info(
    "authkey_remove_success",
    report_codes.FILE_REMOVE_FROM_NODE_SUCCESS,
    file_description="pacemaker_remote authkey",
))

EXTRA_REPORTS = (fixture.ReportStore().error(
    "manage_services_connection_failed",