Bug 2007585

Summary: `tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON.test_rebuild_server` failed because of difference of `addresses` between before and after rebuilding the server
Product: Red Hat OpenStack Reporter: Ryo Hayakawa <rhayakaw>
Component: openstack-tempestAssignee: Chandan Kumar <chkumar>
Status: CLOSED ERRATA QA Contact: Martin Kopec <mkopec>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: apevec, lhh, slinaber, udesale
Target Milestone: gaKeywords: Triaged
Target Release: 17.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-tempest-30.1.0-0.20220425203043.44dac69.el9ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:17:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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