You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running more than 1 command against a Cisco IOS-XE network device a SessionError exception is raised but is empty (no message or stack), this doesn't occur against NXOS devices or any other Linux host I was able to test against (Ubuntu, RHEL, CentOS) but does occur on both vIOS (using CML/Cisco Modeling Labs) and physical IOS-XE devices
To Reproduce
Steps to reproduce the behavior:
Connect to a Cisco IOS-XE device (virtual or physical)
Run 2 or more commands (commands are arbitrary as long as they are valid)
Expected behavior
HostOutput object is returned and stdout generator is iterable to get the command output
Actual behaviour
First command succeeds and returns as expected, 2nd command fails with a pssh.exceptions.SessionError that is empty and contains no detail or messages
Tested IOS-XE 15.9 vIOS, IOS-XE 16.3.x physical and IOS-XE 17.03 physical - all with the same failure
This failure is repeatable with both SSHClient and ParallelSSHClient, on ParallelSSHClient I tried also doing stop_on_errors=True on run_command hoping to get more failure detail but didn't see anything different
The text was updated successfully, but these errors were encountered:
Describe the bug
When running more than 1 command against a Cisco IOS-XE network device a SessionError exception is raised but is empty (no message or stack), this doesn't occur against NXOS devices or any other Linux host I was able to test against (Ubuntu, RHEL, CentOS) but does occur on both vIOS (using CML/Cisco Modeling Labs) and physical IOS-XE devices
To Reproduce
Steps to reproduce the behavior:
Expected behavior
HostOutput object is returned and
stdout
generator is iterable to get the command outputActual behaviour
First command succeeds and returns as expected, 2nd command fails with a
pssh.exceptions.SessionError
that is empty and contains no detail or messagesCode
Error Output
Workaround
I was able to get multiple commands working only if I do a
ssh_client.disconnect()
then do another full connection to the deviceTroubleshooting Steps
ssh_client.close_channel(command_output_one.channel)
python3.9
,python3.10
andpython3.11
with the same resultAdditional information
pip freeze output:
$ pip freeze | grep ssh parallel-ssh==2.12.0 ssh-python==1.0.0 ssh2-python==1.0.0
Tested IOS-XE 15.9 vIOS, IOS-XE 16.3.x physical and IOS-XE 17.03 physical - all with the same failure
This failure is repeatable with both SSHClient and ParallelSSHClient, on ParallelSSHClient I tried also doing
stop_on_errors=True
onrun_command
hoping to get more failure detail but didn't see anything differentThe text was updated successfully, but these errors were encountered: