Glance with swift backend - upload of an image from horizon is not streaming
Bug #1403129 reported by
kanimozhis
This bug affects 13 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Timur Sufiev |
Bug Description
Glance is configured to use swift as its backend.
While creating image from horizon using image source as image file, the image is uploaded in the controller occupying the disk space of the controller instead of streaming. A tmp file is created in /tmp directory and the owner of this file horizon user.
Image create fails if there is no enough space in controller to hold the full image.
But when the same image is uploaded using glance CLI (from a remote Linux macine) streaming happens as - remote machine to glance to swift.
Streaming also happens in the case of upload using URL from Horizon.
Horizon should stream in the case of image source as image file
Changed in horizon: | |
assignee: | nobody → Nikunj Aggarwal (nikunj2512) |
Changed in horizon: | |
assignee: | Timur Sufiev (tsufiev-x) → Vlad Okhrimenko (vokhrimenko) |
status: | Triaged → In Progress |
Changed in horizon: | |
assignee: | Timur Sufiev (tsufiev-x) → Diana Whitten (hurgleburgler) |
Changed in horizon: | |
assignee: | Diana Whitten (hurgleburgler) → Timur Sufiev (tsufiev-x) |
To post a comment you must log in.
It is not about cleaning of /tmp directory.
Instead of creating a tmp file, streaming of file data is required as it happens while uploading image from glance CLI.