Reliable quota enforcement

Registered by Salvatore Orlando

Quotas are currently unreliable and exposed to race conditions which can manifest with multiple API workers.

Quota enforcement should be "reformed" in order to become more reliable and efficient.
Also, if in the we also manage to make the code more maintainable that would be awesome.

Blueprint information

Status:
Complete
Approver:
Kyle Mestery
Priority:
High
Drafter:
Salvatore Orlando
Direction:
Approved
Assignee:
Salvatore Orlando
Definition:
Approved
Series goal:
Accepted for liberty
Implementation:
Implemented
Milestone target:
milestone icon 7.0.0
Started by
Kyle Mestery
Completed by
Kyle Mestery

Related branches

Sprints

Whiteboard

Sept-2-2015(armax): 4 patches left, most likely they'll land in RC1

March-17 (mestery): Out of Kilo we go.

March-6 (mestery): Granted a FFE until 3-11-2015 for Kilo.

December-18 (mestery): Kilo-3.

Gerrit topic: https://review.openstack.org/#q,topic:better-quotas,n,z

Addressed by: https://review.openstack.org/128318 (Merged)
    Reliable quota enforcement specification

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

Addressed by: https://review.openstack.org/163171 (Merged)
    Raise QuotaResourceUknown in the quota engine

Gerrit topic: https://review.openstack.org/#q,topic:bp/better-quotas,n,z

Addressed by: https://review.openstack.org/163659
    Support for reservations

Addressed by: https://review.openstack.org/188445
    Add a non-mixin function for model queries

Addressed by: https://review.openstack.org/188514
    Add a "light" base test class for DB tests

Addressed by: https://review.openstack.org/188608
    Add DB support for resource usage tracking

Addressed by: https://review.openstack.org/188618
    Create packages for quota modules

Gerrit topic: https://review.openstack.org/#q,topic:bp/better-quota,n,z

Addressed by: https://review.openstack.org/188884
    Enable resource usage tracking for "reference" plugins.

Addressed by: https://review.openstack.org/188883
    Introduce usage data tracking for Neutron

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

Addressed by: https://review.openstack.org/190798
    Devref for quotas

Addressed by: https://review.openstack.org/194867
    Add plural names for quota resources

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

Addressed by: https://review.openstack.org/196701
    Merge remote-tracking branch 'origin/master' into merge-branch

Addressed by: https://review.openstack.org/196920
    Merge remote-tracking branch 'origin/master' into merge-branch

Addressed by: https://review.openstack.org/204028
    Quota enforcement: python3 compatibility

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

Addressed by: https://review.openstack.org/207903
    Merge remote-tracking branch 'origin/master' into merge-branch

Addressed by: https://review.openstack.org/213917
    Reservations support

Addressed by: https://review.openstack.org/213918
    Devref for quotas

Addressed by: https://review.openstack.org/213919
    Quota enforcement: python3 compatibility

Addressed by: https://review.openstack.org/215508
    Quota enforcement: remove locks on _dirty_tenants

Addressed by: https://review.openstack.org/215817
    Do not track active reservations

Addressed by: https://review.openstack.org/214660
    Restore reservations in API controller

Addressed by: https://review.openstack.org/216640
    Improve DB operations for quota reservation

Addressed by: https://review.openstack.org/218375
    Reservations: Don't count usage if resource is unlimited

Addressed by: https://review.openstack.org/218576
    Improve python code for missing suggestion

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

Addressed by: https://review.openstack.org/218710
    Merge remote-tracking branch 'origin/master' into merge-branch

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

Addressed by: https://review.openstack.org/224334
    Merge remote-tracking branch 'origin/master' into merge-pecan-resolve-conflict

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

Addressed by: https://review.openstack.org/224357
    Merge remote-tracking branch 'origin/master' into walnut

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.