From 0ee73bfc9cfd50aa57e2b40c912d1c45a1d5f68b Mon Sep 17 00:00:00 2001 From: Eli Battat Date: Thu, 26 Sep 2024 21:04:05 +0300 Subject: [PATCH] wait for install complete --- .../common/clouds/BareMetal/bare_metal_operations.py | 1 + benchmark_runner/common/clouds/IBM/ibm_operations.py | 1 + 2 files changed, 2 insertions(+) diff --git a/benchmark_runner/common/clouds/BareMetal/bare_metal_operations.py b/benchmark_runner/common/clouds/BareMetal/bare_metal_operations.py index b67a5ac03..495b4166f 100644 --- a/benchmark_runner/common/clouds/BareMetal/bare_metal_operations.py +++ b/benchmark_runner/common/clouds/BareMetal/bare_metal_operations.py @@ -228,6 +228,7 @@ def run_ocp_installer(self): logger.info(f'Starting OCP assisted installer, Start time: {datetime.now().strftime(datetime_format)}') # Must add -t otherwise remote ssh of ansible will not end self._ssh.run(f"ssh -t provision \"{self._install_ocp_cmd()}\" ") + self._wait_for_install_complete() logger.info(f'OpenShift cluster {self._get_installation_version()} version is installed successfully, End time: {datetime.now().strftime(datetime_format)}') @logger_time_stamp diff --git a/benchmark_runner/common/clouds/IBM/ibm_operations.py b/benchmark_runner/common/clouds/IBM/ibm_operations.py index 93d751287..ffef61feb 100644 --- a/benchmark_runner/common/clouds/IBM/ibm_operations.py +++ b/benchmark_runner/common/clouds/IBM/ibm_operations.py @@ -92,4 +92,5 @@ def run_ocp_installer(self): logger.info(f'Starting OCP assisted installer, Start time: {datetime.now().strftime(datetime_format)}') # Must add -t otherwise remote ssh of ansible will not end self._ssh.run(cmd=f"ssh -t provision \"{self.__ibm_login_cmd()};{self._install_ocp_cmd()}\" ") + self._wait_for_install_complete() logger.info(f'OpenShift cluster {self._get_installation_version()} version is installed successfully, End time: {datetime.now().strftime(datetime_format)}')