VMware store should handle upload of files with unknown Content-Length

Bug #1313992 reported by Arnaud Legendre
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Arnaud Legendre

Bug Description

Nova needs to upload streamOptimized disks to Glance. These streamOptimized disks are converted/compressed on the fly by
vCenter. Consequently, it is not possible to know the size of the Glance image before upload. Without specifying the size
or size zero, vCenter will reject the request (Broken Pipe).

Changed in glance:
assignee: nobody → Arnaud Legendre (arnaudleg)
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/91143

Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/91143
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=cb93eb60abf10af6fbb1ee438a6e8a51853e6788
Submitter: Jenkins
Branch: master

commit cb93eb60abf10af6fbb1ee438a6e8a51853e6788
Author: Arnaud Legendre <email address hidden>
Date: Mon Apr 28 19:20:55 2014 -0700

    Use Chunked transfer encoding in the VMware store

    Nova needs to upload streamOptimized disks to Glance. These
    streamOptimized disks are converted/compressed on the fly by
    vCenter. Consequently, it is not possible to know the size of
    the Glance image before upload. Without specifying the size
    or size zero, vCenter will reject the request (Broken Pipe).

    This patch adds the Chunked transfer encoding which allows
    to not specify a Content-Length header.

    Change-Id: I579084460e7f61ab4042632d17ec0f045fa6f5af
    Closes-Bug: #1313992

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → juno-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.