[Bug 1998229] Re: Adding metadata file into OCI images
Cristovao Cordeiro
1998229 at bugs.launchpad.net
Thu Dec 1 08:52:22 UTC 2022
** Description changed:
[ Impact ]
- We have added a build.info file into the/etc/cloud to the Lunar
- container image of Ubuntu. This file can permit the instance to
- determine if a newer build is available with the given runtime info and
- the info on this file. We want to add it into Kinetic, jammy, focal and
- bionic.
+ * The existing Ubuntu container images are being built and published
+ without any metadata information. This will introduce a new cloud-like
+ path and metadata file, including the image's serial number within
+ (which is useful for users to pinpoint a specific revision of the image).
[ Test Plan ]
- * First, you will need to download kinetic, jammy, focal or bionic by
- doing the following:
+ * Run (for any of the affected series):
- docker pull public.ecr.aws/ubuntu/ubuntu:name_of_ubuntu_suite
+ $ docker run public.ecr.aws/ubuntu/ubuntu:jammy grep serial
+ /etc/cloud/build.info || echo "Image metadata not found"
- * Secondly, you will need to do
+ * Currently, the output will be
- docker run public.ecr.aws/ubuntu/ubuntu:name_of_ubuntu_suite test -d
- /etc/cloud && echo 'It Exists.'
+ grep: /etc/cloud/build.info: No such file or directory
+ Image metadata not found
- The "It Exists." will not be printed except for the suite lunar.
+ * After the release, I'll trigger the Ubuntu container image
+ CI/CD pipelines, and re-run the Docker command from above.
+ * The output shall then be similar to:
+
+ serial: 20221125
[ Where problems could occur ]
- The PR for the build.info file was tested with ubuntu bartender, and
- also I have tried that the lunar image has the file ( the lunar image
- was generated by Jenkins devel from CPC )
+ Given that we're adding new content to the filesystem, there's little
+ room for regression. A potential pitfall could be the future introduction
+ of /etc/cloud/(...) into the minimal filesystem, which would then
+ potentially end up being altered.
[ Other Info ]
-
+
Here the PR I have made :
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/433431
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/433432
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/433433
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/433572
** Description changed:
[ Impact ]
* The existing Ubuntu container images are being built and published
without any metadata information. This will introduce a new cloud-like
- path and metadata file, including the image's serial number within
+ path and metadata file, including the image's serial number within
(which is useful for users to pinpoint a specific revision of the image).
[ Test Plan ]
* Run (for any of the affected series):
$ docker run public.ecr.aws/ubuntu/ubuntu:jammy grep serial
/etc/cloud/build.info || echo "Image metadata not found"
* Currently, the output will be
grep: /etc/cloud/build.info: No such file or directory
- Image metadata not found
+ Image metadata not found
* After the release, I'll trigger the Ubuntu container image
CI/CD pipelines, and re-run the Docker command from above.
+
* The output shall then be similar to:
-
- serial: 20221125
+
+ serial: 20221125
[ Where problems could occur ]
Given that we're adding new content to the filesystem, there's little
room for regression. A potential pitfall could be the future introduction
of /etc/cloud/(...) into the minimal filesystem, which would then
potentially end up being altered.
[ Other Info ]
Here the PR I have made :
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/433431
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/433432
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/433433
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/433572
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/1998229
Title:
Adding metadata file into OCI images
Status in livecd-rootfs package in Ubuntu:
Fix Released
Status in livecd-rootfs source package in Bionic:
New
Status in livecd-rootfs source package in Focal:
New
Status in livecd-rootfs source package in Jammy:
New
Status in livecd-rootfs source package in Kinetic:
New
Bug description:
[ Impact ]
* The existing Ubuntu container images are being built and published
without any metadata information. This will introduce a new cloud-like
path and metadata file, including the image's serial number within
(which is useful for users to pinpoint a specific revision of the image).
[ Test Plan ]
* Run (for any of the affected series):
$ docker run public.ecr.aws/ubuntu/ubuntu:jammy grep serial
/etc/cloud/build.info || echo "Image metadata not found"
* Currently, the output will be
grep: /etc/cloud/build.info: No such file or directory
Image metadata not found
* After the release, I'll trigger the Ubuntu container image
CI/CD pipelines, and re-run the Docker command from above.
* The output shall then be similar to:
serial: 20221125
[ Where problems could occur ]
Given that we're adding new content to the filesystem, there's little
room for regression. A potential pitfall could be the future introduction
of /etc/cloud/(...) into the minimal filesystem, which would then
potentially end up being altered.
[ Other Info ]
Here the PR I have made :
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/433431
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/433432
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/433433
https://code.launchpad.net/~samirakarioh/livecd-rootfs/+git/livecd-rootfs/+merge/433572
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1998229/+subscriptions
More information about the foundations-bugs
mailing list