From b4f8b42c8e3e9b65e71b4af80b0f6041204ffea1 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Thu, 2 Feb 2023 08:31:54 -0800 Subject: [PATCH] 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 --- ironic_tempest_plugin/tests/scenario/baremetal_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ironic_tempest_plugin/tests/scenario/baremetal_manager.py b/ironic_tempest_plugin/tests/scenario/baremetal_manager.py index ac4d5cc0..27b3c9d7 100644 --- a/ironic_tempest_plugin/tests/scenario/baremetal_manager.py +++ b/ironic_tempest_plugin/tests/scenario/baremetal_manager.py @@ -271,7 +271,8 @@ class BaremetalScenarioTest(manager.ScenarioTest): 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,