Managing Glance images
Find out how to import, verify, share and delete images in Glance on SNC Cloud Platform, and create volumes from them with the OpenStack CLI
Objective
Practical guide to importing, verifying and managing images in Glance (OpenStack's image catalogue service) on SNC Cloud Platform. Target audience: anyone who needs an image not in the default catalogue.
This guide covers an image's full lifecycle in Glance on this platform: import, verification, use for creating a volume or instance, visibility management, deletion — with the specifics of this platform, which complement generic OpenStack documentation.
Requirements
- The
openstackCLI configured (see the Terraform guide forclouds.yaml-based authentication). - The
memberrole, at minimum. - A local machine with enough free disk space to stage the image being imported — the upload happens from the local machine, not server-side (see the "Available import methods" section).
Instructions
Available import methods
Glance offers several import methods. On this platform, only openstack image create --file (direct upload from the local machine) is supported — it is the recommended method:
Step 1 — Listing existing images
Before importing anything, check whether an equivalent image already exists:
Base catalogue generally available on this platform (varies by project): common Linux distributions (Debian, AlmaLinux, CentOS) as ready-to-use OVH images (cloud-init included). Any image outside this catalogue (Windows, an unlisted distribution, a specific appliance) needs to be imported manually.
Step 2 — Importing an image
Picking the right --disk-format
--container-format bare fits nearly every case (no extra container metadata needed).
--private restricts the image's visibility to your project (see step 5).
Importing a large image
--progress shows a progress bar during the upload — useful for multi-GB files, where several minutes without visible feedback might otherwise suggest a stalled upload.
Step 3 — Verifying an imported image
status should read active. Any other value persisting (queued, saving) signals an import that is not progressing — see the "Known pitfalls (troubleshooting)" section.
Step 4 — Creating a volume from an image
Two use cases, with different behaviour observed in practice:
Standalone volume (recommended)
Works reliably and quickly (tens of seconds for several GB). Prefer this method to verify that an image converts correctly to a volume before using it to create an instance.
<size-GB> must be strictly greater than the image's virtual size (Glance's virtual_size), not its compressed size on disk. An image weighing a few hundred MB can have a virtual size of 15-20 GB once decompressed.
Volume created alongside an instance (server create --block-device)
Good practice: creating multiple source_type=image block devices at once in a single server create call can leave the instance in task_state=scheduling/spawning for longer than expected before reaching ACTIVE. The recommended approach on this platform is to pre-create each volume separately (fast and reliable, method above), then reference them in server create with source_type=volume (not image):
Step 5 — Managing an image's visibility
--private is the recommended default for an image imported for a one-off use (test, Windows VM). --shared works as expected on this platform to share an image with specific projects. public visibility (accessible to every project on the platform) is not available.
Step 6 — Deleting an image
An image cannot be deleted while a volume or instance still directly depends on it. Whether a dependency remains depends on the attachment method: a volume already created from the image no longer depends on it. Check for active usage before deleting:
Known pitfalls (troubleshooting)
Go further
Creating a Windows Server VM — importing an ISO, full use case including blank volumes; same platform, same import limitations.
Terraform guide — the data "openstack_images_image_v2" pattern for reusing an existing image without recreating it.
Official OpenStack Image (Glance) CLI documentation: docs.openstack.org — Image v2.
For training or technical assistance implementing our solutions, contact your sales representative or visit our Professional Services page to request a quote and have your project analysed by our experts.
Join our community of users.