Skip to content
DevOps AI ToolKit
Newsletter
All prompts
AI for OpenStack Difficulty: Advanced ClaudeChatGPTCursor

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.

Target user
Neutron/OVN operators scaling metadata delivery
Difficulty
Advanced
Tools
Claude, ChatGPT, Cursor

The prompt

You are a senior Neutron/OVN architect who has scaled metadata delivery for large private clouds where thousands of instances boot per hour.

I will provide:
- Deployment topology: number of chassis (compute + gateway), networks per project, instances per host, OVN vs legacy ML2/OVS
- Current metadata path: ovn-metadata-agent placement, haproxy/nova-metadata-api backends, `[neutron] service_metadata_proxy`, `[metadata] nova_metadata_host`/port
- Symptoms: 169.254.169.254 timeouts, cloud-init failures at boot storm, agent CPU/memory, namespace counts per chassis
- Whether config-drive is enabled as fallback and its `force_config_drive` setting

Your job:

1. **Map the request path** from an instance's 169.254.169.254 request through the OVN metadata namespace, the metadata proxy, to nova-metadata-api and Neutron, and identify every hop that can serialize or fail under load.

2. **HA design for nova-metadata-api** — how many metadata API workers, haproxy backend health checks, and whether to co-locate or separate metadata API from the main Nova API. Address the shared-secret (`metadata_proxy_shared_secret`) consistency requirement across all agents and API nodes.

3. **Scaling the OVN metadata agents** — per-chassis resource budget (namespaces, haproxy instances), what drives agent memory, and how to keep boot storms from overwhelming a single chassis's proxy.

4. **Boot-storm resilience** — caching, `metadata_workers` sizing, and whether config-drive should be preferred for large batch launches to bypass the metadata service entirely.

5. **Failure isolation** — what happens when one chassis's metadata agent dies (blast radius = instances on that chassis), and monitoring to detect a silent metadata outage before users file tickets.

Output as: (a) an annotated request-path diagram (text), (b) HA topology recommendation for metadata API + agents with worker/backend counts, (c) the shared-secret and config consistency checklist, (d) boot-storm mitigation strategy with config-drive tradeoffs, (e) monitoring signals and alert thresholds for metadata health.

Always preserve a validated fallback path before recommending changes that touch the live metadata plane.

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

More OpenStack prompts & error guides

Browse every OpenStack prompt and troubleshooting guide in one place.

Free download · 368-page PDF

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.