Merge "Add debug logs related to SSH connection establishment"

This commit is contained in:
Zuul
2025-11-06 14:32:00 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 0 deletions

View File

@@ -135,8 +135,11 @@ class SSHShellProcessFixture(_process.ShellProcessFixture):
LOG.debug(f"Create remote process... ({details})")
try:
client = ssh_client.connect()
LOG.debug("SSH client connected - Establishing session with "
f"timeout = {self.open_session_timeout}")
process = client.get_transport().open_session(
timeout=self.open_session_timeout)
LOG.debug("Remote session created")
if environment:
variables = " ".join(
f"{name}={shlex.quote(value)}"

View File

@@ -398,6 +398,7 @@ class SSHClientFixture(tobiko.SharedFixture):
else:
break
LOG.debug("SSH connection ensured")
return client
def close(self):