Merge "Add debug logs related to SSH connection establishment"
This commit is contained in:
@@ -135,8 +135,11 @@ class SSHShellProcessFixture(_process.ShellProcessFixture):
|
|||||||
LOG.debug(f"Create remote process... ({details})")
|
LOG.debug(f"Create remote process... ({details})")
|
||||||
try:
|
try:
|
||||||
client = ssh_client.connect()
|
client = ssh_client.connect()
|
||||||
|
LOG.debug("SSH client connected - Establishing session with "
|
||||||
|
f"timeout = {self.open_session_timeout}")
|
||||||
process = client.get_transport().open_session(
|
process = client.get_transport().open_session(
|
||||||
timeout=self.open_session_timeout)
|
timeout=self.open_session_timeout)
|
||||||
|
LOG.debug("Remote session created")
|
||||||
if environment:
|
if environment:
|
||||||
variables = " ".join(
|
variables = " ".join(
|
||||||
f"{name}={shlex.quote(value)}"
|
f"{name}={shlex.quote(value)}"
|
||||||
|
|||||||
@@ -398,6 +398,7 @@ class SSHClientFixture(tobiko.SharedFixture):
|
|||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
LOG.debug("SSH connection ensured")
|
||||||
return client
|
return client
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user