yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #21036
[Bug 1368516] [NEW] Quota Error In the Case of Parallel Execute
Public bug reported:
When a user upload several images at the same time,the storage usage of him may exceed the quota limit.
See sample here:
In glance/glance/api/v1/upload_utils.py Line123 2014/9/12
The Process has finished upload and pass the second quota check,But not yet writes the size to the database.When another process finishes uploading,It will also pass the quota check.
Here's a case:
user_storage_quota = 20 MB,Upload 2 Images which size are both 17MB.
Let the first process sleep 50 seconds before writes the size to the database,The two Images all successful uploaded and returned to user.
Now,My user_storage_quota = 10GB But I have 10 images,every image's size is 8G
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1368516
Title:
Quota Error In the Case of Parallel Execute
Status in OpenStack Image Registry and Delivery Service (Glance):
New
Bug description:
When a user upload several images at the same time,the storage usage of him may exceed the quota limit.
See sample here:
In glance/glance/api/v1/upload_utils.py Line123 2014/9/12
The Process has finished upload and pass the second quota check,But not yet writes the size to the database.When another process finishes uploading,It will also pass the quota check.
Here's a case:
user_storage_quota = 20 MB,Upload 2 Images which size are both 17MB.
Let the first process sleep 50 seconds before writes the size to the database,The two Images all successful uploaded and returned to user.
Now,My user_storage_quota = 10GB But I have 10 images,every image's size is 8G
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1368516/+subscriptions
Follow ups
References