Glance reads the whole image into memory when handling a POST /images request

Bug #698316 reported by Ewan Mellor
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Ewan Mellor

Bug Description

When using POST /images to upload through Glance, it reads the whole body of the request into memory before writing it to disk. This uses an unacceptable amount of memory, obviously.

This is using the filesystem backend, which is the only one which currently supports POST with an image in the body. lp:glance revno: 33.

Related branches

Ewan Mellor (ewanmellor)
Changed in glance:
assignee: nobody → Ewan Mellor (ewanmellor)
status: New → In Progress
Jay Pipes (jaypipes)
Changed in glance:
importance: Undecided → High
Jay Pipes (jaypipes)
Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → 0.1.7
status: Fix Committed → Fix Released
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.