Glance can't upload image by link from slow source

Bug #1429785 reported by Mike Fedosin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance_store
Fix Released
Medium
Mike Fedosin

Bug Description

If the image is uploaded into the Glance from the remote http source (i.e. the image is created with "image-create" Glance CLI command specified with "--copy-from" parameter containing some http location, or using the equivalent set of API calls, for example when creating image by copying it from the URL in Horizon) AND the speed of downloading from that location is low (i.e. there exists a possibility that at some moment a 16 MB chunk of data will not be fetched within a minute), then the Image will not be uploaded (in several minuted of being in "Saving" state it will be moved to "killed" state, thus disappearing from list of active images).

This may be happen often for image storages on the public hosting providers, such as murano-files.mirantis.com or sahara-files.mirantis.com - these storages tend to throttle connection speeds when the load is high, which sometimes may reduce the speed below the aforementioned threshold.

STEPS TO REPRODUCE:
1. Navigate to Horizon dashboard-Project-Images
2. Click Create Image.
3. Specify image url from slow resource (http://murano-files.mirantis.com/ubuntu_14_04-murano-agent_stable_juno.qcow2 may be a good example)
4. Create Image

Actual Result:
Image has status 'Killed'
Glance logs have no tracebacks
In /var/log/messages we can see warning about Swift:
swift-proxy-server: Client disconnected without sending enough data

Zhi Yan Liu (lzy-dev)
Changed in glance-store:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Mike Fedosin (mfedosin)
status: Confirmed → In Progress
Revision history for this message
Nikhil Komawar (nikhil-komawar) wrote :
Changed in glance-store:
milestone: none → v0.3.1
status: In Progress → Fix Committed
Changed in glance-store:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance_store 0.4.0

This issue was fixed in the openstack/glance_store 0.4.0 release.

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.