From 75c141bf4917fb5078f9796b0fea2bad94c972ba Mon Sep 17 00:00:00 2001 From: cc <18856836718@163.com> Date: Mon, 1 Apr 2024 15:37:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=B8=AD=20a-fot=E4=BE=9D?= =?UTF-8?q?=E8=B5=96perf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/install_dependency/src/handler/connect_check.py | 2 +- tools/install_dependency/src/machine/machine.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/install_dependency/src/handler/connect_check.py b/tools/install_dependency/src/handler/connect_check.py index 3392771..cf142e7 100644 --- a/tools/install_dependency/src/handler/connect_check.py +++ b/tools/install_dependency/src/handler/connect_check.py @@ -36,7 +36,7 @@ class ConnectCheck(Handler): LOGGER.error(f"-- [error] Connect {ip} failed. Because of {str(e)}") del data[constant.MACHINE] return False - if data.get(constant.INSTRUCTION) == "deploy_iso" and role in ("devkit", "executor"): + if data.get(constant.INSTRUCTION) == "deploy_iso": machine_instance.set_mirror() return True diff --git a/tools/install_dependency/src/machine/machine.py b/tools/install_dependency/src/machine/machine.py index a6d798d..2b171cb 100644 --- a/tools/install_dependency/src/machine/machine.py +++ b/tools/install_dependency/src/machine/machine.py @@ -172,6 +172,7 @@ class Machine: self.clear_tmp_file_at_remote_machine(ssh_client, remote_file_list) def install_a_fot(self, component_name, sftp_client, ssh_client): + self._remote_exec_command("sudo yum install -y perf", ssh_client) saved_path = os.path.join(constant.DEFAULT_PATH, "a-fot.tar.gz") remote_file = os.path.abspath(os.path.join('/tmp', saved_path)) LOGGER.debug(f"Transport local_file: {saved_path} to remote machine {self.ip} " -- Gitee