TRITON-2251: Want imgapi to be able to import lxc images by sha hash

Details

Issue Type:Wishlist
Priority:4 - Normal
Status:Open
Created at:2021-08-31T20:22:44.042Z
Updated at:2021-08-31T20:22:44.042Z

People

Created by:Brian Bennett
Reported by:Brian Bennett

Labels

linuxcn

Description

Currently we can only import via the alias, but LXC image repos have many more images available only via the hash. The alias will always point to the latest image, but if you need an older image, for whatever reason, it's not possible to import it currently.

d7d96607-2dcb-9f5c-aa44-b3ae83eea2d4 debian_buster_amd64_cloud 20210731_05_25 P linux 2021-07-31T00:00:00Z

Properties:
release: bullseye
architecture: amd64
serial: 20210831_05:24
os: Debian
description: Debian bullseye amd64 (20210831_05:24)
variant: cloud
type: squashfs

When we do this, it'll be important that the image name is the following format:

${properties.os}_${properties.release}_${properties.architecture}_${properties.variant}

And the version is set to ${properties.serial}.

I believe this is how they are named/versioned already, but need to verify this is the case and not derived from the alias.

Comments