Public bug reported: Tempest test "test_role_create_update_show_list" creates a role in keystone and updates the name.
- https://github.com/openstack/tempest/blob/7cb807a324c9f2bac47030c590ed488229bc113b/tempest/api/identity/admin/v3/test_roles.py#L82 Update request returns 200 status, and the response also return the new name "tempest-NewRole-864635746": - https://zuul.opendev.org/t/openstack/build/a1118fdb113c46c8aa3546af4ae841b2/log/controller/logs/tempest_log.txt#42185-42189 ------ 2025-05-16 12:42:58.355 96821 INFO tempest.lib.common.rest_client [req-dad32059-ea07-4071-978c-c4198270115b req-dad32059-ea07-4071-978c-c4198270115b ] Request (RolesV3TestJSON:test_role_create_update_show_list): 200 PATCH https://217.182.140.114/identity/v3/roles/bca853e8290046dfb02b903ba8be76b1 0.214s 2025-05-16 12:42:58.355 96821 DEBUG tempest.lib.common.rest_client [req-dad32059-ea07-4071-978c-c4198270115b req-dad32059-ea07-4071-978c-c4198270115b ] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'} Body: {"role": {"name": "tempest-NewRole-864635746"}} Response - Headers: {'date': 'Fri, 16 May 2025 12:42:58 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'content-type': 'application/json', 'content-length': '242', 'vary': 'X-Auth-Token', 'x-openstack-request-id': 'req-dad32059-ea07-4071-978c-c4198270115b', 'connection': 'close', 'status': '200', 'content-location': 'https://217.182.140.114/identity/v3/roles/bca853e8290046dfb02b903ba8be76b1'} Body: b'{"role": {"id": "bca853e8290046dfb02b903ba8be76b1", "name": "tempest-NewRole-864635746", "domain_id": null, "description": null, "options": {}, "links": {"self": "https://217.182.140.114/identity/v3/roles/bca853e8290046dfb02b903ba8be76b1"}}}\n' _log_request_full /opt/stack/tempest/tempest/lib/common/rest_client.py:484 ---------- Issue: When test call GET API to check if new name is reflected in keystone, it still return the old name "tempest-Role-1984092306". GET role return the old role: - https://zuul.opendev.org/t/openstack/build/a1118fdb113c46c8aa3546af4ae841b2/log/controller/logs/tempest_log.txt#42190 ------- 2025-05-16 12:42:58.384 96821 INFO tempest.lib.common.rest_client [req-9dec78c9-5010-407d-83ff-214c34647faf req-9dec78c9-5010-407d-83ff-214c34647faf ] Request (RolesV3TestJSON:test_role_create_update_show_list): 200 GET https://217.182.140.114/identity/v3/roles/bca853e8290046dfb02b903ba8be76b1 0.028s 2025-05-16 12:42:58.385 96821 DEBUG tempest.lib.common.rest_client [req-9dec78c9-5010-407d-83ff-214c34647faf req-9dec78c9-5010-407d-83ff-214c34647faf ] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'} Body: None Response - Headers: {'date': 'Fri, 16 May 2025 12:42:58 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'content-type': 'application/json', 'content-length': '240', 'vary': 'X-Auth-Token', 'x-openstack-request-id': 'req-9dec78c9-5010-407d-83ff-214c34647faf', 'connection': 'close', 'status': '200', 'content-location': 'https://217.182.140.114/identity/v3/roles/bca853e8290046dfb02b903ba8be76b1'} Body: b'{"role": {"id": "bca853e8290046dfb02b903ba8be76b1", "name": "tempest-Role-1984092306", "domain_id": null, "description": null, "options": {}, "links": {"self": "https://217.182.140.114/identity/v3/roles/bca853e8290046dfb02b903ba8be76b1"}}}\n' _log_request_full /opt/stack/tempest/tempest/lib/common/rest_client.py:484 ------------ ** Affects: keystone Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/2111120 Title: Role updated does not reflect in GET API Status in OpenStack Identity (keystone): New Bug description: Tempest test "test_role_create_update_show_list" creates a role in keystone and updates the name. - https://github.com/openstack/tempest/blob/7cb807a324c9f2bac47030c590ed488229bc113b/tempest/api/identity/admin/v3/test_roles.py#L82 Update request returns 200 status, and the response also return the new name "tempest-NewRole-864635746": - https://zuul.opendev.org/t/openstack/build/a1118fdb113c46c8aa3546af4ae841b2/log/controller/logs/tempest_log.txt#42185-42189 ------ 2025-05-16 12:42:58.355 96821 INFO tempest.lib.common.rest_client [req-dad32059-ea07-4071-978c-c4198270115b req-dad32059-ea07-4071-978c-c4198270115b ] Request (RolesV3TestJSON:test_role_create_update_show_list): 200 PATCH https://217.182.140.114/identity/v3/roles/bca853e8290046dfb02b903ba8be76b1 0.214s 2025-05-16 12:42:58.355 96821 DEBUG tempest.lib.common.rest_client [req-dad32059-ea07-4071-978c-c4198270115b req-dad32059-ea07-4071-978c-c4198270115b ] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'} Body: {"role": {"name": "tempest-NewRole-864635746"}} Response - Headers: {'date': 'Fri, 16 May 2025 12:42:58 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'content-type': 'application/json', 'content-length': '242', 'vary': 'X-Auth-Token', 'x-openstack-request-id': 'req-dad32059-ea07-4071-978c-c4198270115b', 'connection': 'close', 'status': '200', 'content-location': 'https://217.182.140.114/identity/v3/roles/bca853e8290046dfb02b903ba8be76b1'} Body: b'{"role": {"id": "bca853e8290046dfb02b903ba8be76b1", "name": "tempest-NewRole-864635746", "domain_id": null, "description": null, "options": {}, "links": {"self": "https://217.182.140.114/identity/v3/roles/bca853e8290046dfb02b903ba8be76b1"}}}\n' _log_request_full /opt/stack/tempest/tempest/lib/common/rest_client.py:484 ---------- Issue: When test call GET API to check if new name is reflected in keystone, it still return the old name "tempest-Role-1984092306". GET role return the old role: - https://zuul.opendev.org/t/openstack/build/a1118fdb113c46c8aa3546af4ae841b2/log/controller/logs/tempest_log.txt#42190 ------- 2025-05-16 12:42:58.384 96821 INFO tempest.lib.common.rest_client [req-9dec78c9-5010-407d-83ff-214c34647faf req-9dec78c9-5010-407d-83ff-214c34647faf ] Request (RolesV3TestJSON:test_role_create_update_show_list): 200 GET https://217.182.140.114/identity/v3/roles/bca853e8290046dfb02b903ba8be76b1 0.028s 2025-05-16 12:42:58.385 96821 DEBUG tempest.lib.common.rest_client [req-9dec78c9-5010-407d-83ff-214c34647faf req-9dec78c9-5010-407d-83ff-214c34647faf ] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'} Body: None Response - Headers: {'date': 'Fri, 16 May 2025 12:42:58 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'content-type': 'application/json', 'content-length': '240', 'vary': 'X-Auth-Token', 'x-openstack-request-id': 'req-9dec78c9-5010-407d-83ff-214c34647faf', 'connection': 'close', 'status': '200', 'content-location': 'https://217.182.140.114/identity/v3/roles/bca853e8290046dfb02b903ba8be76b1'} Body: b'{"role": {"id": "bca853e8290046dfb02b903ba8be76b1", "name": "tempest-Role-1984092306", "domain_id": null, "description": null, "options": {}, "links": {"self": "https://217.182.140.114/identity/v3/roles/bca853e8290046dfb02b903ba8be76b1"}}}\n' _log_request_full /opt/stack/tempest/tempest/lib/common/rest_client.py:484 ------------ To manage notifications about this bug go to: https://bugs.launchpad.net/keystone/+bug/2111120/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp