Disable use of the SSH agent for the rescue test
Paramiko, by default, attempts agent based authentication before
ever attempting password based authentication. But this doesn't
work so well if the environment has an agent running or thinks it
has an agent running, because it breaks the rescue test.
Instead, explicitly tell the tempest and thus paramiko to *not* use
the ssh-agent functionality.
Depends-On: https://review.opendev.org/c/openstack/tempest/+/872566
Change-Id: Ia2870579c7398d359b8d360fe7d1e42abb79b299
diff --git a/ironic_tempest_plugin/tests/scenario/baremetal_manager.py b/ironic_tempest_plugin/tests/scenario/baremetal_manager.py
index ac4d5cc..27b3c9d 100644
--- a/ironic_tempest_plugin/tests/scenario/baremetal_manager.py
+++ b/ironic_tempest_plugin/tests/scenario/baremetal_manager.py
@@ -271,7 +271,8 @@
password=rescue_password,
server=self.instance,
servers_client=servers_client,
- ssh_timeout=CONF.baremetal.rescue_timeout)
+ ssh_timeout=CONF.baremetal.rescue_timeout,
+ ssh_allow_agent=False)
linux_client.validate_authentication()
def unrescue_instance(self, instance, node, server_ip,