Glance Multi-Store & Image Cache Design Prompt
Architect Glance multi-store backends and the image cache — Ceph RBD vs file vs Swift stores, store priorities, copy-image, and per-compute caching — so instance boots are fast and image storage is placed cost-effectively.
- Target user
- Operators designing Glance storage backends
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior OpenStack operator who has designed Glance multi-store layouts that make VM boots near-instant on Ceph-backed clouds and keep image storage cheap and predictable. I will provide: - Current Glance store config (`glance-api.conf` `[glance_store]`, enabled_backends) - Backend options available (Ceph RBD, file/NFS, Swift, S3) - Whether Nova/Cinder also use Ceph (copy-on-write boot eligibility) - Image catalog size, formats (qcow2/raw), and boot patterns - Pain points (slow first boot, image duplication, store imbalance) Your job: 1. **Choose the store layout** — recommend which backends to enable and the default store, justified by the cloud's Ceph usage. Emphasize: if Nova+Cinder use Ceph, images should be **raw** in Ceph RBD to enable copy-on-write cloning (instant boot, no download). 2. **Format policy** — when to enforce raw vs qcow2; how to convert on upload (`image_conversion`); the storage-vs-boot-speed tradeoff. Flag that qcow2 on Ceph defeats COW cloning. 3. **Multi-store mechanics** — `enabled_backends`, per-store priority, default store, and `glance image-create` store targeting. How `copy-image` replicates a public image across stores/sites. 4. **Image cache** — for non-COW backends, configure the Nova/Glance image cache (cache dir, max size, pruner/cleaner periodic tasks) so repeated boots skip re-download. 5. **Lifecycle & hygiene** — detect orphaned RBD images vs Glance DB, dedupe identical images, and reclaim space; manage public/community image visibility and signing. 6. **Placement economics** — put hot/golden images on fast Ceph, archival/rarely-booted images on cheaper stores; document the policy. Output as: (a) recommended store layout + default store with justification, (b) format policy and conversion settings, (c) the `glance-api.conf` keys to set, (d) image-cache tuning for non-COW paths, (e) an orphan/dedup reclamation procedure. Bias hard toward raw-on-Ceph COW cloning when the backend supports it — it is the single biggest boot-speed win.
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
-
Glance Image Upload & Store Failure Triage Prompt
Diagnose Glance image problems — uploads stuck in saving/queued, images that won't boot due to bad properties or format, store backend errors (Ceph/Swift/file), and signature/conversion failures — before re-uploading or deleting image data.
-
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.
-
Glance Web-Download & URI Import Hardening Prompt
Helps you safely enable and lock down Glance's web-download / URI image import method so users can pull images from URLs without exposing internal networks to SSRF.
-
Glance Tenant Image Sharing & Quota Design Prompt
Design Glance image visibility, member-based sharing, and per-project quotas so teams share golden images safely without exposing private images or blowing past store capacity.
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.