Description of problem: Ironic tempest plugin rescue scenario test fails when trying to ssh to the ironic node. While debugging the ``rescue`` test functionality with ironic's tempest plugin, we discovered that if the environment suggests the agent is available, then we may enter a situation where the test can fail because paramiko prefers ssh over password authentication. This is important, because for rescue functionality in particular, it is password authentication based without the use of SSH keys, as a temporary password is generated by the services and provided to the user requesting to rescue the instance/node. Instead of trying to make an assumption that password being present means we should just disable the agent, explicitly allow the caller to specify it. Version-Release number of selected component (if applicable): How reproducible: Every time Steps to Reproduce: 1. run ironic tempest rescue test via jenkins 2. 3. Actual results: ssh with new user and password fails Expected results: ssh succeeds and test passes Additional info: using a workaround with "unset SSH_AUTH_SOCK" just before the test run does solve the issue, but it is unfeasible to use this for just this test, it would impact all tempest tests for all teams. test case code, use rescue mode: https://github.com/openstack/ironic-tempest-plugin/blob/cda96d5ca3f84a5b883fee521bbabbe1c283c2a0/ironic_tempest_plugin/tests/scenario/test_baremetal_basic_ops.py#L258 upstream fixes: https://review.opendev.org/c/openstack/tempest/+/872566 https://review.opendev.org/c/openstack/ironic-tempest-plugin/+/872567
The Fixed in version package contains the desired feature and it's available in the latest compose.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2023:4577