Fix NoSuchOptError wrt CONF.validation.ssh_key_type
This option isn't available in older versions of tempest, since manila-tempest-plugin is branchless, we will need to handle this situation gracefully. Currently, all scenario tests with stable/train are failing. Sample failure: https://paste.opendev.org/show/b9HiHJHTNbtL1z6Emnpe/ Change-Id: I36d5b5a32f27065c42e31ff231c55fc16bf18fda Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
This commit is contained in:
parent
669e92c68e
commit
35b2bf1425
@ -71,8 +71,13 @@ class RemoteClient(object):
|
|||||||
self.servers_client = servers_client
|
self.servers_client = servers_client
|
||||||
self.log_console = CONF.compute_feature_enabled.console_output
|
self.log_console = CONF.compute_feature_enabled.console_output
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
if CONF.validation.ssh_key_type:
|
|
||||||
|
try:
|
||||||
kwargs['ssh_key_type'] = CONF.validation.ssh_key_type
|
kwargs['ssh_key_type'] = CONF.validation.ssh_key_type
|
||||||
|
except Exception:
|
||||||
|
# Not all versions of tempest support the
|
||||||
|
# "validation.ssh_key_type" config option
|
||||||
|
pass
|
||||||
|
|
||||||
self.ssh_client = ssh.Client(
|
self.ssh_client = ssh.Client(
|
||||||
ip_address, username, password, pkey=pkey, **kwargs)
|
ip_address, username, password, pkey=pkey, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user