Bug 893072 - Glance - image download (from HTTP) should allow gzip/compressed encoding.
Summary: Glance - image download (from HTTP) should allow gzip/compressed encoding.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: 2.0 (Folsom)
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: Upstream M3
: 4.0
Assignee: Flavio Percoco
QA Contact: Giulio Fidente
URL:
Whiteboard:
Depends On:
Blocks: RHOS40RFE 1003487
TreeView+ depends on / blocked
 
Reported: 2013-01-08 14:19 UTC by Yaniv Kaul
Modified: 2016-04-26 14:08 UTC (History)
10 users (show)

Fixed In Version: openstack-glance-2013.2-0.7.b3.el6ost
Doc Type: Enhancement
Doc Text:
Clone Of:
: 1003487 (view as bug list)
Environment:
Last Closed: 2013-12-19 23:56:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1150380 0 None None None Never
OpenStack gerrit 23424 0 None ABANDONED Replace old httpclient with requests 2021-01-28 15:25:24 UTC
OpenStack gerrit 27622 0 None MERGED Compress response's content according to client's accepted encoding 2021-01-28 15:25:24 UTC
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

Description Yaniv Kaul 2013-01-08 14:19:47 UTC
Description of problem:
When glance downloads images, it does not add to the HTTP request the header:
Accept-Encoding: gzip, deflate

This prevents it from getting compressed content.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Eoghan Glynn 2013-01-10 16:38:49 UTC
I may be missing something here, but seems to me that .gz content can be used for the image content, it's just not deflated automatically on download.

But there's nothing to stop the image downloader from unzipping after the fact.

This seems logical to me, in terms of glance being agnostic to the image content format.

Comment 3 Eoghan Glynn 2013-01-10 16:47:58 UTC
OK, I now see the point is to allow the image content to be compressed by the backend store as it's served out, as opposed to the compression being applied a priori to the image data before it's uploaded.

Comment 4 Flavio Percoco 2013-01-21 11:11:55 UTC
Just to make it a bit clearer:

The idea here is that glance's stores should add gzip as its accepted encodings in order to be able to choose that format as encoding for data transmission.

Comment 5 Flavio Percoco 2013-03-06 12:30:19 UTC
The migration to python-requests will fix part of this bug since the default Accept-Encoding value for requests is: 'gzip, deflate, compress'

Now, webob's response encode_content has to be call in glance in order to actually encode the response's content.

Comment 21 Giulio Fidente 2013-12-12 17:36:17 UTC
by editing the -paste.ini and api.conf file appropriately this works as expected; I'm closing the bug in VERIFIED

Comment 23 errata-xmlrpc 2013-12-19 23:56:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1859.html


Note You need to log in before you can comment on or make changes to this bug.