Support for basic quotas in Glance

Registered by Artem Andreev on 2012-12-15

It would be very helpful if we were able to limit the usage of some basic image-related resources, like
- the number of images stored
- the amount of storage in occupied by a set of images
- ...

Apparently, implementation of these limits in Glance would require an introduction of some sort of quota capabilities similar to those in Nova and Cinder. Ideally Nova, Cinder and Glance could share the same quota handling code. There’s another blueprint which actually covers this potential approach to the problem resolution (see the blueprint’s dependencies).

Blueprint information

Mark Washenberger
Artem Andreev
John Bresnahan
Series goal:
Accepted for havana
Milestone target:
milestone icon 2013.2
Started by
John Bresnahan on 2013-08-02
Completed by
John Bresnahan on 2013-08-29

Related branches



The two types of quotas for Glance that were discussed at the summit were "Images per Tenant" and "Total Image Bytes per Tenant". I'd also like to throw into the mix "Total Image Bytes per Store per Tenant".

I am not yet convinced that quotas are a situation where the benefits of code sharing and centralized storage outweigh the costs to performance, so I would like to remove "Ledger" as a dependency of this blueprint. There is still time to discuss the implementation details, however.


Untargeting until there is a volunteer assignee

<jbresnah> as a beging to this I would like to add enforcement code that limits a user to N bytes across all storage systems. At first the value for N will come from a .conf file, and once keystone has quota managment it will come from keystone</jbresnah>

Gerrit topic:,topic:bp/glance-basic-quotas,n,z

Addressed by:
    Add a storage quota

Addressed by:
    Add image number quota check(WIP)

Gerrit topic:,topic:bug/1520398,n,z

Addressed by:
    Add image quotas


Work Items