Glance reads the whole image into memory when handling a POST /images request
Bug #698316 reported by
Ewan Mellor
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
lp:~jaypipes/glance/bug698316
- Glance Core security contacts: Pending requested
-
Diff: 40 lines (+8/-5)2 files modifiedglance/server.py (+1/-1)
glance/store/filesystem.py (+7/-4)
Changed in glance: | |
assignee: | nobody → Ewan Mellor (ewanmellor) |
status: | New → In Progress |
Changed in glance: | |
importance: | Undecided → High |
Changed in glance: | |
status: | In Progress → Fix Committed |
Changed in glance: | |
milestone: | none → 0.1.7 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.