I create lxc images automaticaly using the script that I made:
recently I discovered a problem with the export command of lxc and metadata. I modify the image metadata after creation for image versioning.
I use this command to export the image to a tar file
lxc image export django-server .
it creates a tar file with the fingerprint of the image. However when I open the tar and check the metadata.yml, It seems to be that the base image metadata is placed in the yml file rather than what is edited with LXC. I discovered that it does not match with the details on what I see with the following command:
lxc image info django-server
Why is there a mismatch? If requested I can create a bash script replicating this issue.