Bug 2174352 - rhos18 on rhel9 - tempest.lib.exceptions.SSHTimeout: Connection to the 192.168.24.197 via SSH timed out.
Summary: rhos18 on rhel9 - tempest.lib.exceptions.SSHTimeout: Connection to the 192.1...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: distribution
Version: 18.0 (Zed)
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: ---
Assignee: OSP Team
QA Contact: Lon Hohberger
URL:
Whiteboard:
Depends On: 2174743
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-01 08:59 UTC by bshewale@redhat.com
Modified: 2023-03-07 14:21 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-07 14:20:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-22789 0 None None None 2023-03-01 09:00:13 UTC

Description bshewale@redhat.com 2023-03-01 08:59:17 UTC
Description of problem: rhos18 on rhel9  - tempest.lib.exceptions.SSHTimeout: Connection to the 192.168.24.197 via SSH timed out.


Version-Release number of selected component (if applicable): rhos18 on rhel9

Error log: 

    Response - Headers: {'x-openstack-request-id': 'req-16acb9be-5d55-43c2-b9a1-d271cf3d105e', 'date': 'Tue, 28 Feb 2023 21:54:39 GMT', 'connection': 'close', 'status': '204', 'content-location': 'http://192.168.24.3:9696/v2.0/floatingips/30d42391-7dfe-499c-8582-903c188afec2'}
        Body: b''
}}}

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/tempest/lib/common/ssh.py", line 131, in _get_ssh_connection
    ssh.connect(self.host, port=self.port, username=self.username,
  File "/usr/lib/python3.9/site-packages/paramiko/client.py", line 368, in connect
    raise NoValidConnectionsError(errors)
paramiko.ssh_exception.NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 192.168.24.197

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/tempest/common/utils/__init__.py", line 70, in wrapper
    return f(*func_args, **func_kwargs)
  File "/usr/lib/python3.9/site-packages/tempest/api/compute/servers/test_attach_interfaces.py", line 368, in test_add_remove_fixed_ip
    server, ifs, fip = self._create_server_get_interfaces()
  File "/usr/lib/python3.9/site-packages/tempest/api/compute/servers/test_attach_interfaces.py", line 88, in _create_server_get_interfaces
    self._wait_for_validation(server, validation_resources)
  File "/usr/lib/python3.9/site-packages/tempest/api/compute/servers/test_attach_interfaces.py", line 73, in _wait_for_validation
    linux_client.validate_authentication()
  File "/usr/lib/python3.9/site-packages/tempest/lib/common/utils/linux/remote_client.py", line 31, in wrapper
    return function(self, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/tempest/lib/common/utils/linux/remote_client.py", line 117, in validate_authentication
    self.ssh_client.test_connection_auth()
  File "/usr/lib/python3.9/site-packages/tempest/lib/common/ssh.py", line 240, in test_connection_auth
    connection = self._get_ssh_connection()
  File "/usr/lib/python3.9/site-packages/tempest/lib/common/ssh.py", line 150, in _get_ssh_connection
    raise exceptions.SSHTimeout(host=self.host,
tempest.lib.exceptions.SSHTimeout: Connection to the 192.168.24.197 via SSH timed out.
User: cirros, Password: password

Actual results: Tempest test are failing.


Expected results: Tempest test should pass


Additional info:

List of tempest test failure:

setUpClass (tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON)
tempest.api.compute.servers.test_attach_interfaces.AttachInterfacesUnderV243Test.test_add_remove_fixed_ip
tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_network_basic_ops
tempest.scenario.test_server_basic_ops.TestServerBasicOps.test_server_basic_ops

Comment 6 Dariusz 2023-03-07 14:20:31 UTC
The bug is solved.


Note You need to log in before you can comment on or make changes to this bug.