← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1248842] Re: 400 bad request when token is too large

 

*** This bug is a duplicate of bug 1190149 ***
    https://bugs.launchpad.net/bugs/1190149

** This bug has been marked a duplicate of bug 1190149
   Token auth fails when token is larger than 8k

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

Title:
  400 bad request when token is too large

Status in OpenStack Image Registry and Delivery Service (Glance):
  Confirmed

Bug description:
  When running tempest test in my local test environment i get 400 bad
  requests from Glance due to the token being too large.  My service
  catalog has about 17 entries.

  The error coming back from Glance tells me nothing useful

   Traceback (most recent call last):
    File "/var/lib/tempest/tempest/api/compute/images/test_images_oneserver.py", line 66, in setUpClass
      resp, server = cls.create_server(wait_until='ACTIVE')
    File "/var/lib/tempest/tempest/api/compute/base.py", line 117, in create_server
      name, image_id, flavor, **kwargs)
    File "/var/lib/tempest/tempest/services/compute/json/servers_client.py", line 82, in create_server
      resp, body = self.post('servers', post_body, self.headers)
    File "/var/lib/tempest/tempest/common/rest_client.py", line 302, in post
      return self.request('POST', url, headers, body)
    File "/var/lib/tempest/tempest/common/rest_client.py", line 436, in request
      resp, resp_body)
    File "/var/lib/tempest/tempest/common/rest_client.py", line 486, in _error_checker
      raise exceptions.BadRequest(resp_body)
  BadRequest: Bad request
  Details: {u'badRequest': {u'message': u'HTTPBadRequest (HTTP 400)', u'code': 400}}

  But if i capture some packets i can see that it's a problem with the
  headers

  ##
  T 115.146.85.xxx:35057 -> 115.146.84.xxx:9292 [A]
    HEAD /v1/images/22b9e4a4-7c4b-42bb-8251-f30a81fffaeb HTTP/1.1..Host: glance-h.dev:
  ##
  T 115.146.84.xxx:9292 -> 115.146.85.xxx:35057 [AP]
    HTTP/1.0 400 Header Line Too Long..Connection: close..Content-length: 0....

  There has been a similar bug reported for nova
  https://bugs.launchpad.net/keystone/+bug/1190149

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