Zun

quota support for zun resources

Registered by aditi sharma

This blueprint will implement support for nested quota for openstack zun resources.
as of now we will impose the limit on no. of containers only later we may include some more resources.

Reference: https://specs.openstack.org/openstack/keystone-specs/specs/keystone/ongoing/unified-limits.html

Blueprint information

Status:
Complete
Approver:
hongbin
Priority:
Essential
Drafter:
aditi sharma
Direction:
Approved
Assignee:
Kien Nguyen
Definition:
New
Series goal:
Accepted for stein
Implementation:
Implemented
Milestone target:
None
Started by
hongbin
Completed by
hongbin

Related branches

Sprints

Whiteboard

(kiennt) Hi folks,

After take week(s) to follow & investigate how to implement this blueprint, I recognize that unified limit API isn't ready yet:
* Unified Limit API is labeled as experimental [1]
* The implementation needs a lib called oslo.limit [2]. But a lib still in Work-in-progress phase [3]

We can't implement a new quota that uses an unified limit api now, But we can implement quota support at service level (like other projects) which has several limits itself. Should we do that way? Or wait for an unified limit API be stable. Please share your thoughts :)

[1] https://docs.openstack.org/keystone/latest/admin/identity-unified-limits.html
[2] https://review.openstack.org/#/c/552907/3/specs/rocky/oslo-limit.rst
[3] https://github.com/openstack/oslo.limit

(hongbin) I would vote for implement our own quota API.

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

Addressed by: https://review.openstack.org/559306
    [WIP][DNM] Add Quota database models

Addressed by: https://review.openstack.org/560348
    [WIP] Add Quota objects

Addressed by: https://review.openstack.org/562539
    [WIP] Add Quota DB etcd

Addressed by: https://review.openstack.org/567485
    Add Quota & Quota class policies

Addressed by: https://review.openstack.org/570683
    [WIP][DNR] Add API controller for the quotas

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

Addressed by: https://review.openstack.org/570801
    [WIP][DNR] Add quota_usage_get_by_project

Addressed by: https://review.openstack.org/571627
    Add quota_destroy_all_by_project

Addressed by: https://review.openstack.org/591133
    Ignore H405

Addressed by: https://review.openstack.org/591134
    Remove project_id in path

Addressed by: https://review.openstack.org/591135
    Ignore field 'uuid' when convert from db to object.

Addressed by: https://review.openstack.org/591136
    Update quota db api

Addressed by: https://review.openstack.org/591137
    Add get_count method

Addressed by: https://review.openstack.org/591138
    Introduce QuotaEngine

Addressed by: https://review.openstack.org/591139
    Add API controller for quotas and quota classes

Addressed by: https://review.openstack.org/602584
    [WIP] Add api-ref for quotas and quota_classes

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.