Open marbetschar opened 4 years ago
@carlosduelo I'm happy to provide a PR, but don't know where to start. Would be awesome if you can point me towards where to start, because this issue is a blocker for me.
FWIW: Executing the following commands show the image metadata is missing when requested through lxd-image-server
- although it is part of the image itself stored on lxd-image-server
as shown before:
$ lxc remote add desktops https://images.desktop-linuxcontainers.org --public --protocol simplestreams
$ lxc image show desktops:ubuntu/focal/amd64/xfce
auto_update: false
properties:
architecture: amd64
description: ubuntu focal amd64 (20200603_11:06)
os: ubuntu
release: focal
serial: "20200603_11:06"
public: true
It seems like lxd-image-server generates it's own metadata based on the directory structure, thus completly ignoring the image's metadata
I think the best way would be to:
How can I retain the original image metadata properties when I distribute images using
lxd-image-server
...? I do have some custom logic, which does some magic based upon the imagevariant
. But this property seems to get lost when the image is downloaded:How to reproduce
I'm building different variants of the same distribution using
distrobuilder
and upload them tolxd-image-server
usingscp
. After upload I'm executinglxd-image-server update
to rebuild the json files. Then, I pull the images to a local lxd using the following commands:And display the image metadata with:
As you can see, there is no
variant
property. However, if you download the lxd.tar.xz file, unpack it and look at the metadata.yaml its there (the description is different as well):