glance image-members causes httplib.BadStatusLine

Bug #889209 reported by Dan Prince on 2011-11-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dan Prince

Bug Description

root@glance1:~# glance image-members 9c209f63-6af3-4688-9e6b-116fa0580be2 -v -d
Traceback (most recent call last):
  File "/usr/bin/glance", line 1213, in <module>
    result = command(options, args)
  File "/usr/bin/glance", line 60, in wrapper
    ret = func(*args, **kwargs)
  File "/usr/bin/glance", line 844, in image_members
    members = c.get_image_members(image_id)
  File "/usr/lib/python2.7/dist-packages/glance/", line 302, in get_image_members
    res = self.do_request("GET", "/images/%s/members" % image_id)
  File "/usr/lib/python2.7/dist-packages/glance/common/", line 48, in wrapped
    return func(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/glance/common/", line 330, in do_request
  File "/usr/lib/python2.7/dist-packages/glance/common/", line 65, in wrapped
    return func(self, method, url, body, headers)
  File "/usr/lib/python2.7/dist-packages/glance/common/", line 406, in _do_request
    res = c.getresponse()
  File "/usr/lib/python2.7/", line 1027, in getresponse
  File "/usr/lib/python2.7/", line 407, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/", line 371, in _read_status
    raise BadStatusLine(line)
httplib.BadStatusLine: ''

Jay Pipes (jaypipes) on 2011-11-21
Changed in glance:
importance: Undecided → Medium
assignee: nobody → Kevin L. Mitchell (klmitch)
Kevin L. Mitchell (klmitch) wrote :

I cannot replicate this error. Can you try again and confirm that it still happens in current glance? Can you give me a few more details of your set-up? Can you perform a tcpdump or equivalent, with data dump (i.e., -X option to tcpdump)?

BadStatusLine, to me, implies a problem with the server returning invalid HTML, which in turn suggests you're querying the wrong URL or that something went seriously wrong with glance...

Kevin L. Mitchell (klmitch) wrote :

s/invalid HTML/invalid HTTP/

Kevin L. Mitchell (klmitch) wrote :


Dan Prince (dan-prince) wrote :

Hi Kevin,

I'm looking into it now... It is reproducible for me so I'm happy to take a look.


Changed in glance:
assignee: Kevin L. Mitchell (klmitch) → Dan Prince (dan-prince)

Submitter: Jenkins
Branch: master

 status fixcommitted

commit 3bfe910a33a2927351b0c5125d1c519aee41d6ef
Author: Dan Prince <email address hidden>
Date: Tue Dec 13 15:53:20 2011 -0500

    Update glance caching middleware so doesn't try to process calls to
    subresources. Fixes LP bug #889209.

    Change-Id: Id56a535418c70bdc91a81baabc53d0c9db758a29

Changed in glance:
status: New → Fix Committed
Jay Pipes (jaypipes) on 2012-01-01
Changed in glance:
milestone: none → essex-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in glance:
milestone: essex-2 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers