Bug 2174726 - Tempest Test Fails in downstream: setUpClass (tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON)
Summary: Tempest Test Fails in downstream: setUpClass (tempest.api.compute.servers.tes...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tempest
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Lukas Piwowarski
QA Contact: Martin Kopec
URL:
Whiteboard:
Depends On: 2174566
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-02 10:02 UTC by Martin Kopec
Modified: 2023-06-07 17:28 UTC (History)
5 users (show)

Fixed In Version: openstack-tempest-31.1.0-0.20230306170855.56d259d.el9osttrunk
Doc Type: No Doc Update
Doc Text:
Clone Of: 2174566
Environment:
Last Closed: 2023-04-06 09:48:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 973307 0 None None None 2023-03-02 10:04:38 UTC
Launchpad 1996468 0 None None None 2023-03-02 10:04:38 UTC
OpenStack gerrit 855047 0 None MERGED Update server details before getting fixed IP 2023-03-02 10:04:38 UTC
OpenStack gerrit 864378 0 None MERGED Fix error KeyError: 'addresses' for two tests 2023-03-02 10:04:38 UTC
Red Hat Issue Tracker OSP-22811 0 None None None 2023-03-02 10:04:42 UTC

Description Martin Kopec 2023-03-02 10:02:43 UTC
+++ This bug was initially created as a clone of Bug #2174566 +++

Description of problem:
Tempest Test fails in OSP Downstream:
	
setUpClass (tempest.api.compute.servers.test_server_actions

ServerActionsTestJSON)

Version-Release number of selected component (if applicable):
OSP 17.0

How reproducible:
Run Tempest Test in downstream

Steps to Reproduce:
1.
2.
3.

Actual results:
Test fails 

Expected results:
Should pass

Additional info:

--- Additional comment from Alex Yefimov on 2023-03-01 20:31:57 UTC ---

Fixed in upstream:

https://bugs.launchpad.net/tempest/+bug/1973307
https://bugs.launchpad.net/tempest/+bug/1996468

--- Additional comment from Martin Kopec on 2023-03-02 09:54:05 UTC ---

        
ft1.1: setUpClass (tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON)testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/tempest/test.py", line 168, in setUpClass
    raise value.with_traceback(trace)
  File "/usr/lib/python3.9/site-packages/tempest/test.py", line 161, in setUpClass
    cls.resource_setup()
  File "/usr/lib/python3.9/site-packages/tempest/api/compute/servers/test_server_actions.py", line 95, in resource_setup
    cls.server_id = cls.recreate_server(None, validatable=True,
  File "/usr/lib/python3.9/site-packages/tempest/api/compute/base.py", line 442, in recreate_server
    server = cls.create_test_server(
  File "/usr/lib/python3.9/site-packages/tempest/api/compute/base.py", line 272, in create_test_server
    body, servers = compute.create_test_server(
  File "/usr/lib/python3.9/site-packages/tempest/common/compute.py", line 353, in create_test_server
    LOG.exception('Server %s failed to delete in time',
  File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 227, in __exit__
    self.force_reraise()
  File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 200, in force_reraise
    raise self.value
  File "/usr/lib/python3.9/site-packages/tempest/common/compute.py", line 328, in create_test_server
    wait_for_ssh_or_ping(
  File "/usr/lib/python3.9/site-packages/tempest/common/compute.py", line 131, in wait_for_ssh_or_ping
    server_ip = get_server_ip(
  File "/usr/lib/python3.9/site-packages/tempest/common/compute.py", line 78, in get_server_ip
    addresses = server['addresses'][CONF.validation.network_for_ssh]
KeyError: 'addresses'

--- Additional comment from Martin Kopec on 2023-03-02 09:54:52 UTC ---

The fixes are part of tempest 33.0.0 tag


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