Support for basic quotas in Glance

Registered by Artem Andreev

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

Status:
Complete
Approver:
Mark Washenberger
Priority:
Low
Drafter:
Artem Andreev
Direction:
Approved
Assignee:
John Bresnahan
Definition:
Approved
Series goal:
Accepted for havana
Implementation:
Implemented
Milestone target:
milestone icon 2013.2
Started by
John Bresnahan
Completed by
John Bresnahan

Related branches

Sprints

Whiteboard

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.

--markwash

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: https://review.openstack.org/#q,topic:bp/glance-basic-quotas,n,z

Addressed by: https://review.openstack.org/37993
    Add a storage quota

Addressed by: https://review.openstack.org/244573
    Add image number quota check(WIP)

Gerrit topic: https://review.openstack.org/#q,topic:bug/1520398,n,z

Addressed by: https://review.openstack.org/484361
    Add image quotas

(?)

Work Items