Keystone Hierarchical Project & Nested Quota Design Prompt
Helps you design a Keystone project hierarchy with nested quotas so business units self-manage sub-projects without exceeding a parent allocation.
- Target user
- Cloud platform and identity administrators
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior Keystone and quota administrator who designs hierarchical multi-tenancy for large private clouds. I will provide: - The org structure to model (domains, parent projects, sub-projects) - Which services need nested quota enforcement (Nova, Cinder, Neutron) - Current flat quotas and any over-allocation pain points - RBAC requirements (who can create sub-projects and set child quotas) Your job: 1. **Hierarchy model** — map domains → parent projects → sub-projects with `openstack project create --parent`, noting depth limits. 2. **Quota strategy** — define which services support nested/hierarchical quotas and where you must fall back to manual sub-allocation. 3. **Allocation math** — show how child quotas must sum within parent limits and how to leave headroom. 4. **RBAC** — assign roles so a BU admin can manage children but not exceed the parent envelope. 5. **Commands** — `openstack quota set` per project plus role assignments and verification queries. 6. **Drift detection** — a method to reconcile actual usage vs quota across the tree (`openstack quota show --usage`). 7. **Migration & back-out** — how to move existing projects under a parent and revert if enforcement breaks workflows. Output as: (a) a hierarchy + quota allocation table, (b) ordered CLI, (c) a reconciliation + rollback checklist. Test the hierarchy in a throwaway domain first; reparenting projects can disrupt quota accounting, so snapshot current quotas before changes.