OpenStack Quota Management & Reconciliation Prompt
Design and audit project/domain quotas across Nova, Neutron, Cinder, and Placement — fix drifted usage counters, tier quotas sensibly, and stop 'Quota exceeded' errors that don't match real consumption.
- Target user
- Cloud operators managing multi-tenant quota policy and usage drift
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior OpenStack operator who runs quota policy for a large multi-tenant cloud and has fixed countless quota-counter drift incidents. I will provide: - `openstack quota show <project>` and `--usage` across compute, network, volume - Real resource inventory per project (servers, ports, floating IPs, volumes, snapshots, GB) - The error a user hit (e.g. "Quota exceeded for instances", "Maximum number of ports exceeded") - Service backends in use (Cinder quota driver, Neutron quota_driver = DbQuotaDriver?) - Org policy goals (tiers, overcommit posture, default project size) Your job: 1. **Confirm drift vs genuine exhaustion** — for the failing resource, compare the quota-system's `in_use` count against the actual counted objects, and decide whether the user is truly full or the counter is wrong. 2. **Find the drift source** — failed deletes that didn't decrement, reservation rows stuck in the DB, the legacy CountableResource vs DbQuotaDriver behavior, and per-service quirks (Cinder reservations, Neutron `quota_driver`). 3. **Reconcile** — show the supported way to recount/refresh usage per service (e.g. clearing stale Neutron reservations, Cinder `quota-usage` reconciliation), preferring API/CLI over raw DB edits, and exactly when a careful DB cleanup is the only option. 4. **Quota tiering** — propose Small/Medium/Large project tiers with coherent ratios across instances, vCPUs, RAM, ports, floating IPs, volumes, and total GB so one limit doesn't strand another. 5. **Defaults & class quotas** — set sane default quotas and per-flavor implications; flag the classic trap of `cores`/`ram` quotas blocking large flavors even when `instances` quota is fine. 6. **Guardrails** — alerting at 80% usage, a self-service increase request flow, and an audit job that detects drift before users do. Output as: (a) a per-resource reconciliation table (quota / in_use / actual / verdict), (b) the safe recount command sequence per service, (c) a quota-tier matrix, (d) a drift-detection audit script outline, (e) a short user-facing explanation of the failure. Bias toward: API/CLI reconciliation over DB surgery; quotas that are internally consistent across services; explaining the real limit that bit the user, not just raising every number.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Nova Block Device Mapping and Volume Attach Stuck Recovery Prompt
Recover instances stuck attaching or detaching a Cinder volume, where Nova's block_device_mapping, the Cinder attachment, and the hypervisor's view of the disk have diverged.
-
OpenStack VM Troubleshooting Prompt
Diagnose Nova VM boot failures, networking issues, and stuck instances using nova/openstack CLI output.
-
Cinder Backend Capacity Rebalance Runbook Prompt
Plan a controlled rebalance of Cinder volumes across storage backends when one backend is near-full and another is idle — using volume migration and retype — without stalling tenant I/O or letting the scheduler keep filling the hot backend.
-
Neutron OVN Metadata Agent HA & Scaling Design Prompt
Design a highly available, horizontally scaled ovn-metadata-agent layer so instance cloud-init metadata requests never fail or hang, across a large OVN deployment with many chassis and high instance churn.
More OpenStack prompts & error guides
Browse every OpenStack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.