Skip to main content

OpenStack image manager

Project description

openstack-image-manager

PyPi version PyPi license Documentation

Easily manage and keep up to date a large number of images on an OpenStack environment

Upstream checksum fields

Image versions using the latest pointer must specify where to find the upstream checksum, using exactly one of these two fields:

  • checksums_url — URL of a checksums file that contains the image filename, e.g. the SHA256SUMS manifest published by Ubuntu. Lines have the form <digest> <filename>; the line matching the image filename is used.
  • checksum_url — URL of a checksum file that contains a single bare digest and nothing else, e.g. the .sha512 sidecar files published by Alpine. Use this when the checksum file does not contain the image filename.

Supported digests are MD5, SHA-1, SHA-256 and SHA-512 (hex-encoded). The checksum URLs must be HTTP(S).

Import path (--prefetch)

By default images are imported with Glance's web-download method, where glance-api fetches the image from its URL itself. When that fetch is slow or flaky, the import can stall and revert to queued. As an alternative the image can be downloaded locally with aria2c (robust multi-connection download with retry and resume) and uploaded via the glance-direct import method, which runs the same decompress/convert/store taskflow as web-download.

--prefetch selects the behaviour:

  • never — always use web-download (previous default behaviour).
  • on-stuckdefault; use web-download first, and fall back to aria2c + glance-direct once if the web-download attempts fail.
  • always — skip web-download and use aria2c + glance-direct directly.

--import-timeout (default 1800) bounds the overall per-image wait, shared across all attempts. When a definition carries a checksum, it is passed to aria2c for verification.

The aria2c binary must be installed for the prefetch path, and the target cloud must have the glance-direct import method enabled.

Unlike web-download (where glance-api fetches the image directly), the prefetch path downloads the image to a temporary directory on the host running openstack-image-manager, so that filesystem needs room for the full image (e.g. ~345 MB for the octavia amphora image). A free-space preflight aborts before downloading if the temporary filesystem is too small.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openstack_image_manager-0.20260722.0.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openstack_image_manager-0.20260722.0-py3-none-any.whl (38.6 kB view details)

Uploaded Python 3

File details

Details for the file openstack_image_manager-0.20260722.0.tar.gz.

File metadata

File hashes

Hashes for openstack_image_manager-0.20260722.0.tar.gz
Algorithm Hash digest
SHA256 6c6e24c1e6307bec03853c7fbcf0490559789213e9e1e64bb31976b0714534d1
MD5 4ef72ad67999a41d2e8110040ad6f5e8
BLAKE2b-256 13cfee964544dbc352b6105433641ebd8e1bed707dde116a169200aebec8280a

See more details on using hashes here.

File details

Details for the file openstack_image_manager-0.20260722.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openstack_image_manager-0.20260722.0-py3-none-any.whl
Algorithm Hash digest
SHA256 072f0c1bef64d9a5cbc633e8bec47679485969615502a593b4498f1710159a5c
MD5 a4e83f95e8193d5941d5e9e268ec14cf
BLAKE2b-256 532086cca5a24e20dbbd601897b33656ee61335255db73e8afe7a32971494804

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page