Closed obsidian0215 closed 3 months ago
Works for me with Podman 4.9.3 and CRIU 3.19 on Fedora with cgroup v1.
There is a patch for cgroup v2 in runc which has not made it to one of the releases yet which might be necessary for a v2 system. (https://github.com/opencontainers/runc/pull/3546)
I tried and it worked well. criu 3.18+podman 3.4.1+runc 1.1.12(with cgroup v1)
So now the alternative is to use cgroup v1.(Will runc 1.2.0 release the patch for v2?)
Will runc 1.2.0 release the patch for v2?
I don't know.
If your problem is solved, please close the ticket.
OK, thank you.
Description
Podman/CRIU fails to checkpoint a container restored using --import and --name. (similar to https://github.com/containers/podman/issues/13672) How can I checkpoint the new container?
Steps to reproduce the issue:
podman run -d --name looper busybox /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'
podman container checkpoint --export ch1.tar.gz looper
podman container restore --import ch1.tar.gz --name looper2
podman container checkpoint looper2 --export ch2.tar.gz
Describe the results you received:
Describe the results you expected: It's expected that the looper2 container creates a new checkpoint in ch2.tar.gz.
Additional information you deem important (e.g. issue happens only occasionally): output of
podman version
:output of
podman info --debug
:output of
uname -a
:CRIU logs and information:
CRIU full dump/restore logs:
``` (00.000000) Unable to get $HOME directory, local configuration file will not be used. (00.000136) Version: 3.17.1 (gitid 0) (00.000154) Running on debian-obsidian Linux 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 (00.000160) Would overwrite RPC settings with values from /etc/criu/runc.conf (00.000208) Loaded kdat cache from /run/criu.kdat (00.000281) Hugetlb size 2 Mb is supported but cannot get dev's number (00.000329) Hugetlb size 1024 Mb is supported but cannot get dev's number (00.000456) ======================================== (00.000468) Dumping processes (pid: 42253) (00.000473) ======================================== (00.000499) rlimit: RLIMIT_NOFILE unlimited for self (00.000523) Running pre-dump scripts (00.000529) RPC (00.001023) irmap: Searching irmap cache in work dir (00.001263) No irmap-cache image (00.001277) irmap: Searching irmap cache in parent (00.001296) No parent images directory provided (00.001303) irmap: No irmap cache (00.001352) cpu: x86_family 6 x86_vendor_id GenuineIntel x86_model_id 13th Gen Intel(R) Core(TM) i7-1370P (00.001369) cpu: fpu: xfeatures_mask 0x205 xsave_size 2696 xsave_size_max 2696 xsaves_size 840 (00.001401) cpu: fpu: x87 floating point registers xstate_offsets 0 / 0 xstate_sizes 160 / 160 (00.001409) cpu: fpu: AVX registers xstate_offsets 576 / 576 xstate_sizes 256 / 256 (00.001415) cpu: fpu: Protection Keys User registers xstate_offsets 2688 / 832 xstate_sizes 8 / 8 (00.001421) cpu: fpu:1 fxsr:1 xsave:1 xsaveopt:1 xsavec:1 xgetbv1:1 xsaves:1 (00.001789) cg-prop: Parsing controller "cpu" (00.001806) cg-prop: Strategy "replace" (00.001815) cg-prop: Property "cpu.shares" (00.001820) cg-prop: Property "cpu.cfs_period_us" (00.001826) cg-prop: Property "cpu.cfs_quota_us" (00.001831) cg-prop: Property "cpu.rt_period_us" (00.001835) cg-prop: Property "cpu.rt_runtime_us" (00.001840) cg-prop: Parsing controller "memory" (00.001845) cg-prop: Strategy "replace" (00.001849) cg-prop: Property "memory.limit_in_bytes" (00.001854) cg-prop: Property "memory.memsw.limit_in_bytes" (00.001858) cg-prop: Property "memory.swappiness" (00.001863) cg-prop: Property "memory.soft_limit_in_bytes" (00.001867) cg-prop: Property "memory.move_charge_at_immigrate" (00.001872) cg-prop: Property "memory.oom_control" (00.001876) cg-prop: Property "memory.use_hierarchy" (00.001880) cg-prop: Property "memory.kmem.limit_in_bytes" (00.001885) cg-prop: Property "memory.kmem.tcp.limit_in_bytes" (00.001889) cg-prop: Parsing controller "cpuset" (00.001894) cg-prop: Strategy "replace" (00.001899) cg-prop: Property "cpuset.cpus" (00.001903) cg-prop: Property "cpuset.mems" (00.001907) cg-prop: Property "cpuset.memory_migrate" (00.001912) cg-prop: Property "cpuset.cpu_exclusive" (00.001916) cg-prop: Property "cpuset.mem_exclusive" (00.001920) cg-prop: Property "cpuset.mem_hardwall" (00.001925) cg-prop: Property "cpuset.memory_spread_page" (00.001929) cg-prop: Property "cpuset.memory_spread_slab" (00.001934) cg-prop: Property "cpuset.sched_load_balance" (00.001938) cg-prop: Property "cpuset.sched_relax_domain_level" (00.001943) cg-prop: Parsing controller "blkio" (00.001947) cg-prop: Strategy "replace" (00.001952) cg-prop: Property "blkio.weight" (00.001957) cg-prop: Parsing controller "freezer" (00.001961) cg-prop: Strategy "replace" (00.001966) cg-prop: Parsing controller "perf_event" (00.001970) cg-prop: Strategy "replace" (00.001975) cg-prop: Parsing controller "net_cls" (00.001980) cg-prop: Strategy "replace" (00.001984) cg-prop: Property "net_cls.classid" (00.001988) cg-prop: Parsing controller "net_prio" (00.001993) cg-prop: Strategy "replace" (00.001998) cg-prop: Property "net_prio.ifpriomap" (00.002002) cg-prop: Parsing controller "pids" (00.002007) cg-prop: Strategy "replace" (00.002011) cg-prop: Property "pids.max" (00.002015) cg-prop: Parsing controller "devices" (00.002020) cg-prop: Strategy "replace" (00.002024) cg-prop: Property "devices.list" (00.002106) Preparing image inventory (version 1) (00.002232) Add pid ns 1 pid 42312 (00.002262) Add net ns 2 pid 42312 (00.002285) Add ipc ns 3 pid 42312 (00.002307) Add uts ns 4 pid 42312 (00.002328) Add time ns 5 pid 42312 (00.002358) Add mnt ns 6 pid 42312 (00.002386) Add user ns 7 pid 42312 (00.002414) Add cgroup ns 8 pid 42312 (00.002421) cg: Dumping cgroups for 42312 (00.002459) cg: `- New css ID 1 (00.002465) cg: `- [] -> [/user.slice/user-1000.slice/user@1000.service/app.slice/app-org.gnome.Terminal.slice/vte-spawn-3717053b-cf26-4520-9ad4-9884aa06de13.scope] [0] (00.002471) cg: Set 1 is criu one (00.002534) Error (criu/seize.c:911): Neither a cgroupv1 (freezer.state) or cgroupv2 (cgroup.freeze) control file found. (00.002576) Unlock network (00.002596) Unfreezing tasks into 1 (00.002607) Unseizing 42253 into 1 (00.002621) Error (compel/src/lib/infect.c:356): Unable to detach from 42253: No such process (00.002642) Error (criu/cr-dump.c:2053): Dumping FAILED. ```
Output of `criu --version`:
``` Version: 3.17.1 ```
Output of `criu check --all`:
``` Looks good. ``` **output of `criu check --all`**: (**criu 3.19**) ``` Looks good but some kernel features are missing which, depending on your process tree, may cause dump or restore failure. ``` (it did't print the detail of missing feature??)
Additional environment details:
output of kernel config: kernel-config.txt