Page 1 of 1

ContainerD package is missing files

PostPosted: Dec 3rd, '21, 21:56
by charlatan
Screenshot_2021-12-03_12-51-26.png
Screenshot_2021-12-03_12-51-26.png (110.17 KiB) Viewed 2306 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 2306 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 2306 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!

Re: ContainerD package is missing files

PostPosted: Dec 3rd, '21, 23:53
by doktor5000
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

Re: ContainerD package is missing files

PostPosted: Dec 4th, '21, 00:21
by charlatan
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?

Re: ContainerD package is missing files

PostPosted: Dec 5th, '21, 00:56
by doktor5000
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