Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paramiko > 3.4.1 cause to SSH session not active #905

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ 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
Expand Down
1 change: 0 additions & 1 deletion benchmark_runner/common/clouds/IBM/ibm_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,4 @@ 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)}')
5 changes: 5 additions & 0 deletions benchmark_runner/main/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
from multiprocessing import set_start_method
import platform

# @todo paramiko==3.4.1/3.5.0 cause to "RunCommandError: Cannot run shell command: SSH session not active"
import warnings
from cryptography.utils import CryptographyDeprecationWarning
warnings.filterwarnings("ignore", category=CryptographyDeprecationWarning)

from benchmark_runner.main.environment_variables import *
from benchmark_runner.common.logger.logger_time_stamp import logger_time_stamp, logger
from benchmark_runner.benchmark_operator.benchmark_operator_workloads import BenchmarkOperatorWorkloads
Expand Down