test_role_create_update_show_list fails randomly

Bug #2076169 reported by yatin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
New
Undecided
Unassigned

Bug Description

Fails as:-
ft1.1: tempest.api.identity.admin.v3.test_roles.RolesV3TestJSON.test_role_create_update_show_list[id-18afc6c0-46cf-4911-824e-9989cc056c3a,smoke]testtools.testresult.real._StringException: pythonlogging:'': {{{
2024-08-05 13:28:29,194 163183 INFO [tempest.lib.common.rest_client] Request (RolesV3TestJSON:test_role_create_update_show_list): 201 POST http://217.182.141.231/identity/v3/roles 0.118s
2024-08-05 13:28:29,194 163183 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"role": {"name": "tempest-Role-2087111993"}}
    Response - Headers: {'date': 'Mon, 05 Aug 2024 13:28:29 GMT', 'server': 'Apache/2.4.41 (Ubuntu)', 'content-type': 'application/json', 'content-length': '239', 'vary': 'X-Auth-Token', 'x-openstack-request-id': 'req-f87a06c1-dab1-4138-b963-6e899dd06f5c', 'connection': 'close', 'status': '201', 'content-location': 'http://217.182.141.231/identity/v3/roles'}
        Body: b'{"role": {"id": "e63342d8946b40e2a754a28c53afa2ab", "name": "tempest-Role-2087111993", "domain_id": null, "description": null, "options": {}, "links": {"self": "http://217.182.141.231/identity/v3/roles/e63342d8946b40e2a754a28c53afa2ab"}}}\n'
2024-08-05 13:28:29,477 163183 INFO [tempest.lib.common.rest_client] Request (RolesV3TestJSON:test_role_create_update_show_list): 200 PATCH http://217.182.141.231/identity/v3/roles/e63342d8946b40e2a754a28c53afa2ab 0.282s
2024-08-05 13:28:29,478 163183 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"role": {"name": "tempest-NewRole-1498197509"}}
    Response - Headers: {'date': 'Mon, 05 Aug 2024 13:28:29 GMT', 'server': 'Apache/2.4.41 (Ubuntu)', 'content-type': 'application/json', 'content-length': '242', 'vary': 'X-Auth-Token', 'x-openstack-request-id': 'req-b4081819-edc8-4da8-93da-d74d033dd035', 'connection': 'close', 'status': '200', 'content-location': 'http://217.182.141.231/identity/v3/roles/e63342d8946b40e2a754a28c53afa2ab'}
        Body: b'{"role": {"id": "e63342d8946b40e2a754a28c53afa2ab", "name": "tempest-NewRole-1498197509", "domain_id": null, "description": null, "options": {}, "links": {"self": "http://217.182.141.231/identity/v3/roles/e63342d8946b40e2a754a28c53afa2ab"}}}\n'
2024-08-05 13:28:29,576 163183 INFO [tempest.lib.common.rest_client] Request (RolesV3TestJSON:test_role_create_update_show_list): 200 GET http://217.182.141.231/identity/v3/roles/e63342d8946b40e2a754a28c53afa2ab 0.098s
2024-08-05 13:28:29,577 163183 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'date': 'Mon, 05 Aug 2024 13:28:29 GMT', 'server': 'Apache/2.4.41 (Ubuntu)', 'content-type': 'application/json', 'content-length': '239', 'vary': 'X-Auth-Token', 'x-openstack-request-id': 'req-033f988b-5295-44f2-acb1-4d9079777a62', 'connection': 'close', 'status': '200', 'content-location': 'http://217.182.141.231/identity/v3/roles/e63342d8946b40e2a754a28c53afa2ab'}
        Body: b'{"role": {"id": "e63342d8946b40e2a754a28c53afa2ab", "name": "tempest-Role-2087111993", "domain_id": null, "description": null, "options": {}, "links": {"self": "http://217.182.141.231/identity/v3/roles/e63342d8946b40e2a754a28c53afa2ab"}}}\n'
2024-08-05 13:28:29,825 163183 INFO [tempest.lib.common.rest_client] Request (RolesV3TestJSON:_run_cleanups): 204 DELETE http://217.182.141.231/identity/v3/roles/e63342d8946b40e2a754a28c53afa2ab 0.247s
2024-08-05 13:28:29,825 163183 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'date': 'Mon, 05 Aug 2024 13:28:29 GMT', 'server': 'Apache/2.4.41 (Ubuntu)', 'vary': 'X-Auth-Token', 'x-openstack-request-id': 'req-f5ede882-b965-4be0-a3ac-a3a0858e65bd', 'connection': 'close', 'status': '204', 'content-location': 'http://217.182.141.231/identity/v3/roles/e63342d8946b40e2a754a28c53afa2ab'}
        Body: b''
}}}

Traceback (most recent call last):
  File "/opt/stack/new/tempest/tempest/api/identity/admin/v3/test_roles.py", line 101, in test_role_create_update_show_list
    self.assertEqual(new_name, new_role['name'])
  File "/opt/stack/new/tempest/.tox/tempest/lib/python3.8/site-packages/testtools/testcase.py", line 419, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/opt/stack/new/tempest/.tox/tempest/lib/python3.8/site-packages/testtools/testcase.py", line 509, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 'tempest-NewRole-1498197509' != 'tempest-Role-2087111993'

Seems GET role returning from cache as it got updated in previous PATCH call.

Seen multiple times across various releases, example failure:-
- http://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_2a6/925454/1/gate/neutron-ovs-grenade-multinode/2a63886/testr_results.html
- https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_459/periodic-weekly/opendev.org/openstack/networking-bagpipe/unmaintained/zed/networking-bagpipe-tempest/459825c/testr_results.html
- https://8fbe1b3937564eb8a059-320386062a8fef96051148fe5e7af6b1.ssl.cf1.rackcdn.com/925425/1/check/grenade/c60ae6f/controller/logs/grenade.sh_log.txt
- http://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_12b/924546/3/check/tempest-full-py3/12bfe04/testr_results.html

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.