Reviewed: https://review.openstack.org/328013 Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=bf53c1b8f18b494b97454ba4142679ad5052f8c2 Submitter: Jenkins Branch: master
commit bf53c1b8f18b494b97454ba4142679ad5052f8c2 Author: Sabari Kumar Murugesan <[email protected]> Date: Thu Jun 9 17:35:06 2016 -0700 Do not set header if checksum doesn't exist When image caching is disabled, we don't set the 'Content-MD5' header if there is no checksum. We need to do the same when cache middleware is enabled. This will make the response consistent. Second, it also fixes an issue where we try to encode the header without checking if it's defined. Closes-Bug: #1591004 Change-Id: I3b3c58db3a839728a0d019594b2cecce4f0f8a1e ** Changed in: glance Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1591004 Title: Unable to download image with no checksum when cache is enabled Status in Glance: Fix Released Bug description: When cache middleware is enabled in the pipeline (default with devstack) and you create an image using HTTP URL, the image cannot be downloaded the second time. Steps 1. glance image-create --name cirros_test --disk-format raw --container-format bare 2. glance location-add --url "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-i386-disk.img" <IMAGE_ID> 3. glance image-download f6c43e4f-0927-4484-baf4-681c96b950fc > /tmp/1 [Success] 4. glance image-download f6c43e4f-0927-4484-baf4-681c96b950fc > /tmp/2 Unable to download image 'f6c43e4f-0927-4484-baf4-681c96b950fc'. (HTTPInternalServerError (HTTP 500)) To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1591004/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

