cri-o: crio fails to start on CentOS 7 fresh installation

Description

Hi,

I think there is some problem with the installation of cri-o on CentOS 7(fresh installation) I’m following the instructions reported on README.md but the service crio doesn’t start

The problem seems to be on crio-wipe.service(which is a crio.service dependency), it can’t find the file /var/run/crio/version when it starts

#3560 @lsm5

Steps to reproduce the issue:

  1. curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/CentOS_7/devel:kubic:libcontainers:stable.repo
  2. curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable:cri-o:1.17.repo https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:1.17/CentOS_7/devel:kubic:libcontainers:stable:cri-o:1.17.repo
  3. yum install cri-o
  4. systemctl daemon-reload
  5. systemctl start crio

Describe the results you received: A dependency job for crio.service failed. See ‘journalctl -xe’ for details.

Describe the results you expected: crio.service started

Additional information you deem important (e.g. issue happens only occasionally):

journalctl -xe output:

Unit crio-wipe.service has begun starting up. apr 22 19:17:30 localhost.localdomain crio[1409]: version file /var/run/crio/version not found: open /var/run/crio/version: no such file or directory. Triggering wipetime="2020-0 apr 22 19:17:30 localhost.localdomain crio[1409]: time=“2020-04-22 19:17:30.105869303+02:00” level=fatal msg=“failed to mount overlay for metacopy check: invalid argument” apr 22 19:17:30 localhost.localdomain kernel: overlayfs: unrecognized mount option “metacopy=on” or missing value apr 22 19:17:30 localhost.localdomain systemd[1]: crio-wipe.service: main process exited, code=exited, status=1/FAILURE apr 22 19:17:30 localhost.localdomain systemd[1]: Failed to start CRI-O Auto Update Script. Subject: Unit crio-wipe.service has failed Defined-By: systemd Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Unit crio-wipe.service has failed.

The result is failed. apr 22 19:17:30 localhost.localdomain systemd[1]: Dependency failed for Container Runtime Interface for OCI (CRI-O). Subject: Unit crio.service has failed Defined-By: systemd Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Unit crio.service has failed.

The result is dependency. apr 22 19:17:30 localhost.localdomain systemd[1]: Job crio.service/start failed with result ‘dependency’. apr 22 19:17:30 localhost.localdomain systemd[1]: Unit crio-wipe.service entered failed state. apr 22 19:17:30 localhost.localdomain systemd[1]: crio-wipe.service failed. apr 22 19:17:30 localhost.localdomain polkitd[719]: Unregistered Authentication Agent for unix-process:1403:86605 (system bus name :1.23, object path /org/freedesktop/PolicyKit1/

Output of crio --version:

 crio version 1.17.2

Additional environment details (AWS, VirtualBox, physical, etc.): CentOS 7.7 1908 Minimal Installation

About this issue

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

Commits related to this issue

Most upvoted comments

If it can help, the kernel version I used for the test is: 3.10.0-1062.18.1.el7.x86_64

@dougsland the kernel on centos 7 seems to be too old for the metacopy=on option, can you remove it?