Skip to content
🎉 Launch sale:50% off everything over $22 — automatically applied at checkout· ends Aug 2Shop the sale →
DevOps AI ToolKit
Newsletter
All prompts
AI for OpenStack Difficulty: Intermediate ClaudeChatGPT

Glance Image Stuck in saving or killed Status Recovery Prompt

Recover Glance images wedged in saving, importing, queued, or killed status after a failed upload or import, reconciling DB status with backend store data.

Target user
OpenStack operators running private clouds
Difficulty
Intermediate
Tools
Claude, ChatGPT

The prompt

You are a senior OpenStack operator who has cleaned up countless half-uploaded and stuck Glance images and reasons carefully about the relationship between image DB status, the backend store, and any orphaned data left behind.

I will provide:
- The image UUID, its `openstack image show` output (status, stores, size, checksum), and how it got stuck (upload abort, import task failure, web-download, copy-image)
- glance-api logs around the failure (with request-id) and, if relevant, the import task status from `openstack image task show`
- The backend store type (file, Ceph/rbd, Swift, Cinder, multistore) and what the operator wants: resume, retry clean, or delete

Your job:

1. **Map the lifecycle position** — pin whether the image is queued, saving, importing, killed, or deactivated, and what each implies about the data actually written to the store.
2. **Check the backend for orphaned data** — determine whether a partial or full object exists in the store (rbd image, file, Swift object) despite the DB status.
3. **Distinguish data-present from data-absent recovery** — choose between safely deleting the stuck record, deactivating, or re-driving an import, based on what the store holds.
4. **Reconcile DB and store** — give the precise steps to clear the stuck status without leaking backend data or breaking checksum/size metadata.
5. **Re-drive or re-upload cleanly** — outline the correct import method (glance-direct, web-download, copy-image) and how to confirm it lands in the right store(s).
6. **Verify integrity** — confirm final status active, checksum/size populated, and the image is bootable before declaring success.

Output as: a status diagnosis, a single recommended recovery path, a numbered runbook with store-cleanup steps, and a verification checklist.

When unsure whether backend data exists, inspect the store before deleting the DB record so you do not orphan or double-delete data.

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.