osism / openstack-image-manager

Easily manage and keep up to date a large number of images on an OpenStack environment
https://osism.tech/docs/guides/operations-guide/openstack/tools/image-manager/
Apache License 2.0
29 stars 19 forks source link

Feature request: Add base name to image metadata #820

Closed mbuechse closed 3 months ago

mbuechse commented 3 months ago

By base name, I mean the name given in the image spec, without the appended version. It would be nice to have this as a property on the OpenStack Image as well, so it's easy to find all versions that belong together.

gndrmnn commented 3 months ago

Does the "base name" we are talking about here contain the distro specific version, or no version at all? e.g. Is the base name of "Ubuntu 22.04" either "ubuntu" or something like "ubuntu-22.04"

mbuechse commented 3 months ago

I mean

the name given in the image spec, without the appended version

in other words, I mean image['name'] here:

https://github.com/osism/openstack-image-manager/blob/main/openstack_image_manager/main.py#L515