400 bad request when token is too large

Bug #1248842 reported by Russell Sim on 2013-11-07
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Russell Sim

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

Tom Fifield (fifieldt) on 2013-11-15
Changed in glance:
status: New → Confirmed
Changed in glance:
importance: Undecided → Medium
assignee: nobody → Russell Sim (russell-sim)
Henrique Truta (henriquetruta) wrote :

Didn't 1190149 close this?

Russell Sim (russell-sim) wrote :

yeah it looks like this is fixed in master.

Erno Kuvaja (jokke) wrote :


tags: added: propose-close
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers