yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01399
[Bug 1154576] Re: Image segments not deleted from swift when size > image_size_cap
** Changed in: glance
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1154576
Title:
Image segments not deleted from swift when size > image_size_cap
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Bug description:
If we set image_size_cap to 10 Meg:
image_size_cap = 10485760
And set the swift_store_large_object_size to 4 Meg:
swift_store_large_object_size = 4
And set the swift chunk size to 2 Meg:
swift_store_large_object_chunk_size = 2
Then upload 10485761 bytes in a way that the image size is not known
beforehand:
$ glance --os-image-api-version 1 --os-username glance --os-password
XXX --os-tenant-name service --os-auth-url http://localhost:5000/v2.0
image-create --name "x1" --is-public=True --container-format ami
--disk-format ami < /tmp/10485761.fifo
$ 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://localhost:5000/v2.0 list glance | grep d723a481-fdb2-4576-9340-5cab95c83ac1
d723a481-fdb2-4576-9340-5cab95c83ac1-00001
d723a481-fdb2-4576-9340-5cab95c83ac1-00002
d723a481-fdb2-4576-9340-5cab95c83ac1-00003
d723a481-fdb2-4576-9340-5cab95c83ac1-00004
d723a481-fdb2-4576-9340-5cab95c83ac1-00005
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1154576/+subscriptions