Intermittent ssh connection timeout failure.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Invalid
|
Low
|
Hayde Martinez |
Bug Description
Brief Description
-----------------
Running sanity some commands failed to execute due to a timeout error.
Severity
--------
Major
Steps to Reproduce
-------------------
$openstack volume create --size SIZE_IN_GB name
$openstack network create name
$ openstack server create --image <image> --flavor <flavor> --nic net-id=<net-id> <net-name>
Expected Behavior
------------------
the ssh commands should succeed
Actual Behavior
----------------
the commands fails whit the following error:
SSHClientException: Timed out in 30 seconds
notice that this is an intermittent problem, previous or latter commands may work
Reproducibility
---------------
Intermittent
System Configuration
-------
Duplex & 2+2 virtual
Branch/Pull Time/Commit
-------
OS="centos"
SW_VERSION="19.01"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID=
JOB="STX_
<email address hidden>"
BUILD_NUMBER="128"
BUILD_HOST=
BUILD_DATE=
Last Pass
---------
31 May 2019
Timestamp/Logs
--------------
we are working on getting logs
Test Activity
-------------
[Sanity]
description: | updated |
Changed in starlingx: | |
importance: | Undecided → Low |
As the behavior is that in a continuous stream of SSH connections, some of those fails with SSH, then script might help to reproduce the issue:
```
#!/usr/bin/env python
import sys, paramiko
if len(sys.argv) < 4:
print "args missing"
sys.exit(1)
hostname = sys.argv[1]
password = sys.argv[2]
command = sys.argv[3]
username = "admin"
port = 22
try: SSHClient( ) load_system_ host_keys( ) set_missing_ host_key_ policy( paramiko. WarningPolicy)
client = paramiko.
client.
client.
client. connect( hostname, port=port, username=username, password=password)
stdin, stdout, stderr = client. exec_command( command)
print stdout.read(),
finally:
client.close()
```
Run it with:
python ssh_test.py 10.10.10.2 St8rlingX* "source /etc/platform/ openrc && system host-list"