ContainerD package is missing files

This forum is dedicated to packaging and translating :

On those activities rely the making of Mageia Linux Distribution.

Post all questions and information about packaging and translating : feedbacks, discussion about guidelines, packaging practices...

ContainerD package is missing files

Postby charlatan » Dec 3rd, '21, 21:56

Screenshot_2021-12-03_12-51-26.png
Screenshot_2021-12-03_12-51-26.png (110.17 KiB) Viewed 1768 times
Hello!
Loving my Mageia adventure so far! I am trying to setup an app called Darch, which is similar to Nix and the like, and I have hit a wall with the containerd package. From my research, it looks like the containerd package for Mageia is missing a bunch of files. The file that tipped me off was the containerd.service, which does not exist after the package install (this is all via DNF).
I went to compare the files listed for dnf vs Fedora's list, and it looks like ours is incomplete.

Mageia's
http://sophie.zarb.org/rpms/26ccf2f34a9b4d1913b56154e716c0cd/files
Screenshot_2021-12-03_12-50-04.png
Screenshot_2021-12-03_12-50-04.png (137.04 KiB) Viewed 1768 times



Fedora's
https://koji.fedoraproject.org/koji/rpminfo?rpmID=28383156
Screenshot_2021-12-03_12-51-26.png
Screenshot_2021-12-03_12-51-26.png (110.17 KiB) Viewed 1768 times


I am not familiar with packaging in the least. I looked to try and install the rpm from Fedora, but the I can't resolve a dependency on runc. Other note: the Fedora version I am looking at is for Fedora 34, as it only requires the glibc versions that are most recent on Mageia.
Is there another way to get this installed? How would I notify a maintainer?

TIA!
charlatan
 
Posts: 2
Joined: Dec 3rd, '21, 21:20

Re: ContainerD package is missing files

Postby doktor5000 » Dec 3rd, '21, 23:53

charlatan wrote:and I have hit a wall with the containerd package. From my research, it looks like the containerd package for Mageia is missing a bunch of files. The file that tipped me off was the containerd.service, which does not exist after the package install (this is all via DNF).
I went to compare the files listed for dnf vs Fedora's list, and it looks like ours is incomplete.

Why do you think that's missing in particular ?

The fedora version is quite newer. And the systemd service is an addition from Fedora, not from upstream.
You can check it here and create it yourself if you need it: https://src.fedoraproject.org/rpms/cont ... rd.service

You could notify the maintainer via a bugreport, it would be a feature request to add the systemd service.
https://wiki.mageia.org/en/How_to_report_a_bug_properly
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: ContainerD package is missing files

Postby charlatan » Dec 4th, '21, 00:21

Thanks for your reply. Clearly my inexperience has led my down the wrong direction when troubleshooting.
I have been trying to figure out how start containerd
Code: Select all
systemctl enable containerd
. I get the error
Code: Select all
containerd.service does not exist
. My searching all takes me down the docker road and containerd.service.

I am accustomed to an environment using runit, so forgive my ignorance. Maybe I should open an issue in another part of the forums... or hit the IRC channel to pursue this further?
Last edited by doktor5000 on Dec 5th, '21, 00:49, edited 1 time in total.
Reason: removed code tags
charlatan
 
Posts: 2
Joined: Dec 3rd, '21, 21:20

Re: ContainerD package is missing files

Postby doktor5000 » Dec 5th, '21, 00:56

charlatan wrote:Maybe I should open an issue in another part of the forums... or hit the IRC channel to pursue this further?

Not really no, this thread is sufficient. Altough it would have been helpful to include this information in the opening post.

As mentioned, you can create containerd.service yourself. As root
Code: Select all
systemctl edit --full --force containerd.service

and insert what e.g. Fedora has in their service file:

Code: Select all
[Unit]
Description=containerd container runtime
Documentation=https://containerd.io
After=network.target
[Service]
ExecStartPre=/sbin/modprobe overlay
ExecStart=/usr/bin/containerd
Delegate=yes
KillMode=process
[Install]
WantedBy=multi-user.target

After saving this and exiting the editor you have a /etc/systemd/system/containerd.service

to show the status:
Code: Select all
systemctl status containerd.service


to enable it for boot and start it:
Code: Select all
systemctl enable --now containerd.service
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Packaging and translating for Mageia

Who is online

Users browsing this forum: No registered users and 1 guest

cron