Add support to chose ssh key type
Tempest will always use rsa keys. This change adds
the possibility to the admins to set their preferred
ssh key type via config file.
Change-Id: I19ed529a1b55c75e8f48a52edc9095be97a485a5
diff --git a/manila_tempest_tests/common/remote_client.py b/manila_tempest_tests/common/remote_client.py
index 9970b0b..440bee2 100644
--- a/manila_tempest_tests/common/remote_client.py
+++ b/manila_tempest_tests/common/remote_client.py
@@ -71,8 +71,12 @@
self.server = server
self.servers_client = servers_client
self.log_console = CONF.compute_feature_enabled.console_output
+ kwargs = {}
+ if CONF.validation.ssh_key_type:
+ kwargs['ssh_key_type'] = CONF.validation.ssh_key_type
- self.ssh_client = ssh.Client(ip_address, username, password, pkey=pkey)
+ self.ssh_client = ssh.Client(
+ ip_address, username, password, pkey=pkey, **kwargs)
@debug_ssh
def exec_command(self, cmd):