Activity log for bug #999567

Date Who What changed Old value New value Message
2012-05-15 09:53:30 Rohit Karajgi bug added bug
2012-05-15 09:58:54 Rohit Karajgi summary Keystone Admin - Deleting a roleRef for a non existent user returns Internal Server Error Keystone Admin - Deleting a roleRef for a non existent user or role returns Internal Server Error
2012-05-15 10:02:24 Rohit Karajgi description Our tempest test calls the delete_role_ref() Admin API and passes an invalid/non-existent value for userId. Expected result: HTTP 404 NotFound or HTTP 400 BadRequest error. Actual Result: HTTP 500 Internal Server Error is returned ====================================================================== ERROR: Attempt to delete a role from a non existent user should fail ---------------------------------------------------------------------- Traceback (most recent call last): File "/opt/stack/tempest/tests/identity/test_roles.py", line 185, in test_delete_user_role_non_existant_user 'junk-user-id-123', role['id']) File "/usr/lib/pymodules/python2.7/unittest2/case.py", line 475, in assertRaises callableObj(*args, **kwargs) File "/opt/stack/tempest/services/identity/json/admin_client.py", line 80, in delete_user_role resp, body = self.delete('users/%s/roleRefs/%s' % (user_id, role_id)) File "/opt/stack/tempest/common/rest_client.py", line 163, in delete return self.request('DELETE', url) File "/opt/stack/tempest/common/rest_client.py", line 229, in request message = resp_body['computeFault']['message'] KeyError: '\'computeFault\'\n-------------------- >> begin captured logging << --------------------\ntempest.config: INFO: Using tempest config file /opt/stack/etc/tempest.conf\ntempest.common.rest_client: ERROR: Request URL: http://10.2.3.164:35357/v2.0/users/junk-user-id-123/roleRefs/3d3fb10c2b184204a484bfe0440ac38c\ntempest.common.rest_client: ERROR: Request Body: None\ntempest.common.rest_client: ERROR: Response Headers: {\'date\': \'Tue, 15 May 2012 09:49:37 GMT\', \'content-type\': \'application/json\', \'content-length\': \'182\', \'status\': \'500\', \'vary\': \'X-Auth-Token\'}\ntempest.common.rest_client: ERROR: Response Body: {u\'error\': {u\'message\': u"An unexpected error prevented the server from fulfilling your request. \'NoneType\' object is not subscriptable", u\'code\': 500, u\'title\': u\'Internal Server Error\'}}\n--------------------- >> end captured logging << ---------------------' ---------------------------------------------------------------------- Our tempest test calls the delete_role_ref() Admin API and passes an invalid/non-existent value for userId / roleID. Expected result: HTTP 404 NotFound or HTTP 400 BadRequest error. Actual Result: HTTP 500 Internal Server Error is returned ====================================================================== ERROR: Attempt to delete a role from a non existent user should fail ---------------------------------------------------------------------- Traceback (most recent call last):   File "/opt/stack/tempest/tests/identity/test_roles.py", line 185, in test_delete_user_role_non_existant_user     'junk-user-id-123', role['id'])   File "/usr/lib/pymodules/python2.7/unittest2/case.py", line 475, in assertRaises     callableObj(*args, **kwargs)   File "/opt/stack/tempest/services/identity/json/admin_client.py", line 80, in delete_user_role     resp, body = self.delete('users/%s/roleRefs/%s' % (user_id, role_id))   File "/opt/stack/tempest/common/rest_client.py", line 163, in delete     return self.request('DELETE', url)   File "/opt/stack/tempest/common/rest_client.py", line 229, in request     message = resp_body['computeFault']['message'] KeyError: '\'computeFault\'\n-------------------- >> begin captured logging << --------------------\ntempest.config: INFO: Using tempest config file /opt/stack/etc/tempest.conf\ntempest.common.rest_client: ERROR: Request URL: http://10.2.3.164:35357/v2.0/users/junk-user-id-123/roleRefs/3d3fb10c2b184204a484bfe0440ac38c\ntempest.common.rest_client: ERROR: Request Body: None\ntempest.common.rest_client: ERROR: Response Headers: {\'date\': \'Tue, 15 May 2012 09:49:37 GMT\', \'content-type\': \'application/json\', \'content-length\': \'182\', \'status\': \'500\', \'vary\': \'X-Auth-Token\'}\ntempest.common.rest_client: ERROR: Response Body: {u\'error\': {u\'message\': u"An unexpected error prevented the server from fulfilling your request. \'NoneType\' object is not subscriptable", u\'code\': 500, u\'title\': u\'Internal Server Error\'}}\n--------------------- >> end captured logging << ---------------------' ---------------------------------------------------------------------- ====================================================================== ERROR: Attempt to delete a non existent role for a user should fail ---------------------------------------------------------------------- Traceback (most recent call last): File "/opt/stack/tempest/tests/identity/test_roles.py", line 194, in test_delete_user_role_non_existant_role user['id'], 'junk-user-role-123') File "/usr/lib/pymodules/python2.7/unittest2/case.py", line 475, in assertRaises callableObj(*args, **kwargs) File "/opt/stack/tempest/services/identity/json/admin_client.py", line 80, in delete_user_role resp, body = self.delete('users/%s/roleRefs/%s' % (user_id, role_id)) File "/opt/stack/tempest/common/rest_client.py", line 163, in delete return self.request('DELETE', url) File "/opt/stack/tempest/common/rest_client.py", line 229, in request message = resp_body['computeFault']['message'] KeyError: '\'computeFault\'\n-------------------- >> begin captured logging << --------------------\ntempest.config: INFO: Using tempest config file /opt/stack/etc/tempest.conf\ntempest.common.rest_client: ERROR: Request URL: http://10.2.3.164:35357/v2.0/users/6c4298c4bd0349e59dc6a2a151fee416/roleRefs/junk-user-role-123\ntempest.common.rest_client: ERROR: Request Body: None\ntempest.common.rest_client: ERROR: Response Headers: {\'date\': \'Tue, 15 May 2012 09:58:18 GMT\', \'content-type\': \'application/json\', \'content-length\': \'182\', \'status\': \'500\', \'vary\': \'X-Auth-Token\'}\ntempest.common.rest_client: ERROR: Response Body: {u\'error\': {u\'message\': u"An unexpected error prevented the server from fulfilling your request. \'NoneType\' object is not subscriptable", u\'code\': 500, u\'title\': u\'Internal Server Error\'}}\n--------------------- >> end captured logging << ---------------------' ----------------------------------------------------------------------
2012-05-31 07:21:26 Rohit Karajgi affects nova keystone
2012-06-04 15:52:50 Joseph Heck keystone: status New Triaged
2012-06-04 15:52:53 Joseph Heck keystone: importance Undecided Medium
2012-06-26 14:00:53 OpenStack Infra keystone: status Triaged In Progress
2012-06-26 14:00:53 OpenStack Infra keystone: assignee Vincent Untz (vuntz)
2012-06-26 14:00:55 Vincent Untz bug added subscriber Vincent Untz
2012-07-03 16:59:35 OpenStack Infra keystone: status In Progress Fix Committed
2012-07-04 08:22:58 Thierry Carrez keystone: status Fix Committed Fix Released
2012-07-04 08:22:58 Thierry Carrez keystone: milestone folsom-2
2012-09-27 15:03:37 Thierry Carrez keystone: milestone folsom-2 2012.2