cri-o: Wrong PATH for conmon with the cri-o-1.18.1-1.1.el8 package

Description

After installing the cri-o-1.18.1-1.1 the /etc/crio/crio.conf expetecs the conmon binary to be located at /usr/libexec/crio/conmon instead of the /usr/bin/conmon.

Steps to reproduce the issue:

  1. wget https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.18/CentOS_8/devel:kubic:libcontainers:stable:cri-o:1.18.repo -P /etc/yum.repos.d
  2. dnf install cri-o
  3. systemctl start crio.service

To fix:

  1. sed 's|/usr/libexec/crio/conmon|/usr/bin/conmon|' -i /etc/crio/crio.conf
  2. systemctl start crio.service

Describe the results you received:

– Unit crio.service has begun starting up. May 17 23:07:00 localhost crio[1967]: time=“2020-05-17 23:07:00.078367817-03:00” level=info msg=“Using default capabilities: CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_FSETID, CAP_FOWNER, CAP_SETGID, CAP_SETUID, CAP_SETPCAP, CAP_NET_BIND_SERVICE, CAP_KILL” May 17 23:07:00 localhost crio[1967]: time=“2020-05-17 23:07:00.079441070-03:00” level=fatal msg=“Validating runtime config: conmon validation: invalid conmon path: stat /usr/libexec/crio/conmon: no such file or directory” May 17 23:07:00 localhost systemd[1]: crio.service: Main process exited, code=exited, status=1/FAILURE May 17 23:07:00 localhost systemd[1]: crio.service: Failed with result ‘exit-code’. May 17 23:07:00 localhost systemd[1]: Failed to start Container Runtime Interface for OCI (CRI-O).

Describe the results you expected:

May 17 23:18:04 localhost systemd[1]: Started Container Runtime Interface for OCI (CRI-O).

Output of crio --version:

crio version
Version:       1.18.1
GitCommit:     5cbf694c34f8d1af19eb873e39057663a4830635
GitTreeState:  clean
BuildDate:     2020-05-16T21:44:39Z
GoVersion:     go1.13.4
Compiler:      gc
Platform:      linux/amd64
Linkmode:      dynamic

Centos 8 Version:

$ cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core)

Additional environment details (AWS, VirtualBox, physical, etc.):

VirtualBox

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (10 by maintainers)

Most upvoted comments

I guess we should update the crio docs to disable container-tools module for centos8 and 8stream. Users can get the deps from the main OBS repo which has conmon/skopeo etc. and container-selinux from a copr repo. So, something like:

sudo dnf -y module disable container-tools
sudo dnf -y install 'dnf-command(copr)'
sudo dnf -y copr enable rhcontainerbot/container-selinux
sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_8/devel:kubic:libcontainers:stable.repo

…followed by the regular instructions to add the crio OBS repo and install crio package. Let me know if that works.

@lsm5 @dougsland with the copr enabled and the container-tools disabled, everything looks good

 yum install cri-o
Last release available in 1.18 branch (CentOS_8_Stream)                                                                                                                                                                                                                                      1.3 kB/s | 4.3 kB     00:03
Last metadata expiration check: 0:00:01 ago on Tue 19 May 2020 03:26:33 PM -03.
Dependencies resolved.
=============================================================================================================================================================================================================================================================================================================================
 Package                                                                          Architecture                                                Version                                                                 Repository                                                                                        Size
=============================================================================================================================================================================================================================================================================================================================
Installing:
 cri-o                                                                            x86_64                                                      2:1.18.1-1.1.el8                                                        devel_kubic_libcontainers_stable_cri-o_1.18                                                       45 M
Installing dependencies:
 criu                                                                             x86_64                                                      3.12-9.el8                                                              AppStream                                                                                        482 k
 libnet                                                                           x86_64                                                      1.1.6-15.el8                                                            AppStream                                                                                         67 k
 protobuf-c                                                                       x86_64                                                      1.3.0-4.el8                                                             AppStream                                                                                         37 k
 socat                                                                            x86_64                                                      1.7.3.2-6.el8                                                           AppStream                                                                                        298 k
 conmon                                                                           x86_64                                                      2:2.0.16-5.1.el8                                                        devel_kubic_libcontainers_stable                                                                  42 k
 containernetworking-plugins                                                      x86_64                                                      0.8.5-5.1.el8                                                           devel_kubic_libcontainers_stable                                                                  35 M
 containers-common                                                                x86_64                                                      2:0.2.0-3.1.el8                                                         devel_kubic_libcontainers_stable                                                                  57 k
 runc                                                                             x86_64                                                      2:1.0.0-15.4.el8                                                        devel_kubic_libcontainers_stable                                                                 4.6 M
Installing weak dependencies:
 tar                                                                              x86_64                                                      2:1.30-4.el8                                                            BaseOS                                                                                           838 k

Transaction Summary
=============================================================================================================================================================================================================================================================================================================================
Install  10 Packages

Total download size: 87 M
Installed size: 266 M
Is this ok [y/N]: