Skip to content

BUG: install crio error #6437

@ancienter

Description

@ancienter

Sealos Version

v5.0.1,v5.1.0,v5.1.1

How to reproduce the bug?

  1. openeuler22.03-lts-sp4
    2.none
    3.sealos run labring/kubernetes-crio:v1.31.14-5.1.1

[root@master-node-01 sealos]# sealos run labring/kubernetes-crio:v1.31.14-5.1.1
2025-12-25T23:18:40 info Start to create a new cluster: master [192.168.1.21], worker [], registry 192.168.1.21
2025-12-25T23:18:40 info Executing pipeline Check in CreateProcessor.
2025-12-25T23:18:40 info checker:hostname [192.168.1.21:22]
2025-12-25T23:18:40 info checker:timeSync [192.168.1.21:22]
2025-12-25T23:18:40 info checker:containerd [192.168.1.21:22]
2025-12-25T23:18:40 info Executing pipeline PreProcess in CreateProcessor.
2025-12-25T23:18:40 info Executing pipeline RunConfig in CreateProcessor.
2025-12-25T23:18:40 info Executing pipeline MountRootfs in CreateProcessor.
2025-12-25T23:18:41 info render /var/lib/sealos/data/default/rootfs/etc/99-crio.conf from /var/lib/sealos/data/default/rootfs/etc/99-crio.conf.tmpl completed
2025-12-25T23:18:41 info render /var/lib/sealos/data/default/rootfs/etc/image-cri-shim.service from /var/lib/sealos/data/default/rootfs/etc/image-cri-shim.service.tmpl completed
2025-12-25T23:18:41 info render /var/lib/sealos/data/default/rootfs/etc/image-cri-shim.yaml from /var/lib/sealos/data/default/rootfs/etc/image-cri-shim.yaml.tmpl completed
2025-12-25T23:18:41 info render /var/lib/sealos/data/default/rootfs/etc/kubelet.service from /var/lib/sealos/data/default/rootfs/etc/kubelet.service.tmpl completed
2025-12-25T23:18:41 info render /var/lib/sealos/data/default/rootfs/etc/registry.service from /var/lib/sealos/data/default/rootfs/etc/registry.service.tmpl completed
2025-12-25T23:18:41 info render /var/lib/sealos/data/default/rootfs/etc/registry.yml from /var/lib/sealos/data/default/rootfs/etc/registry.yml.tmpl completed
2025-12-25T23:18:41 info render /var/lib/sealos/data/default/rootfs/etc/registry_config.yml from /var/lib/sealos/data/default/rootfs/etc/registry_config.yml.tmpl completed
2025-12-25T23:18:41 info render /var/lib/sealos/data/default/rootfs/etc/systemd/system/kubelet.service.d/10-kubeadm.conf from /var/lib/sealos/data/default/rootfs/etc/systemd/system/kubelet.service.d/10-kubeadm.conf.tmpl completed
2025-12-25T23:18:41 info Executing pipeline MirrorRegistry in CreateProcessor.
2025-12-25T23:18:41 info trying default http mode to sync images to hosts [192.168.1.21:22]
2025-12-25T23:18:46 info Executing pipeline Bootstrap in CreateProcessor
INFO [2025-12-25 23:18:46] >> Check port kubelet port 10249..10259, reserved port 5050..5054 inuse. Please wait...
which: no crio in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
INFO [2025-12-25 23:18:46] >> check root,port,cri success
2025-12-25T23:18:46 info domain sealos.hub:192.168.1.21 append success
Created symlink /etc/systemd/system/multi-user.target.wants/registry.service → /etc/systemd/system/registry.service.
INFO [2025-12-25 23:18:46] >> Health check registry!
INFO [2025-12-25 23:18:46] >> registry is running
INFO [2025-12-25 23:18:46] >> init registry success
2025-12-25T23:18:46 info domain apiserver.cluster.local:192.168.1.21 append success
Installing CRI-O
Thu Dec 25 11:18:48 PM CST 2025
INFO [2025-12-25 23:18:48] >> username: admin, password: passw0rd, base64pwd: YWRtaW46cGFzc3cwcmQ=
Created symlink /etc/systemd/system/cri-o.service → /usr/local/lib/systemd/system/crio.service.
Created symlink /etc/systemd/system/multi-user.target.wants/crio.service → /usr/local/lib/systemd/system/crio.service.
INFO [2025-12-25 23:18:49] >> Health check crio!
INFO [2025-12-25 23:18:49] >> crio is running
INFO [2025-12-25 23:18:49] >> init crio success
INFO [2025-12-25 23:18:49] >> init crio success
Created symlink /etc/systemd/system/multi-user.target.wants/image-cri-shim.service → /etc/systemd/system/image-cri-shim.service.
INFO [2025-12-25 23:18:49] >> Health check image-cri-shim!
INFO [2025-12-25 23:18:49] >> image-cri-shim is running
INFO [2025-12-25 23:18:49] >> init shim success
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
unknown system, use default to stop firewalld

  • Applying /usr/lib/sysctl.d/10-default-yama-scope.conf ...
  • Applying /usr/lib/sysctl.d/50-coredump.conf ...
  • Applying /usr/lib/sysctl.d/50-default.conf ...
  • Applying /usr/lib/sysctl.d/50-libkcapi-optmem_max.conf ...
  • Applying /etc/sysctl.d/50-libreswan.conf ...
  • Applying /usr/lib/sysctl.d/50-pid-max.conf ...
  • Applying /etc/sysctl.d/99-sysctl.conf ...
  • Applying /etc/sysctl.conf ...
    kernel.yama.ptrace_scope = 0
    kernel.core_pattern = |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h
    kernel.core_pipe_limit = 16
    fs.suid_dumpable = 2
    kernel.sysrq = 16
    kernel.core_uses_pid = 1
    net.ipv4.conf.default.rp_filter = 1
    net.ipv4.conf.ens18.rp_filter = 1
    net.ipv4.conf.ens19.rp_filter = 1
    net.ipv4.conf.lo.rp_filter = 1
    net.ipv4.conf.default.accept_source_route = 0
    net.ipv4.conf.ens18.accept_source_route = 0
    net.ipv4.conf.ens19.accept_source_route = 0
    net.ipv4.conf.lo.accept_source_route = 0
    net.ipv4.conf.default.promote_secondaries = 1
    net.ipv4.conf.ens18.promote_secondaries = 1
    net.ipv4.conf.ens19.promote_secondaries = 1
    net.ipv4.conf.lo.promote_secondaries = 1
    net.ipv4.ping_group_range = 1 0
    net.core.default_qdisc = fq_codel
    fs.protected_hardlinks = 1
    fs.protected_symlinks = 1
    fs.protected_regular = 1
    fs.protected_fifos = 1
    net.core.optmem_max = 81920
    net.ipv6.conf.default.accept_redirects = 0
    net.ipv6.conf.all.accept_redirects = 0
    net.ipv4.conf.default.send_redirects = 0
    net.ipv4.conf.default.accept_redirects = 0
    net.ipv4.conf.all.send_redirects = 0
    net.ipv4.conf.all.accept_redirects = 0
    kernel.pid_max = 4194304
    kernel.sysrq = 0
    net.ipv4.ip_forward = 0
    net.ipv4.conf.all.send_redirects = 0
    net.ipv4.conf.default.send_redirects = 0
    net.ipv4.conf.all.accept_source_route = 0
    net.ipv4.conf.default.accept_source_route = 0
    net.ipv4.conf.all.accept_redirects = 0
    net.ipv4.conf.default.accept_redirects = 0
    net.ipv4.conf.all.secure_redirects = 0
    net.ipv4.conf.default.secure_redirects = 0
    net.ipv4.icmp_echo_ignore_broadcasts = 1
    net.ipv4.icmp_ignore_bogus_error_responses = 1
    net.ipv4.conf.all.rp_filter = 1
    net.ipv4.conf.default.rp_filter = 1
    net.ipv4.tcp_syncookies = 1
    kernel.dmesg_restrict = 1
    net.ipv6.conf.all.accept_redirects = 0
    net.ipv6.conf.default.accept_redirects = 0
    vm.nr_hugepages = 1024
    fs.file-max = 1048576 # sealos
    net.bridge.bridge-nf-call-ip6tables = 1 # sealos
    net.bridge.bridge-nf-call-iptables = 1 # sealos
    net.core.somaxconn = 65535 # sealos
    net.ipv4.conf.all.rp_filter = 0 # sealos
    net.ipv4.ip_forward = 1 # sealos
    net.ipv4.ip_local_port_range = 1024 65535 # sealos
    net.ipv4.tcp_keepalive_intvl = 30 # sealos
    net.ipv4.tcp_keepalive_time = 600 # sealos
    net.ipv4.vs.conn_reuse_mode = 0 # sealos
    net.ipv4.vs.conntrack = 1 # sealos
    net.ipv6.conf.all.forwarding = 1 # sealos
    vm.max_map_count = 2147483642 # sealos
    kernel.sysrq = 0
    net.ipv4.ip_forward = 0
    net.ipv4.conf.all.send_redirects = 0
    net.ipv4.conf.default.send_redirects = 0
    net.ipv4.conf.all.accept_source_route = 0
    net.ipv4.conf.default.accept_source_route = 0
    net.ipv4.conf.all.accept_redirects = 0
    net.ipv4.conf.default.accept_redirects = 0
    net.ipv4.conf.all.secure_redirects = 0
    net.ipv4.conf.default.secure_redirects = 0
    net.ipv4.icmp_echo_ignore_broadcasts = 1
    net.ipv4.icmp_ignore_bogus_error_responses = 1
    net.ipv4.conf.all.rp_filter = 1
    net.ipv4.conf.default.rp_filter = 1
    net.ipv4.tcp_syncookies = 1
    kernel.dmesg_restrict = 1
    net.ipv6.conf.all.accept_redirects = 0
    net.ipv6.conf.default.accept_redirects = 0
    vm.nr_hugepages = 1024
    fs.file-max = 1048576 # sealos
    net.bridge.bridge-nf-call-ip6tables = 1 # sealos
    net.bridge.bridge-nf-call-iptables = 1 # sealos
    net.core.somaxconn = 65535 # sealos
    net.ipv4.conf.all.rp_filter = 0 # sealos
    net.ipv4.ip_forward = 1 # sealos
    net.ipv4.ip_local_port_range = 1024 65535 # sealos
    net.ipv4.tcp_keepalive_intvl = 30 # sealos
    net.ipv4.tcp_keepalive_time = 600 # sealos
    net.ipv4.vs.conn_reuse_mode = 0 # sealos
    net.ipv4.vs.conntrack = 1 # sealos
    net.ipv6.conf.all.forwarding = 1 # sealos
    vm.max_map_count = 2147483642 # sealos
    INFO [2025-12-25 23:18:49] >> pull pause image sealos.hub:5000/pause:3.10
    Image is up to date for sealos.hub:5000/pause@sha256:7c38f24774e3cbd906d2d33c38354ccf787635581c122965132c9bd309754d4a
    Created symlink /etc/systemd/system/multi-user.target.wants/kubelet.service → /etc/systemd/system/kubelet.service.
    INFO [2025-12-25 23:18:50] >> init kubelet success
    INFO [2025-12-25 23:18:50] >> init rootfs success
    2025-12-25T23:18:50 info Executing pipeline Init in CreateProcessor.
    2025-12-25T23:18:50 error Applied to cluster error: failed to init masters: generate init config error: exit status 1
    Error: failed to init masters: generate init config error: exit status 1

What is the expected behavior?

No response

What do you see instead?

No response

Operating environment

- Sealos version:
- Docker version:
- Kubernetes version:
- Operating system:
- Runtime environment:
- Cluster size:
- Additional information:

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions