containers / podman

Podman: A tool for managing OCI containers and pods.
https://podman.io
Apache License 2.0
23.56k stars 2.4k forks source link

Cant checkpoint with podman 3.x Error #10118

Closed mikosa closed 3 years ago

mikosa commented 3 years ago

/kind bug

Description Cant run podman checkpoint in podman 3 Installed all the following on Centos 8 Stream installed using "container-tools" module

 cockpit-podman                   noarch     29-3.module_el8.5.0+733+9bb5dffa                 appstream     1.1 M
 conmon                           x86_64     2:2.0.27-1.module_el8.5.0+733+9bb5dffa           appstream      51 k
 container-selinux                noarch     2:2.159.0-1.module_el8.5.0+733+9bb5dffa          appstream      51 k
 containernetworking-plugins      x86_64     0.9.1-1.module_el8.5.0+733+9bb5dffa              appstream      20 M
 criu                             x86_64     3.15-1.module_el8.5.0+733+9bb5dffa               appstream     511 k
 crun                             x86_64     0.18-1.module_el8.5.0+733+9bb5dffa               appstream     185 k
 fuse-overlayfs                   x86_64     1.5.0-1.module_el8.5.0+733+9bb5dffa              appstream      72 k
 libslirp                         x86_64     4.3.1-1.module_el8.5.0+733+9bb5dffa              appstream      69 k
 podman                           x86_64     3.1.0-0.13.module_el8.5.0+733+9bb5dffa           appstream      12 M
 runc                             x86_64     1.0.0-70.rc92.module_el8.5.0+733+9bb5dffa        appstream     2.9 M
 skopeo                           x86_64     1:1.2.2-4.module_el8.5.0+733+9bb5dffa            appstream     5.9 M
 slirp4netns                      x86_64     1.1.8-1.module_el8.5.0+733+9bb5dffa              appstream      51 k
 toolbox                          x86_64     0.0.99-1.module_el8.5.0+733+9bb5dffa             appstream     1.8 M
 udica                            noarch     0.2.4-1.module_el8.5.0+733+9bb5dffa 
podman version
Version:      3.1.0-dev
API Version:  3.1.0-dev
Go Version:   go1.16.1
Built:        Fri Mar 26 18:32:03 2021
OS/Arch:      linux/amd64
criu --version
Version: 3.15
GitID: 2bb4f84

Steps to reproduce the issue:

#podman run -d nginx
1257126c7b7ea9465ef9bf721d6e753dbc69202b4b0ceb4f21b1b257a63dd47c
#podman container checkpoint 1257126c7b7ea9465ef9bf721d6e753dbc69202b4b0ceb4f21b1b257a63dd47c -e /home
Error: configured runtime does not support checkpoint/restore

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

# podman system info  --debug
host:
  arch: amd64
  buildahVersion: 1.19.8
  cgroupManager: systemd
  cgroupVersion: v1
  conmon:
    package: conmon-2.0.27-1.module_el8.5.0+733+9bb5dffa.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.27, commit: dc08a6edf03cc2dadfe803eac14b896b44cc4721'
  cpus: 2
  distribution:
    distribution: '"centos"'
    version: "8"
  eventLogger: file
  hostname: instance-1
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 4.18.0-301.1.el8.x86_64
  linkmode: dynamic
  memFree: 6856372224
  memTotal: 8145514496
  ociRuntime:
    name: crun
    package: crun-0.18-1.module_el8.5.0+733+9bb5dffa.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 0.18
      commit: 808420efe3dc2b44d6db9f1a3fac8361dde42a95
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
  os: linux
  remoteSocket:
    path: /run/podman/podman.sock
  security:
    apparmorEnabled: false
    capabilities: CAP_NET_RAW,CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: false
    seccompEnabled: true
    selinuxEnabled: true
  slirp4netns:
    executable: ""
    package: ""
    version: ""
  swapFree: 0
  swapTotal: 0
  uptime: 37m 17.14s
registries:
  search:
  - registry.access.redhat.com
  - registry.redhat.io
  - docker.io
store:
  configFile: /etc/containers/storage.conf
  containerStore:
    number: 1
    paused: 0
    running: 1
    stopped: 0
  graphDriverName: overlay
  graphOptions:
    overlay.mountopt: nodev,metacopy=on
  graphRoot: /var/lib/containers/storage
  graphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "true"
  imageStore:
    number: 1
  runRoot: /run/containers/storage
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 3.1.0-dev
  Built: 1616783523
  BuiltTime: Fri Mar 26 18:32:03 2021
  GitCommit: ""
  GoVersion: go1.16.1
  OsArch: linux/amd64
  Version: 3.1.0-dev

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?

No

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

mheon commented 3 years ago

Potentially an old crun version? You may have to use runc if you want checkpoint/restore until crun updates to a more recent version.

mikosa commented 3 years ago

ok thx Would u know how to go back to runc? I cant find the configuration file

# ls /etc/containers/
certs.d  oci  policy.json  registries.conf  registries.conf.d  registries.d  storage.conf
mikosa commented 3 years ago

u need to edit this file and make runc default

nano /usr/share/containers/containers.conf