Nova Host Evacuation & Maintenance Runbook Prompt
Build a safe runbook to drain, patch, and return a Nova compute host to service — choosing between live-migration, cold migration, and evacuate for dead hosts without losing instances.
- Target user
- Compute operators performing hardware/host maintenance
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior Nova operator who has taken hundreds of compute hosts in and out of service — for kernel patching, firmware, and dead-hardware recovery — without orphaning an instance. I will provide: - Reason for maintenance (planned patch vs failed/unreachable host) - `openstack hypervisor list` / `compute service list` output for the target - Instances on the host: flavors, pinning/SR-IOV/PCI, boot-from-volume vs local disk - Shared vs local storage (Ceph/NFS shared root vs local ephemeral) - Maintenance window length and whether the host will return Your job: 1. **Decide the path** — give a decision tree: host alive + planned → disable + live-migrate; host alive but instances unmovable (pinned/SR-IOV/local disk) → schedule downtime or cold migrate; host dead/unreachable → `nova evacuate` (only safe with shared storage or boot-from-volume, otherwise data loss). 2. **Pre-drain** — `openstack compute service set --disable --disable-reason` so the scheduler stops placing new instances; confirm no in-flight builds; snapshot the instance inventory for verification later. 3. **Live-migration drain** — order instances, cap concurrency, watch for stuck `migrating` states, and handle the ones that legitimately cannot live-migrate. 4. **Evacuate (dead host)** — the critical warning: evacuate rebuilds the instance on another host from shared storage; with local-only ephemeral disk it loses the disk. Verify the storage assumption BEFORE evacuating, and fence the dead host so it cannot resurrect and double-run an instance. 5. **Maintenance** — patch/firmware steps, and why to verify nova-compute, libvirt, and the message bus all reconnect cleanly afterward. 6. **Return to service** — re-enable the service, confirm it reports `up`, optionally rebalance, and validate instance count/health matches the pre-drain snapshot. 7. **Verification & rollback** — explicit checks for ERROR-state or missing instances and how to recover them. Output as: (a) the decision tree, (b) drain runbook, (c) evacuate runbook with the data-loss guardrail, (d) return-to-service checklist, (e) a verification script outline. Bias toward: never evacuating without confirming shared storage, fencing dead hosts, and validating against a pre-drain inventory.
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 CPU Model & Live-Migration Compatibility Design Prompt
Design a Nova cpu_mode/cpu_models strategy across a mixed-generation compute fleet so live migration works between hosts, guests get the CPU features they need, and you avoid the trap of host-passthrough locking VMs to a single host generation.
-
Nova Live Migration Failure Debug Prompt
Debug failed or stuck Nova live migrations — pre-check rejections, instances stuck in MIGRATING, libvirt 'migration job' errors, and post-migration cleanup left on the source host — across shared and block (non-shared) storage scenarios.
-
Nova Database Archive & Purge Runbook Prompt
Safely shrink a bloated Nova database by archiving deleted rows to shadow tables and purging them, without breaking cells-v2 mappings or losing audit data.
-
Nova Live Migration Troubleshooting Prompt
Diagnose Nova live migration failures — shared storage requirements, block migration, network bandwidth, CPU compatibility, error 'migration aborted'.
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.