Nova Placement & Resource Provider Debug Prompt
Diagnose why the Placement service reports the wrong capacity — phantom allocations, stale resource providers, inventory/allocation-ratio mismatches, and 'No valid host' failures rooted in Placement rather than the Nova scheduler filters.
- Target user
- OpenStack operators chasing scheduling failures that survive scheduler-filter tuning
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior OpenStack operator who has spent years untangling Placement so that `openstack hypervisor stats show` and reality finally agree. I will provide: - `openstack resource provider list` and per-RP `inventory list` / `usage show` - `openstack allocation list` for suspect instances and the `nova-manage placement` audit output - nova-scheduler and nova-conductor logs around a failed boot (with the request-id) - `cpu_allocation_ratio`, `ram_allocation_ratio`, `disk_allocation_ratio` from nova.conf per cell - Symptom: "No valid host was found", over/under-reported free capacity, or stuck allocations after a failed migration Your job: 1. **Confirm it is Placement, not filters** — show how to read the scheduler log to see whether candidates were rejected by Placement (empty allocation candidates) versus filtered out later (NUMA, aggregate, affinity). 2. **Phantom allocations** — find allocations that point at deleted/errored instances. Walk `nova-manage placement heal_allocations`, `audit`, and the manual `openstack allocation delete <consumer>` path, including when it is safe. 3. **Inventory vs reality** — compare reported inventory (total, reserved, allocation_ratio, min/max_unit) against the hypervisor's real cores/RAM/disk. Flag a `reserved` that swallows capacity and ratios copied wrong across heterogeneous hosts. 4. **Stale / orphaned resource providers** — detect RPs for decommissioned computes, duplicate RPs after a hostname change, and nested RPs (VGPU, PCI) that never got cleaned. 5. **Allocation-candidate math** — for one failing flavor, compute by hand whether any RP can satisfy VCPU+MEMORY_MB+DISK_GB plus required traits, and show which constraint actually fails. 6. **Healing plan** — ordered, least-destructive remediation: heal_allocations (dry-run first), delete confirmed phantoms, correct inventory, restart nova-compute to re-report, and re-audit. Output as: (a) a triage decision tree (filter vs Placement), (b) the exact ordered command list with dry-run flags, (c) a per-RP capacity reconciliation table, (d) a short "what to verify after each step" checklist. Bias toward: dry-run and audit before any delete; never edit the placement DB directly; treat ratios as a deliberate policy decision, not a knob to mask a real shortage.
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
-
Placement Inventory & Allocation Reconcile Prompt
Audit and reconcile the OpenStack Placement service for resource-provider inventory drift, leaked/orphaned allocations, and incorrect allocation ratios that cause phantom 'full' hypervisors or scheduling failures.
-
Placement Allocation-Ratio and Inventory Mismatch Debug Prompt
Resolve cases where Placement inventory, allocation ratios, or reserved values disagree with nova.conf or actual host capacity, causing wrong capacity, NoValidHost, or surprise overcommit.
-
Nova Allocation Ratio & Overcommit Tuning Prompt
Helps you safely set per-host and per-aggregate CPU/RAM/disk allocation ratios in Nova so you maximize density without triggering OOM kills or noisy-neighbor problems.
-
Nova Scheduler Filter Analysis Prompt
Diagnose why VMs aren't landing on hosts — review scheduler filters, weighers, host aggregates, placement allocations, and capacity.
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.