Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootc throws missing metadata error #228

Open
hmrks opened this issue Jan 21, 2024 · 7 comments
Open

Bootc throws missing metadata error #228

hmrks opened this issue Jan 21, 2024 · 7 comments

Comments

@hmrks
Copy link

hmrks commented Jan 21, 2024

Hi!

I have used the startingpoint repository to create a custom image. Everything seems to work perfectly fine, however when I run sudo bootc status, I get the following error message:

ERROR Reading manifest data from commit: Missing ostree.manifest-digest metadata on merge commit

Note that I haven't changed anything in the GitHub Actions pipeline, or the base image. I have checked the bootc docs, and it seems that once I have a bootc compatible base image (which I assume ghcr.io/ublue-os/silverblue-main is), I can just build on top of that without any special requirements.

Any idea what could cause this issue or how I can further debug this? I am using a private repository for my image so I can not link it.

@xynydev
Copy link
Member

xynydev commented Jan 21, 2024

Hmm, maybe we have some missing metadata. I tried running the command too and got the same error. Can't find much info in bootc docs. Should probably check what metadata main adds that this repo doesn't.

@xynydev
Copy link
Member

xynydev commented Feb 2, 2024

I'm not actively working on this yet, but here's some of the labels in other ublue images versus those based on startingpoint. (gathered using skopeo inspect docker://ghcr.io/ublue-os/silverblue-main:latest | jq -r '.Labels')

ublue:

{
  "io.artifacthub.package.logo-url": "https://avatars.githubusercontent.com/u/120078124?s=200&v=4",
  "io.artifacthub.package.readme-url": "https://raw.githubusercontent.com/ublue-os/bluefin/bluefin/README.md",
  "io.buildah.version": "1.23.1",
  "org.opencontainers.image.created": "2024-02-01T16:44:24.808Z",
  "org.opencontainers.image.description": "An interpretation of the Ubuntu spirit built on Fedora technology",
  "org.opencontainers.image.licenses": "Apache-2.0",
  "org.opencontainers.image.revision": "ce2e723eb1de4cfcd50bfbae6231ee9be44b1ecc",
  "org.opencontainers.image.source": "https://github.com/ublue-os/bluefin",
  "org.opencontainers.image.title": "bluefin",
  "org.opencontainers.image.url": "https://github.com/ublue-os/bluefin",
  "org.opencontainers.image.version": "39.20240131.0",
  "ostree.bootable": "true",
  "ostree.commit": "cdeaa9aab919efee451b85082ccd35cc71cd0ec2059ec69c597cc12d31216d54",
  "ostree.final-diffid": "sha256:12787d84fa137cd5649a9005efe98ec9d05ea46245fdc50aecb7dd007f2035b1",
  "ostree.linux": "6.6.13-200.fc39.x86_64",
  "quay.expires-after": "4w",
  "rpmostree.inputhash": "8dfd8be0779ec9c37d734d792ee3fee1242a6e60d1a89a9876784c3ca8f6c1b3",
  "version": "39.20240131.0"
}
{
  "io.artifacthub.package.logo-url": "https://avatars.githubusercontent.com/u/120078124?s=200&v=4",
  "io.artifacthub.package.readme-url": "https://raw.githubusercontent.com/ublue-os/main/main/README.md",
  "io.buildah.version": "1.23.1",
  "org.opencontainers.image.created": "2024-01-31T23:51:20.512Z",
  "org.opencontainers.image.description": "A base Universal Blue silverblue image with batteries included",
  "org.opencontainers.image.licenses": "Apache-2.0",
  "org.opencontainers.image.revision": "db0cf2e4328c1f1e5e161f47d98f945b9139d4fd",
  "org.opencontainers.image.source": "https://github.com/ublue-os/main",
  "org.opencontainers.image.title": "silverblue-main",
  "org.opencontainers.image.url": "https://github.com/ublue-os/main",
  "org.opencontainers.image.version": "39.20240131.0",
  "ostree.bootable": "true",
  "ostree.commit": "cdeaa9aab919efee451b85082ccd35cc71cd0ec2059ec69c597cc12d31216d54",
  "ostree.final-diffid": "sha256:12787d84fa137cd5649a9005efe98ec9d05ea46245fdc50aecb7dd007f2035b1",
  "ostree.linux": "6.6.13-200.fc39.x86_64",
  "quay.expires-after": "4w",
  "rpmostree.inputhash": "8dfd8be0779ec9c37d734d792ee3fee1242a6e60d1a89a9876784c3ca8f6c1b3",
  "version": "39.20240131.0"
}

startingpoint:

{
  "io.artifacthub.package.logo-url": "https://avatars.githubusercontent.com/u/120078124?s=200&v=4",
  "io.artifacthub.package.readme-url": "https://raw.githubusercontent.com/ublue-os/startingpoint/main/README.md",
  "io.buildah.version": "1.23.1",
  "org.opencontainers.image.created": "2024-02-02T01:39:18.308Z",
  "org.opencontainers.image.description": "Silverblue main with some hardening applied",
  "org.opencontainers.image.licenses": "Apache-2.0",
  "org.opencontainers.image.revision": "05723949f91b736a3709f80e61b18f7d359403b3",
  "org.opencontainers.image.source": "https://github.com/secureblue/secureblue",
  "org.opencontainers.image.title": "silverblue-main-hardened",
  "org.opencontainers.image.url": "https://github.com/secureblue/secureblue",
  "org.opencontainers.image.version": "39.20240131.0",
  "ostree.bootable": "true",
  "ostree.commit": "cdeaa9aab919efee451b85082ccd35cc71cd0ec2059ec69c597cc12d31216d54",
  "ostree.final-diffid": "sha256:12787d84fa137cd5649a9005efe98ec9d05ea46245fdc50aecb7dd007f2035b1",
  "ostree.linux": "6.6.13-200.fc39.x86_64",
  "quay.expires-after": "4w",
  "rpmostree.inputhash": "8dfd8be0779ec9c37d734d792ee3fee1242a6e60d1a89a9876784c3ca8f6c1b3",
  "version": "39.20240131.0"

bluebuild:

{
  "io.artifacthub.package.logo-url": "https://avatars.githubusercontent.com/u/120078124?s=200&v=4",
  "io.artifacthub.package.readme-url": "https://raw.githubusercontent.com/ublue-os/startingpoint/main/README.md",
  "io.buildah.version": "1.23.1",
  "org.opencontainers.image.created": "2024-01-31T04:00:43.317Z",
  "org.opencontainers.image.description": "My personal uBlue image. Make your own! https://ublue.it/making-your-own/",
  "org.opencontainers.image.licenses": "Apache-2.0",
  "org.opencontainers.image.revision": "83360824f65636507127d86687d25f8f7943e0e0",
  "org.opencontainers.image.source": "https://github.com/ublue-os/nvidia",
  "org.opencontainers.image.title": "linuxyz",
  "org.opencontainers.image.url": "https://github.com/ublue-os/nvidia",
  "org.opencontainers.image.version": "latest",
  "ostree.bootable": "true",
  "ostree.commit": "fc236f014fb8795fdc375411be0f46051c60d2ef699adadf3d19aa14c05dd514",
  "ostree.final-diffid": "sha256:12787d84fa137cd5649a9005efe98ec9d05ea46245fdc50aecb7dd007f2035b1",
  "ostree.linux": "6.6.13-200.fc39.x86_64",
  "quay.expires-after": "4w",
  "rpmostree.inputhash": "b344a86ad2ef79cdd140b1ed9917c9646a76d2f68ab3e89e9c3ab9d5c70025bf",
  "version": "39.20240130.0"
}

@gmpinder
Copy link
Member

gmpinder commented Feb 2, 2024

This should be fixed in blue-build/cli#37 for the cli tool

@xynydev
Copy link
Member

xynydev commented Feb 3, 2024

This should be fixed in blue-build/cli#37 for the cli tool

Correct me if I'm wrong, but that PR only makes the metadata be on the same level as startingpoint, right?

@gmpinder
Copy link
Member

gmpinder commented Feb 3, 2024

Yes. Did I misunderstand the problem?

@xynydev
Copy link
Member

xynydev commented Feb 3, 2024

I'm not actually sure what the problem is, but it's something related to image metadata and not tags.

@gmpinder
Copy link
Member

gmpinder commented Feb 3, 2024

I'm not actually sure what the problem is, but it's something related to image metadata and not tags.

Oh in that PR I removed the label that was overriding the version label. This way we get that label from the source image. After reading again it seems the issue is a missing label for ostree instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants