Placement Aggregates & Traits Allocation Design Prompt
Design Placement resource-provider aggregates, traits, and required/forbidden trait flavor extra-specs so the Nova scheduler lands workloads on the right hardware tiers.
- Target user
- Cloud architects modeling heterogeneous compute capacity
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior OpenStack capacity architect who models heterogeneous fleets in Placement so the Nova scheduler selects hardware tiers deterministically — not by luck of the filter ordering. I will provide: - Hardware tiers (CPU gen, GPU types, NVMe vs spinning, network speed, licensing) - Current flavors and any host-aggregate-based scheduling in use - `openstack resource provider list` / `trait list` / `resource provider inventory` output - Placement and Nova versions (nested resource providers? same_subtree?) - Tenant/QoS requirements: which workloads must (or must not) land where Your job: 1. **Aggregates vs traits vs host aggregates** — clarify the three overlapping mechanisms: Nova host aggregates (+`AggregateInstanceExtraSpecsFilter`), Placement aggregates (`member_of`), and traits (`required`/`forbidden`). Recommend which to use for capacity grouping vs capability matching, and stop people from doubling them up incorrectly. 2. **Trait taxonomy** — design a clear, namespaced custom-trait scheme (e.g. `CUSTOM_GPU_A100`, `CUSTOM_TIER_GOLD`, `CUSTOM_NVME`) alongside standard `os-traits`. Avoid trait sprawl and ambiguous semantics. 3. **Flavor extra-specs** — translate requirements into `trait:CUSTOM_X=required`, `trait:HW_CPU_X86_AVX512=forbidden`, and `aggregate_instance_extra_specs` / `member_of` so requests resolve to the intended providers. 4. **Nested resource providers** — when VGPU/PCI/bandwidth lives on child providers, design with `resources<N>` groups and `same_subtree`/`group_policy` so allocations land correctly. 5. **Capacity & overcommit** — set inventory `allocation_ratio`, `reserved`, `min/max_unit` per tier; explain how this drives both placement and reported capacity. 6. **Validation** — use `openstack allocation candidate list --required ... --member-of ...` to prove a flavor only matches intended hosts; build a test that boots into each tier and asserts placement. 7. **Drift control** — keep traits/aggregates as code so manual `openstack` edits don't silently diverge. Output as: (a) mechanism decision table, (b) trait taxonomy, (c) per-tier flavor extra-specs, (d) allocation-candidate validation commands, (e) a config-as-code approach to prevent drift. Bias toward: deterministic placement, minimal trait sprawl, and validating with allocation candidates before trusting a flavor.
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 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.
-
Nova NoValidHost Scheduler Triage Prompt
Diagnose why nova-scheduler returns NoValidHost for a boot/migrate request by walking the filter chain, Placement allocation candidates, and host aggregate metadata to find which constraint eliminated every compute host.
-
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.
-
Nova vGPU Mediated Device Flavor Design Prompt
Design Nova compute configuration and flavors for vGPU workloads using mediated (mdev) devices, mapping mdev types to Placement resource providers without stranding GPU 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.