← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1061738] Re: create_service() returns 500 Internal Server Error when bad keyword arg (XML only)

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

** Changed in: keystone
    Milestone: None => grizzly-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1061738

Title:
  create_service() returns 500 Internal Server Error when bad keyword
  arg (XML only)

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  ======================================================================
  ERROR: GET Service
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/jpipes/repos/tempest/tempest/tests/identity/admin/test_services.py", line 62, in test_create_get_delete_service
      resp, _ = self.client.delete_service(service_data['id'])
  UnboundLocalError: local variable 'service_data' referenced before assignment
  -------------------- >> begin captured logging << --------------------
  tempest.common.rest_client: ERROR: Request URL: http://127.0.0.1:35357/v2.0/OS-KSADM/services
  tempest.common.rest_client: ERROR: Request Body: <?xml version="1.0" encoding="UTF-8"?>
  <service xmlns="http://docs.openstack.org/identity/api/ext/OS-KSADM/v1.0"; type="type--9743" description="description-769556" name="service-722762"/>
  tempest.common.rest_client: ERROR: Response Headers: {'date': 'Thu, 04 Oct 2012 16:42:05 GMT', 'vary': 'X-Auth-Token', 'content-length': '284', 'status': '500', 'content-type': 'application/xml'}
  tempest.common.rest_client: ERROR: Response Body: {'message': "An unexpected error prevented the server from fulfilling your request. create_service() got an unexpected keyword argument 'service'", 'code': '500', 'title': 'Internal Server Error'}

  Keystone should return a 400 Bad Request if there are invalid
  arguments/query params supplied to OS-KSADM/ requests, not a 500.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1061738/+subscriptions