Image upload reads the entire image into memory?

Bug #2107802 reported by Dan Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
In Progress
Undecided
Unassigned

Bug Description

This command:

openstack image create foo --disk-format=raw < /dev/zero

Will run until it OOMs without even sending any image data to glance before it does. Seems like it's reading the entire image from stdin? This also happens with --file /dev/zero.

Revision history for this message
Dan Smith (danms) wrote :

I just edited the description to indicate that this happens with --file as well. I was mistaken about that initially, as I tested --file with glanceclient (which does not suffer from this problem).

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)
Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-openstackclient (master)

Change abandoned by "Stephen Finucane <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/python-openstackclient/+/947767
Reason: Issue is still relevant, but it looks like this is not the approach we're going with. Closing this one.

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.