Image segments not deleted from swift when size > image_size_cap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Mark Washenberger | ||
Grizzly |
Fix Released
|
High
|
Mark Washenberger |
Bug Description
If we set image_size_cap to 10 Meg:
image_size_cap = 10485760
And set the swift_store_
swift_store_
And set the swift chunk size to 2 Meg:
swift_store_
Then upload 10485761 bytes in a way that the image size is not known beforehand:
$ glance --os-image-
$ cat /tmp/10485761 >> /tmp/10485761.fifo
Request returned failure status.
400 Bad Request
Denying attempt to upload image larger than 10485760 bytes.
(HTTP 400)
Once the operation has completed the swift segments are still present:
$ swift --os-username glance --os-password XXX --os-tenant-name service --os-auth-url http://
d723a481-
d723a481-
d723a481-
d723a481-
d723a481-
Changed in glance: | |
assignee: | nobody → Stuart McLaren (stuart-mclaren) |
description: | updated |
Changed in glance: | |
milestone: | none → grizzly-rc1 |
importance: | Undecided → High |
status: | New → Triaged |
Changed in glance: | |
assignee: | Stuart McLaren (stuart-mclaren) → Mark Washenberger (markwash) |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/24421
Review: https:/