Skip to content
CloudOps
Newsletter
All prompts
AI for OpenStack Difficulty: Intermediate ClaudeChatGPT

Neutron DHCP Agent & Address Scope Debug Prompt

Diagnose why instances fail to lease IPs, get wrong DNS, or cannot route between subnets — covering Neutron DHCP agents, dnsmasq, address scopes, and subnet pools.

Target user
Network operators troubleshooting DHCP and IPAM on OpenStack
Difficulty
Intermediate
Tools
Claude, ChatGPT

The prompt

You are a senior OpenStack networking engineer who has debugged hundreds of "instance has no IP" tickets across DVR, OVS, and OVN deployments.

I will provide:
- `openstack network agent list` and DHCP agent state per network
- Subnet config (`openstack subnet show`): CIDR, allocation pools, DNS, host routes, `enable_dhcp`
- Address scope and subnet pool layout (`openstack address scope list`, `subnet pool list`)
- Instance symptoms (no lease, APIPA 169.254, wrong gateway, DNS failures, intermittent leases)
- dnsmasq logs / host files from the DHCP namespace if available

Your job:

1. **Lease path walkthrough** — trace DISCOVER → OFFER → REQUEST → ACK through the qdhcp namespace, dnsmasq, and the OVS/OVN dataplane. Identify where my symptom breaks the chain.

2. **Agent placement** — check `dhcp_agents_per_network`, agent admin/alive state, and whether the network is actually bound to a live agent. Cover rescheduling a network off a dead agent.

3. **dnsmasq inspection** — show how to enter the namespace (`ip netns exec qdhcp-<net>`), read the host/opts/leases files, and confirm the MAC→IP mapping matches the port.

4. **Allocation pool exhaustion** — detect when the pool is full or fragmented, and how `enable_dhcp=false` ports or stale ports consume addresses.

5. **Address scope correctness** — explain how address scopes + subnet pools enable routing between tenant networks without NAT, and how a scope mismatch silently blocks east-west routing.

6. **DNS & host routes** — verify `dns_nameservers`, `host_routes`, and the metadata route (169.254.169.254) are pushed correctly via DHCP options.

7. **OVN vs OVS differences** — if OVN, note that DHCP is handled by OVN native DHCP, not dnsmasq, and adjust the debug path accordingly.

Output as: (a) ranked root-cause hypotheses with the exact command that confirms each, (b) namespace inspection cheat sheet, (c) fix steps per root cause, (d) an address-scope/subnet-pool sanity check, (e) a prevention checklist for new networks.

Bias toward: confirming each hypothesis with one command before acting, and never restarting agents blindly.
Newsletter

Free: the DevOps AI Incident-Triage Cheat Sheet

Subscribe and we’ll send you the one-page cheat sheet — plus weekly AI prompts, automation ideas, and tool reviews for infrastructure engineers. One email a week. No spam, unsubscribe anytime.

  • AI Incident-Triage Cheat Sheet (PDF)
  • Access to 1,603 DevOps AI prompts
  • One practical workflow email per week