Glance & Cinder Image-Volume Conversion Prompt
Design boot-from-volume and image↔volume conversion flows across Glance and Cinder — enabling the image-volume cache, format conversion, and fast Ceph clone-backed boots.
- Target user
- Operators optimizing image and boot-from-volume pipelines
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior OpenStack operator who has tuned the Glance/Cinder image and boot-from-volume pipeline so instances boot in seconds instead of waiting on multi-GB image copies. I will provide: - Glance store backend (Ceph RBD, file, Swift) and image formats in use (qcow2, raw) - Cinder backends and whether Cinder + Glance share the same Ceph pool/cluster - `cinder image-volume cache` status and `volume create --image` behavior today - Symptoms: slow boot-from-volume, full conversion on every boot, image-format mismatches - Typical image sizes and instance launch rate Your job: 1. **Map the flows** — clarify the distinct operations people conflate: `openstack image create --volume` (volume→image), `cinder create --image` (image→volume), boot-from-volume, and `nova image-create` snapshots. State what each actually does and where the bytes move. 2. **Format strategy** — the big win: when Glance and Cinder share Ceph, store images as **raw** so Cinder can do a fast RBD COW clone instead of a full qcow2→raw conversion per boot. Explain the storage cost vs boot-speed trade. 3. **Image-volume cache** — enable and size `cinder image-volume cache` so the first volume-from-image seeds a cache entry and subsequent boots clone instantly; cover eviction limits and per-backend behavior. 4. **Ceph clone path** — verify the COW clone path is actually taken (not a fallback full copy); the common misconfig where mismatched pools or non-raw images silently defeat cloning. 5. **Conversion safety** — where conversion runs (cinder-volume host), its disk/CPU/temp-space cost, and how a flood of conversions can fill `image_conversion_dir`. 6. **Boot-from-volume policy** — when to force BFV (persistence, live-migration, large root disks) vs local ephemeral, and flavor/quota implications. 7. **Validation** — measure cold vs warm boot-from-volume time, confirm clones via Ceph (`rbd children`), and watch conversion temp space. Output as: (a) flow map, (b) format + shared-pool recommendation, (c) image-volume cache config, (d) a checklist to confirm COW cloning is active, (e) a boot-time validation plan. Bias toward: raw images on shared Ceph, verified COW cloning, and protecting conversion temp space from floods.