The _get_ssh_connection in ssh.py retries to connect without a sleep
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
High
|
Andrea Frittoli |
Bug Description
The code in _get_ssh_connection in ssh.py retries to connect without a sleep in case of socket error.
This can cause a SYN attack.
The retries shall be implemented as an exponential back-off.
def _get_ssh_
"""Returns an ssh connection to the specified host."""
_timeout = True
(...)
while not self._is_
try:
except socket.error:
except paramiko.
Changed in tempest: | |
milestone: | none → havana-3 |
By just single tempest process probably we will not kill a system, but it cause a lot of unnecessary stress anyway.