← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1270798] [NEW] Glance quota only enforced when we do size check on create image

 

Public bug reported:

if I set user_storage_quota = 2 it should fail image create. 
but since --location does not check image size during create, the quota is not enforced during create. 
since the quota is not implemented during image download, we basically have an easy way of bypassing the quota... 

to reproduce:

1. change  user_storage_quota = 2 in user_storage_quota = 2
2. create an image using --location from any iso.
3. boot an instance from the image 

Results:

The image will be created and we can boot instances from it -> hence
quota is not enforced.

expected results:

I think that we should either enforce the quota on image download and
not image create or we can block using --location when we enforce the
quota.

** 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/1270798

Title:
  Glance quota only enforced when we do size check on create image

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  if I set user_storage_quota = 2 it should fail image create. 
  but since --location does not check image size during create, the quota is not enforced during create. 
  since the quota is not implemented during image download, we basically have an easy way of bypassing the quota... 

  to reproduce:

  1. change  user_storage_quota = 2 in user_storage_quota = 2
  2. create an image using --location from any iso.
  3. boot an instance from the image 

  Results:

  The image will be created and we can boot instances from it -> hence
  quota is not enforced.

  expected results:

  I think that we should either enforce the quota on image download and
  not image create or we can block using --location when we enforce the
  quota.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1270798/+subscriptions


Follow ups

References