Skip to contentSkip to conversation

packagegroups and unnecessary builds/fetches

DISCUSSION Renato Caldas 2 participants 3 messages Nov 10, 2022 – Nov 11, 2022

lore
Share & tools
lore
#0 lore raw

Hello,

I'm adding "packagegroup-k8s-host" to my image, and noticed the "k3s" package also being built.

Investigating further, it seems that by bundling kubernetes and k3s in the same .bb file causes both packages to be built. The same probably applies to the "packagegroups" in packagegroup-container.bb, all get built.

In both cases, the norm I guess is for people to just want one of the alternatives (kubernetes vs k3s; lxc vs podman vs docker).

Would it make sense to split the packagegroups into individual recipes? I'd be happy to submit a patch.

Cheers,
Renato

#1 lore raw
Quoted 10 lines · Renato Caldas via lists.yoctoproject.org

Hello,

I'm adding "packagegroup-k8s-host" to my image, and noticed the "k3s" package also being built.

Investigating further, it seems that by bundling kubernetes and k3s in the same .bb file causes both packages to be built. The same probably applies to the "packagegroups" in packagegroup-container.bb, all get built.

Quoted 5 lines

In both cases, the norm I guess is for people to just want one of the alternatives (kubernetes vs k3s; lxc vs podman vs docker).

Would it make sense to split the packagegroups into individual recipes? I'd be happy to submit a patch.

The grouping is intentional, and yes, so is the extra building. The individual package groups in that .bb are just packages, and when you bitbake a recipe, all of the packages are built whether they are installed or not.

That packagegroup has primarily been used to drive the build testing and package repository construction steps of sanity testing.

They could be split more, but at that point, we aren't much ahead of just the individual recipes with their inherent depends/rdepends.

I have some pending work to split things up more in the container definitions cri, cni, etc, etc, but I haven't had enough time to complete that yet.

Bruce

Quoted 12 lines

Cheers,
Renato

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7680): https://lists.yoctoproject.org/g/meta-virtualization/message/7680
Mute This Topic: https://lists.yoctoproject.org/mt/94943666/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#2 lore raw
Quoted 18 lines · Bruce Ashfield
Quoted 10 lines · Renato Caldas via lists.yoctoproject.org

Hello,

I'm adding "packagegroup-k8s-host" to my image, and noticed the "k3s" package also being built.

Investigating further, it seems that by bundling kubernetes and k3s in the same .bb file causes both packages to be built. The same probably applies to the "packagegroups" in packagegroup-container.bb, all get built.

Quoted 5 lines

In both cases, the norm I guess is for people to just want one of the alternatives (kubernetes vs k3s; lxc vs podman vs docker).

Would it make sense to split the packagegroups into individual recipes? I'd be happy to submit a patch.

Quoted 7 lines

The grouping is intentional, and yes, so is the extra building. The individual package groups in that .bb are just packages, and when you bitbake a recipe, all of the packages are built whether they are installed or not.

That packagegroup has primarily been used to drive the build testing and package repository construction steps of sanity testing.

I see, thanks.

Quoted 2 lines

They could be split more, but at that point, we aren't much ahead of just the individual recipes with their inherent depends/rdepends.

No argument there in what concerns lxc, podman, docker, or containerd.

In the kubernetes case, however, perhaps splitting out packagegroup-oci would be useful. It's a non-trivial list of packages that could be useful for an end-user.

Given what you said above, I would just replace packagegroup-k8s-host with packagegroup-oci + containerd + kubernetes.

Quoted 3 lines

I have some pending work to split things up more in the container definitions cri, cni, etc, etc, but I haven't had enough time to complete that yet.

Sure, no worries. And thank you for the explanation.

Cheers,
Renato

Quoted 21 lines

Bruce

Quoted 6 lines

Cheers,
Renato

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7681): https://lists.yoctoproject.org/g/meta-virtualization/message/7681
Mute This Topic: https://lists.yoctoproject.org/mt/94943666/3618453
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-