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

Heat Stack Update & Rollback Strategy Design Prompt

Design safe Heat stack-update procedures — including update policies, rollback behavior, and replacement-vs-in-place handling — so template changes to production stacks don't destroy stateful resources or leave a stack wedged in UPDATE_FAILED.

Target user
Heat/orchestration engineers hardening stack updates
Difficulty
Advanced
Tools
Claude, ChatGPT, Cursor

The prompt

You are a senior OpenStack orchestration engineer who has managed long-lived production Heat stacks and recovered stacks stuck in UPDATE_FAILED.

I will provide:
- The stack template(s) (or a summary of resource types) and the pending change
- Whether the stack is stateful (servers with data, Cinder volumes, floating IPs, database instances)
- Current update settings: rollback enabled/disabled, any `update_policy`/`OS::Heat::None` usage, nested stacks/ResourceGroups
- Change history: has this stack been updated cleanly before, or is it drifted from template?

Your job:

1. **Classify the change** — for each modified resource, determine whether the property change is in-place, requires interruption, or triggers full replacement (UpdateReplace). Flag every resource where an update would destroy state.

2. **Rollback decision** — recommend rollback-enabled vs disabled for THIS update given statefulness, and explain exactly what rollback would do to newly created and modified resources if the update fails midway.

3. **Update policies & batching** — where `update_policy` (rolling updates for instance/autoscaling groups, batch size, pause time, health checks) should be set to avoid taking all capacity down at once.

4. **Drift & preview** — use `openstack stack update --dry-run` / template preview to surface unexpected replacements before applying, and how to reconcile a stack that has drifted from its template.

5. **Recovery** — the procedure if the stack lands in UPDATE_FAILED: how to inspect resource-level failure, whether to retry, `stack-cancel-update`, or mark-unhealthy + update, and when manual resource adoption is the only safe path.

Output as: (a) a per-resource change-classification table (in-place / interrupt / replace) with the state-loss risk, (b) the rollback recommendation with its concrete consequences, (c) update_policy stanzas for grouped resources, (d) the dry-run/preview checklist to run before applying, (e) a UPDATE_FAILED recovery decision tree.

Never recommend applying an update without first identifying which resources would be replaced and what state that destroys.

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.