blue-build / modules

BlueBuild standard modules used for building your Atomic Images
Apache License 2.0
21 stars 27 forks source link

fix(akmods): Versions missmatch during build process (probably a priority issue ?) #267

Open MiMillieuh opened 1 week ago

MiMillieuh commented 1 week ago

Hello,

Since a bit more than a week, I get these issues randomly when building an image :

 17.22   - package kernel-devel-matched-6.8.7-300.fc40.x86_64 from updates-archive requires kernel-core = 6.8.7-300.fc40, but none of the providers can be installed
17.22   - package kernel-devel-matched-6.8.8-300.fc40.x86_64 from updates-archive requires kernel-core = 6.8.8-300.fc40, but none of the providers can be installed
17.22   - package kernel-devel-matched-6.8.9-300.fc40.x86_64 from updates-archive requires kernel-core = 6.8.9-300.fc40, but none of the providers can be installed
17.22   - cannot install both kernel-core-6.9.5-200.fc40.x86_64 from updates and kernel-core-6.9.4-200.fc40.x86_64 from @System
17.22   - cannot install both kernel-core-6.8.5-301.fc40.x86_64 from fedora and kernel-core-6.9.4-200.fc40.x86_64 from @System
17.22   - cannot install both kernel-core-6.8.10-300.fc40.x86_64 from updates-archive and kernel-core-6.9.4-200.fc40.x86_64 from @System
17.22   - cannot install both kernel-core-6.8.7-300.fc40.x86_64 from updates-archive and kernel-core-6.9.4-200.fc40.x86_64 from @System
17.22   - cannot install both kernel-core-6.8.8-300.fc40.x86_64 from updates-archive and kernel-core-6.9.4-200.fc40.x86_64 from @System
17.22   - cannot install both kernel-core-6.8.9-300.fc40.x86_64 from updates-archive and kernel-core-6.9.4-200.fc40.x86_64 from @System
17.22   - conflicting requests

I say they comes randomly because it's possible to fix them manually by adding this to module :

  - type: containerfile
    snippets:
      - RUN rpm-ostree override replace --experimental --from repo=updates libstdc++ libgomp libgcc cpp

But with the specific package that causes issue.

However if it works again, it will generate a new error, package that I get the most error are usually gcc related but in that example you can see that even kernel can cause issues.

The issue seems like it prioritize update-archive instead of update.

fiftydinar commented 1 week ago

I have this issue too.

This looks like the upstream image build issue rather than BlueBuild-related.

We don't manage anything regarding repos except when installing akmods.

In akmods module, we:

Otherwise, nothing regarding repos is modified.

In your image, I see that you don't use akmods module, so I'm not sure what is specifically the cause here. But you also use script for manually installing v4l2loopback akmod too.

I will check out without akmods module in my image & check if it works.

fiftydinar commented 1 week ago

Build without akmods succeed

MiMillieuh commented 1 week ago

Build without akmods succeed

Thanks for trying this,

I assume it's related to some package installation in the image (the one in the recipe) like kernel-devel in the current case or gcc when it happens.

Honestly these issues happened without me changing anything to my image. that's strange cause one day it builds the other it doesn't and I haven't change or even done a commit between the two builds.

fiftydinar commented 1 week ago

Honestly these issues happened without me changing anything to my image. that's strange cause one day it builds the other it doesn't and I haven't change or even done a commit between the two builds.

Yeah, it happens from time to time, as noted in BlueBuild akmods docs: https://blue-build.org/reference/modules/akmods/#outdated-akmods-compared-to-the-current-kernel-version-fail-the-build

I will investigate if this process can be improved.

We currently copy what Bluefin & Bazzite images do regarding akmods inside akmods module, where process steps are mentioned in my previous comment.

But, this still looks mostly like the upstream issue.

If you notice something that improves this, please let me know.

fiftydinar commented 1 week ago

I will transfer this issue to bluebuild/modules, because I think it's more appropriate to be there.

Also, great news, akmods build successfully now. It seems that upstream build issue is solved (for now).

MiMillieuh commented 1 week ago

I will transfer this issue to bluebuild/modules, because I think it's more appropriate to be there.

Also, great news, akmods build successfully now. It seems that upstream build issue is solved (for now).

Yes my latest build worked fine now

Let's hope it'll continue to work like that :)

I don't know if I can close that issues since like you said "it's solved for now"