Files
zuul-jobs/roles/upload-image-swift
Clark Boylan d0c1ccc856 Fix upload-image-swift role module usage
The file in library/ is image_upload_swift.py but we were invoking
upload_image_swift. Rename image_upload_swift.py to upload_image_swift
to match. This has the advantage of matching role variable names and the
corresponding s3 role.

Change-Id: Ib247548f0ec11252944bf77523d718b0c4d02d3d
2025-08-07 13:02:54 -07:00
..
2025-08-01 09:04:38 -07:00
2025-08-01 09:04:38 -07:00
2025-08-01 09:04:38 -07:00

Upload a filesystem image to a swift container

This uploads a filesystem image (for example, one built by diskimage builder) to an OpenStack Object Store (Swift) container. The role returns an artifact to Zuul suitable for use by the zuul-launcher.

If a raw or vhd image is provided and the zstd command is available, it will be compressed in the way that zuul-launcher expects.

Role Variables

Complex argument which contains the cloud configuration in os-cloud-config (clouds.yaml) format. It is expected that this argument comes from a Secret.

This role will create containers which do not already exist.

Note that you will want to set this to a value that uniquely identifies your Zuul installation if using shared object stores that require globally unique container names. For example if using a public cloud whose Swift API is provided by Ceph.

The container should be dedicated to image uploads so that the "delete_after" option may be safely used.

The image format (e.g., qcow2).