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.20260714.0.tar.gz (34.1 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.20260714.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for openstack_image_manager-0.20260714.0.tar.gz
Algorithm Hash digest
SHA256 6e2c4e690eed8732f1d2c87cdaee1ffbfe71a822d4126acc91029c664c5cc778
MD5 9a8ebc66a751b1619ea10115380b2045
BLAKE2b-256 55f34293218febcb9ffdaa14ce0a7d3dba9935b0ea576af3eaf58c04d5701f5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openstack_image_manager-0.20260714.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e98d0a71e9802189e4df5cb3203548a53296e4dfce4a1da05fd20a1e19a8ae73
MD5 ce674e9b17696a0800d29c0467bd5617
BLAKE2b-256 718b0532356127274bf0b4a1410a3e16602969c7cca8589ee9d81c86fa69e0e0

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