Pass retry limits when creating SSH connection

Change-Id: I4ca0d20f592c18bbf4ee49abdc07868c73248183
This commit is contained in:
Federico Ressi
2020-09-02 07:50:20 +02:00
parent 338f8410ff
commit c16d4c9f73
2 changed files with 16 additions and 8 deletions

View File

@@ -80,7 +80,9 @@ class HasUndercloudFixture(tobiko.SharedFixture):
def setup_fixture(self):
ssh_client = undercloud_ssh_client()
try:
ssh_client.connect(connection_attempts=1, timeout=15.)
ssh_client.connect(retry_count=1,
connection_attempts=1,
timeout=15.)
except Exception as ex:
LOG.debug('Unable to connect to undercloud host: %s', ex)
self.has_undercloud = False