Bug 2007585 - `tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON.test_rebuild_server` failed because of difference of `addresses` between before and after rebuilding the server
Summary: `tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON.test_r...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tempest
Version: 16.1 (Train)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ga
: 17.0
Assignee: Chandan Kumar
QA Contact: Martin Kopec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-24 10:32 UTC by Ryo Hayakawa
Modified: 2022-09-21 12:17 UTC (History)
4 users (show)

Fixed In Version: openstack-tempest-30.1.0-0.20220425203043.44dac69.el9ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:17:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1945495 0 None None None 2021-09-29 14:33:28 UTC
OpenStack gerrit 814085 0 None MERGED Fix test_rebuild_server test by waiting for floating ip 2022-02-01 13:39:53 UTC
OpenStack gerrit 828245 0 None MERGED Fix floating ip timeout issues with uwsgi enabled 2022-02-11 08:54:04 UTC
Red Hat Issue Tracker OSP-9896 0 None None None 2021-11-15 12:42:44 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:17:40 UTC

Comment 1 Martin Kopec 2021-09-29 13:45:06 UTC
Captured traceback:
$ tempest run --regex tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON.test_rebuild_server

{0} tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON.test_rebuild_server [37.175023s] ... FAILED

~~~~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b'  File "/usr/lib/python3.6/site-packages/tempest/api/compute/servers/test_server_actions.py", line 235, in test_rebuild_server'
    b'    self._test_rebuild_server()'
    b'  File "/usr/lib/python3.6/site-packages/tempest/api/compute/servers/test_server_actions.py", line 213, in _test_rebuild_server'
    b"    self.assertEqual(original_addresses, server['addresses'])"
    b'  File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 411, in assertEqual'
    b'    self.assertThat(observed, matcher, message)'
    b'  File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 498, in assertThat'
    b'    raise mismatch_error'
    b'testtools.matchers._impl.MismatchError: !=:'
    b"reference = {'tempest-ServerActionsTestJSON-1060207279-network': [{'OS-EXT-IPS-MAC:mac_addr': 'fa:16:3e:24:63:fd',"
    b"                                                       'OS-EXT-IPS:type': 'fixed',"
    b"                                                       'addr': '10.100.0.5',"
    b"                                                       'version': 4}]}"
    b"actual    = {'tempest-ServerActionsTestJSON-1060207279-network': [{'OS-EXT-IPS-MAC:mac_addr': 'fa:16:3e:24:63:fd',"
    b"                                                       'OS-EXT-IPS:type': 'fixed',"
    b"                                                       'addr': '10.100.0.5',"
    b"                                                       'version': 4},"
    b"                                                      {'OS-EXT-IPS-MAC:mac_addr': 'fa:16:3e:24:63:fd',"
    b"                                                       'OS-EXT-IPS:type': 'floating',"
    b"                                                       'addr': '10.0.0.207',"
    b"                                                       'version': 4}]}"
    b''
    b''

Comment 3 Martin Kopec 2021-09-29 14:33:28 UTC
I've reproduced it with the master version of tempest as well

Comment 4 Martin Kopec 2022-02-02 07:52:14 UTC
The fix has been merged to tempest master.

Comment 5 Martin Kopec 2022-06-13 13:16:34 UTC
The fixes are part of openstack-tempest-29.1.0-0.20220217160300.8cd0950.el9ost package (and newer ones).

Comment 8 Martin Kopec 2022-07-13 09:42:48 UTC
Fixed in version package contains required fixes and is part of Build ID.

Comment 12 errata-xmlrpc 2022-09-21 12:17:06 UTC
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.0 (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-2022:6543


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