Description of problem: ----------------------- After upgrade from RHOS-12 to RHOS-13 tempest test fails: Traceback (most recent call last): testtools.testresult.real._StringException: pythonlogging:'': {{{ 2018-06-07 12:22:54,904 10503 INFO [tempest.lib.common.rest_client] Request (RolesV3TestJSON:test_implied_roles_create_check_show_delete): 201 PUT http://192.168.24.15:35357/v3/roles/ce29138c24c44f068f22b1ea1f0801c3/implies/a36eec97636c46dabfcf539ef612c4b2 0.286s 2018-06-07 12:22:54,904 10503 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'} Body: None Response - Headers: {'status': '201', u'content-length': '517', 'content-location': 'http://192.168.24.15:35357/v3/roles/ce29138c24c44f068f22b1ea1f0801c3/implies/a36eec97636c46dabfcf539ef612c4b2', u'vary': 'X-Auth-Token', u'server': 'Apache', u'connection': 'close', u'date': 'Thu, 07 Jun 2018 16:22:54 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-4590b63c-c8d6-43e1-ba8e-a2de29f57653'} Body: {"role_inference": {"implies": {"id": "a36eec97636c46dabfcf539ef612c4b2", "links": {"self": "http://192.168.24.15:35357/v3/roles/a36eec97636c46dabfcf539ef612c4b2"}, "name": "tempest-role-2121590458"}, "prior_role": {"id": "ce29138c24c44f068f22b1ea1f0801c3", "links": {"self": "http://192.168.24.15:35357/v3/roles/ce29138c24c44f068f22b1ea1f0801c3"}, "name": "tempest-role-1243028574"}}, "links": {"self": "http://192.168.24.15:35357/v3/roles/ce29138c24c44f068f22b1ea1f0801c3/implies/a36eec97636c46dabfcf539ef612c4b2"}} 2018-06-07 12:22:55,239 10503 INFO [tempest.lib.common.rest_client] Request (RolesV3TestJSON:test_implied_roles_create_check_show_delete): 200 HEAD http://192.168.24.15:35357/v3/roles/ce29138c24c44f068f22b1ea1f0801c3/implies/a36eec97636c46dabfcf539ef612c4b2 0.333s 2018-06-07 12:22:55,239 10503 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'} Body: None Response - Headers: {'status': '200', u'content-length': '517', 'content-location': 'http://192.168.24.15:35357/v3/roles/ce29138c24c44f068f22b1ea1f0801c3/implies/a36eec97636c46dabfcf539ef612c4b2', u'vary': 'X-Auth-Token,Accept-Encoding', u'server': 'Apache', u'connection': 'close', u'date': 'Thu, 07 Jun 2018 16:22:55 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-90a9d4e3-b89e-4dc7-ac8d-d0e8538d9185'} Body: 2018-06-07 12:22:55,598 10503 INFO [tempest.lib.common.rest_client] Request (RolesV3TestJSON:_run_cleanups): 204 DELETE http://192.168.24.15:35357/v3/roles/ce29138c24c44f068f22b1ea1f0801c3/implies/a36eec97636c46dabfcf539ef612c4b2 0.354s 2018-06-07 12:22:55,598 10503 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'} Body: None Response - Headers: {'status': '204', 'content-location': 'http://192.168.24.15:35357/v3/roles/ce29138c24c44f068f22b1ea1f0801c3/implies/a36eec97636c46dabfcf539ef612c4b2', u'vary': 'X-Auth-Token', u'server': 'Apache', u'connection': 'close', u'date': 'Thu, 07 Jun 2018 16:22:55 GMT', u'content-type': 'text/plain', u'x-openstack-request-id': 'req-e0ccab11-5172-4ade-bf36-de361b83814a'} Body: }}} Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/tempest/api/identity/admin/v3/test_roles.py", line 208, in test_implied_roles_create_check_show_delete prior_role_id, implies_role_id) File "/usr/lib/python2.7/site-packages/tempest/lib/services/identity/v3/roles_client.py", line 233, in check_role_inference_rule self.expected_success(204, resp.status) File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 261, in expected_success raise exceptions.InvalidHttpSuccessCode(details) tempest.lib.exceptions.InvalidHttpSuccessCode: The success code is different than the expected one Details: Unexpected http success status code 200, The expected status code is 204 Steps to Reproduce: ------------------- 1. Perform upgrade from RHOS-12 to RHOS-13 2. Run tempest test Additional info: ---------------- Virtual setup: 3controllers + 2computes + 3messaging + 3database + 2networker + 3ceph
This is a duplicate of rhbz#1478168. Per comments there[1], it is an issue with the version of mod_wsgi being used. When mod_wsgi is updated in RHEL (as mentioned in comment#2), the expected response will be returned. [1] - https://bugzilla.redhat.com/show_bug.cgi?id=1478168#c2 *** This bug has been marked as a duplicate of bug 1478168 ***