Skip to content

.travis.yml: add Fedora 31 vagrant box (for cgroup2)#2165

Merged
crosbymichael merged 1 commit into
opencontainers:masterfrom
AkihiroSuda:travis-f31
Dec 5, 2019
Merged

.travis.yml: add Fedora 31 vagrant box (for cgroup2)#2165
crosbymichael merged 1 commit into
opencontainers:masterfrom
AkihiroSuda:travis-f31

Conversation

@AkihiroSuda
Copy link
Copy Markdown
Member

@AkihiroSuda AkihiroSuda commented Oct 31, 2019

As the baby step, only unit tests are executed.

Failing tests are currently skipped and will be fixed in follow-up PRs.

Fix #2124

Signed-off-by: Akihiro Suda akihiro.suda.cz@hco.ntt.co.jp

Comment thread .travis.yml
@@ -1,4 +1,4 @@
dist: xenial
dist: bionic
Copy link
Copy Markdown
Member Author

@AkihiroSuda AkihiroSuda Oct 31, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: it seems vmx flag is enabled only in bionic machines

@AkihiroSuda AkihiroSuda force-pushed the travis-f31 branch 3 times, most recently from c61001b to 765efdc Compare October 31, 2019 06:22
@AkihiroSuda
Copy link
Copy Markdown
Member Author

unittest CI is working as expected: https://travis-ci.org/opencontainers/runc/jobs/605353943?utm_medium=notification&utm_source=github_status

=== RUN   TestParseCgroups
--- FAIL: TestParseCgroups (0.00s)
...
=== RUN   TestInvalidCgroupPath
--- FAIL: TestInvalidCgroupPath (0.00s)
    apply_raw_test.go:37: couldn't get cgroup path: mountpoint for  not found
    apply_raw_test.go:40: SECURITY: cgroup path() is outside cgroup mountpoint!
=== RUN   TestInvalidAbsoluteCgroupPath
--- FAIL: TestInvalidAbsoluteCgroupPath (0.00s)
    apply_raw_test.go:71: SECURITY: cgroup path() is outside cgroup mountpoint!
=== RUN   TestInvalidCgroupParent
--- FAIL: TestInvalidCgroupParent (0.00s)
    apply_raw_test.go:101: couldn't get cgroup path: mountpoint for  not found
    apply_raw_test.go:104: SECURITY: cgroup path() is outside cgroup mountpoint!
=== RUN   TestInvalidAbsoluteCgroupParent
--- FAIL: TestInvalidAbsoluteCgroupParent (0.00s)
    apply_raw_test.go:137: SECURITY: cgroup path() is outside cgroup mountpoint!
=== RUN   TestInvalidCgroupName
--- FAIL: TestInvalidCgroupName (0.00s)
    apply_raw_test.go:167: couldn't get cgroup path: mountpoint for  not found
    apply_raw_test.go:170: SECURITY: cgroup path() is outside cgroup mountpoint!
=== RUN   TestInvalidAbsoluteCgroupName
--- FAIL: TestInvalidAbsoluteCgroupName (0.00s)
    apply_raw_test.go:201: couldn't get cgroup path: mountpoint for  not found
    apply_raw_test.go:204: SECURITY: cgroup path() is outside cgroup mountpoint!
=== RUN   TestInvalidCgroupNameAndParent
--- FAIL: TestInvalidCgroupNameAndParent (0.00s)
    apply_raw_test.go:234: couldn't get cgroup path: mountpoint for  not found
    apply_raw_test.go:237: SECURITY: cgroup path() is outside cgroup mountpoint!
=== RUN   TestInvalidAbsoluteCgroupNameAndParent
--- FAIL: TestInvalidAbsoluteCgroupNameAndParent (0.00s)
    apply_raw_test.go:270: SECURITY: cgroup path() is outside cgroup mountpoint!
...
=== RUN   TestUsernsCheckpoint
--- FAIL: TestUsernsCheckpoint (0.54s)
    checkpoint_test.go:20: === /tmp/criu011818746/dump.log ===
    checkpoint_test.go:31: (00.000048) Version: 3.12 (gitid 0)
    checkpoint_test.go:31: (00.000060) Running on a31f15e740aa Linux 5.3.7-301.fc31.x86_64 #1 SMP Mon Oct 21 19:18:58 UTC 2019 x86_64
    checkpoint_test.go:31: (00.000063) Overwriting RPC settings with values from /etc/criu/runc.conf
    checkpoint_test.go:31: (00.000100) File /run/criu.kdat does not exist
    checkpoint_test.go:31: (00.000119) sockets: Probing sock diag modules
    checkpoint_test.go:31: (00.000230) sockets: Done probing
    checkpoint_test.go:31: (00.007498) Error (criu/util.c:608): exited, status=3
    checkpoint_test.go:31: (00.007572) Pagemap is fully functional
    checkpoint_test.go:31: (00.007634) Found anon-shmem device at 1
    checkpoint_test.go:31: (00.007667) Reset 2161's dirty tracking
    checkpoint_test.go:31: (00.007730)  ... done
    checkpoint_test.go:31: (00.007783) Dirty track supported on kernel
    checkpoint_test.go:31: (00.007867) Found task size of 7ffffffff000
    checkpoint_test.go:31: (00.021698) Restoring netdev veth idx 10
    checkpoint_test.go:31: (00.022325) Dumping netns links
    checkpoint_test.go:31: (00.022400) 	LD: Got link 1, type 772
    checkpoint_test.go:31: (00.022403) 	LD: Got link 10, type 1
    checkpoint_test.go:31: (00.023419) vdso: Parsing at 7ffd3e7d0000 7ffd3e7d1000
    checkpoint_test.go:31: (00.023428) vdso: PT_LOAD p_vaddr: 0
    checkpoint_test.go:31: (00.023430) vdso: DT_HASH: 120
    checkpoint_test.go:31: (00.023431) vdso: DT_STRTAB: 2d8
    checkpoint_test.go:31: (00.023433) vdso: DT_SYMTAB: 1b8
    checkpoint_test.go:31: (00.023434) vdso: DT_STRSZ: 72
    checkpoint_test.go:31: (00.023435) vdso: DT_SYMENT: 18
    checkpoint_test.go:31: (00.023436) vdso: nbucket 3 nchain c bucket 7ffd3e7d0128 chain 7ffd3e7d0134
    checkpoint_test.go:31: (00.023442) vdso: rt [vdso] 7ffd3e7d0000-7ffd3e7d1000 [vvar] 7ffd3e7cd000-7ffd3e7d0000
    checkpoint_test.go:31: (00.024096) vdso: Parsing at 7f643bfe8000 7f643bfe9000
    checkpoint_test.go:31: (00.024104) vdso: PT_LOAD p_vaddr: 0
    checkpoint_test.go:31: (00.024106) vdso: DT_HASH: b4
    checkpoint_test.go:31: (00.024107) vdso: DT_STRTAB: 1f0
    checkpoint_test.go:31: (00.024109) vdso: DT_SYMTAB: 140
    checkpoint_test.go:31: (00.024110) vdso: DT_STRSZ: c0
    checkpoint_test.go:31: (00.024111) vdso: DT_SYMENT: 10
    checkpoint_test.go:31: (00.024112) vdso: nbucket 3 nchain b bucket 7f643bfe80bc chain 7f643bfe80c8
    checkpoint_test.go:31: (00.024141) vdso: compat [vdso] 7ffd3e7d3000-7ffd3e7d4000 [vvar] 7ffd3e7d0000-7ffd3e7d3000
    checkpoint_test.go:31: (00.026962) cpu: x86_family 6 x86_vendor_id GenuineIntel x86_model_id Intel(R) Xeon(R) CPU @ 2.30GHz
    checkpoint_test.go:31: (00.027067) cpu: fpu: xfeatures_mask 0x5 xsave_size 832 xsave_size_max 832 xsaves_size 0
    checkpoint_test.go:31: (00.027097) cpu: fpu: x87 floating point registers     xstate_offsets      0 / 0      xstate_sizes    160 / 160   
    checkpoint_test.go:31: (00.027101) cpu: fpu: AVX registers                    xstate_offsets    576 / 576    xstate_sizes    256 / 256   
    checkpoint_test.go:31: (00.027332) Found mmap_min_addr 0x10000
    checkpoint_test.go:31: (00.027348) files stat: fs/file-max 9223372036854775807, fs/nr_open 1073741816
    checkpoint_test.go:31: (00.027511) Warn  (criu/kerndat.c:881): Can't keep kdat cache on non-tempfs
    checkpoint_test.go:31: (00.027639) ========================================
    checkpoint_test.go:31: (00.027643) Dumping processes (pid: 2129)
    checkpoint_test.go:31: (00.027645) ========================================
    checkpoint_test.go:31: (00.027651) rlimit: RLIMIT_NOFILE unlimited for self
    checkpoint_test.go:31: (00.027684) Running pre-dump scripts
    checkpoint_test.go:31: (00.027688) 	RPC
    checkpoint_test.go:31: (00.027941) irmap: Searching irmap cache in work dir
    checkpoint_test.go:31: (00.027953) No irmap-cache image
    checkpoint_test.go:31: (00.027955) irmap: Searching irmap cache in parent
    checkpoint_test.go:31: (00.027994) irmap: No irmap cache
    checkpoint_test.go:31: (00.027998) cpu: fpu:1 fxsr:1 xsave:1 xsaveopt:0 xsavec:0 xgetbv1:0 xsaves:0
    checkpoint_test.go:31: (00.028117) cg-prop: Parsing controller "cpu"
    checkpoint_test.go:31: (00.028121) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.028125) cg-prop: 	Property "cpu.shares"
    checkpoint_test.go:31: (00.028127) cg-prop: 	Property "cpu.cfs_period_us"
    checkpoint_test.go:31: (00.028129) cg-prop: 	Property "cpu.cfs_quota_us"
    checkpoint_test.go:31: (00.028130) cg-prop: 	Property "cpu.rt_period_us"
    checkpoint_test.go:31: (00.028131) cg-prop: 	Property "cpu.rt_runtime_us"
    checkpoint_test.go:31: (00.028133) cg-prop: Parsing controller "memory"
    checkpoint_test.go:31: (00.028134) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.028136) cg-prop: 	Property "memory.limit_in_bytes"
    checkpoint_test.go:31: (00.028140) cg-prop: 	Property "memory.memsw.limit_in_bytes"
    checkpoint_test.go:31: (00.028141) cg-prop: 	Property "memory.swappiness"
    checkpoint_test.go:31: (00.028169) cg-prop: 	Property "memory.soft_limit_in_bytes"
    checkpoint_test.go:31: (00.028172) cg-prop: 	Property "memory.move_charge_at_immigrate"
    checkpoint_test.go:31: (00.028173) cg-prop: 	Property "memory.oom_control"
    checkpoint_test.go:31: (00.028174) cg-prop: 	Property "memory.use_hierarchy"
    checkpoint_test.go:31: (00.028176) cg-prop: 	Property "memory.kmem.limit_in_bytes"
    checkpoint_test.go:31: (00.028177) cg-prop: 	Property "memory.kmem.tcp.limit_in_bytes"
    checkpoint_test.go:31: (00.028179) cg-prop: Parsing controller "cpuset"
    checkpoint_test.go:31: (00.028180) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.028182) cg-prop: 	Property "cpuset.cpus"
    checkpoint_test.go:31: (00.028183) cg-prop: 	Property "cpuset.mems"
    checkpoint_test.go:31: (00.028184) cg-prop: 	Property "cpuset.memory_migrate"
    checkpoint_test.go:31: (00.028186) cg-prop: 	Property "cpuset.cpu_exclusive"
    checkpoint_test.go:31: (00.028187) cg-prop: 	Property "cpuset.mem_exclusive"
    checkpoint_test.go:31: (00.028188) cg-prop: 	Property "cpuset.mem_hardwall"
    checkpoint_test.go:31: (00.028190) cg-prop: 	Property "cpuset.memory_spread_page"
    checkpoint_test.go:31: (00.028195) cg-prop: 	Property "cpuset.memory_spread_slab"
    checkpoint_test.go:31: (00.028197) cg-prop: 	Property "cpuset.sched_load_balance"
    checkpoint_test.go:31: (00.028198) cg-prop: 	Property "cpuset.sched_relax_domain_level"
    checkpoint_test.go:31: (00.028200) cg-prop: Parsing controller "blkio"
    checkpoint_test.go:31: (00.028201) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.028203) cg-prop: 	Property "blkio.weight"
    checkpoint_test.go:31: (00.028232) cg-prop: Parsing controller "freezer"
    checkpoint_test.go:31: (00.028234) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.028235) cg-prop: Parsing controller "perf_event"
    checkpoint_test.go:31: (00.028236) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.028238) cg-prop: Parsing controller "net_cls"
    checkpoint_test.go:31: (00.028240) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.028241) cg-prop: 	Property "net_cls.classid"
    checkpoint_test.go:31: (00.028242) cg-prop: Parsing controller "net_prio"
    checkpoint_test.go:31: (00.028244) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.028245) cg-prop: 	Property "net_prio.ifpriomap"
    checkpoint_test.go:31: (00.028246) cg-prop: Parsing controller "pids"
    checkpoint_test.go:31: (00.028248) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.028249) cg-prop: 	Property "pids.max"
    checkpoint_test.go:31: (00.028250) cg-prop: Parsing controller "devices"
    checkpoint_test.go:31: (00.028252) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.028253) cg-prop: 	Property "devices.list"
    checkpoint_test.go:31: (00.028308) Perparing image inventory (version 1)
    checkpoint_test.go:31: (00.028367) Add pid ns 1 pid 2161
    checkpoint_test.go:31: (00.028377) Add net ns 2 pid 2161
    checkpoint_test.go:31: (00.028385) Add ipc ns 3 pid 2161
    checkpoint_test.go:31: (00.028423) Add uts ns 4 pid 2161
    checkpoint_test.go:31: (00.028430) Add mnt ns 5 pid 2161
    checkpoint_test.go:31: (00.028437) Add user ns 6 pid 2161
    checkpoint_test.go:31: (00.028443) Add cgroup ns 7 pid 2161
    checkpoint_test.go:31: (00.028445) cg: Dumping cgroups for 2161
    checkpoint_test.go:31: (00.028561) cg:  `- New css ID 1
    checkpoint_test.go:31: (00.028566) cg: Set 1 is criu one
    checkpoint_test.go:31: (00.028738) Seized task 2129, state 1
    checkpoint_test.go:31: (00.028741) seccomp: Collected tid_real 2129 mode 0
    checkpoint_test.go:31: (00.028792) Collected (4 attempts, 0 in_progress)
    checkpoint_test.go:31: (00.028808) Collected (4 attempts, 0 in_progress)
    checkpoint_test.go:31: (00.028840) Collected 2129 in 1 state
    checkpoint_test.go:31: (00.028861) Will take pid namespace in the image
    checkpoint_test.go:31: (00.028863) Add pid ns 8 pid 2129
    checkpoint_test.go:31: (00.028870) Will take net namespace in the image
    checkpoint_test.go:31: (00.028871) Add net ns 9 pid 2129
    checkpoint_test.go:31: (00.028928) Will take ipc namespace in the image
    checkpoint_test.go:31: (00.028931) Add ipc ns 10 pid 2129
    checkpoint_test.go:31: (00.028971) Will take uts namespace in the image
    checkpoint_test.go:31: (00.028974) Add uts ns 11 pid 2129
    checkpoint_test.go:31: (00.028981) Will take mnt namespace in the image
    checkpoint_test.go:31: (00.028982) Add mnt ns 12 pid 2129
    checkpoint_test.go:31: (00.028989) Will take user namespace in the image
    checkpoint_test.go:31: (00.028990) Add user ns 13 pid 2129
    checkpoint_test.go:31: (00.029023) Lock network
    checkpoint_test.go:31: (00.029026) Running network-lock scripts
    checkpoint_test.go:31: (00.029028) 	RPC
    checkpoint_test.go:31: iptables-restore: invalid option -- 'w'
    checkpoint_test.go:31: ip6tables-restore: invalid option -- 'w'
    checkpoint_test.go:31: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.3.7-301.fc31.x86_64/modules.dep.bin'
    checkpoint_test.go:31: modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/5.3.7-301.fc31.x86_64
    checkpoint_test.go:31: ip6tables-restore v1.6.0: ip6tables-restore: unable to initialize table 'filter'
    checkpoint_test.go:31: 
    checkpoint_test.go:31: Error occurred at line: 1
    checkpoint_test.go:31: Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
    checkpoint_test.go:31: (00.054551) Error (criu/util.c:608): exited, status=2
    checkpoint_test.go:31: (00.055039) Error (criu/net.c:2616): Locking network failed: iptables-restore returned -1. This may be connected to disabled CONFIG_NETFILTER_XT_MARK kernel build config option.
    checkpoint_test.go:31: (00.055089) Unlock network
    checkpoint_test.go:31: (00.055100) Running network-unlock scripts
    checkpoint_test.go:31: (00.055102) 	RPC
    checkpoint_test.go:31: iptables-restore: invalid option -- 'w'
    checkpoint_test.go:31: ip6tables-restore: invalid option -- 'w'
    checkpoint_test.go:31: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.3.7-301.fc31.x86_64/modules.dep.bin'
    checkpoint_test.go:31: modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/5.3.7-301.fc31.x86_64
    checkpoint_test.go:31: ip6tables-restore v1.6.0: ip6tables-restore: unable to initialize table 'filter'
    checkpoint_test.go:31: 
    checkpoint_test.go:31: Error occurred at line: 1
    checkpoint_test.go:31: Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
    checkpoint_test.go:31: (00.063218) Error (criu/util.c:608): exited, status=2
    checkpoint_test.go:31: (00.063269) Unfreezing tasks into 1
    checkpoint_test.go:31: (00.063273) 	Unseizing 2129 into 1
    checkpoint_test.go:31: (00.063289) Error (criu/cr-dump.c:1742): Dumping FAILED.
    checkpoint_test.go:38: === END ===
    checkpoint_test.go:176: criu failed: type NOTIFY errno 0
        log file: /tmp/criu011818746/dump.log
=== RUN   TestCheckpoint
--- FAIL: TestCheckpoint (0.18s)
    checkpoint_test.go:20: === /tmp/criu822124750/dump.log ===
    checkpoint_test.go:31: (00.000019) Version: 3.12 (gitid 0)
    checkpoint_test.go:31: (00.000058) Running on a31f15e740aa Linux 5.3.7-301.fc31.x86_64 #1 SMP Mon Oct 21 19:18:58 UTC 2019 x86_64
    checkpoint_test.go:31: (00.000062) Overwriting RPC settings with values from /etc/criu/runc.conf
    checkpoint_test.go:31: (00.000068) File /run/criu.kdat does not exist
    checkpoint_test.go:31: (00.000091) sockets: Probing sock diag modules
    checkpoint_test.go:31: (00.000206) sockets: Done probing
    checkpoint_test.go:31: (00.007339) Error (criu/util.c:608): exited, status=3
    checkpoint_test.go:31: (00.007446) Pagemap is fully functional
    checkpoint_test.go:31: (00.007474) Found anon-shmem device at 1
    checkpoint_test.go:31: (00.007512) Reset 2215's dirty tracking
    checkpoint_test.go:31: (00.007574)  ... done
    checkpoint_test.go:31: (00.007629) Dirty track supported on kernel
    checkpoint_test.go:31: (00.007713) Found task size of 7ffffffff000
    checkpoint_test.go:31: (00.017654) Restoring netdev veth idx 10
    checkpoint_test.go:31: (00.018140) Dumping netns links
    checkpoint_test.go:31: (00.018216) 	LD: Got link 1, type 772
    checkpoint_test.go:31: (00.018247) 	LD: Got link 10, type 1
    checkpoint_test.go:31: (00.019238) vdso: Parsing at 7fffd77cd000 7fffd77ce000
    checkpoint_test.go:31: (00.019247) vdso: PT_LOAD p_vaddr: 0
    checkpoint_test.go:31: (00.019249) vdso: DT_HASH: 120
    checkpoint_test.go:31: (00.019250) vdso: DT_STRTAB: 2d8
    checkpoint_test.go:31: (00.019251) vdso: DT_SYMTAB: 1b8
    checkpoint_test.go:31: (00.019253) vdso: DT_STRSZ: 72
    checkpoint_test.go:31: (00.019254) vdso: DT_SYMENT: 18
    checkpoint_test.go:31: (00.019255) vdso: nbucket 3 nchain c bucket 7fffd77cd128 chain 7fffd77cd134
    checkpoint_test.go:31: (00.019288) vdso: rt [vdso] 7fffd77cd000-7fffd77ce000 [vvar] 7fffd77ca000-7fffd77cd000
    checkpoint_test.go:31: (00.019842) vdso: Parsing at 7f5b49e7c000 7f5b49e7d000
    checkpoint_test.go:31: (00.019850) vdso: PT_LOAD p_vaddr: 0
    checkpoint_test.go:31: (00.019851) vdso: DT_HASH: b4
    checkpoint_test.go:31: (00.019853) vdso: DT_STRTAB: 1f0
    checkpoint_test.go:31: (00.019854) vdso: DT_SYMTAB: 140
    checkpoint_test.go:31: (00.019855) vdso: DT_STRSZ: c0
    checkpoint_test.go:31: (00.019856) vdso: DT_SYMENT: 10
    checkpoint_test.go:31: (00.019857) vdso: nbucket 3 nchain b bucket 7f5b49e7c0bc chain 7f5b49e7c0c8
    checkpoint_test.go:31: (00.019861) vdso: compat [vdso] 7fffd77d0000-7fffd77d1000 [vvar] 7fffd77cd000-7fffd77d0000
    checkpoint_test.go:31: (00.020896) cpu: x86_family 6 x86_vendor_id GenuineIntel x86_model_id Intel(R) Xeon(R) CPU @ 2.30GHz
    checkpoint_test.go:31: (00.020990) cpu: fpu: xfeatures_mask 0x5 xsave_size 832 xsave_size_max 832 xsaves_size 0
    checkpoint_test.go:31: (00.021019) cpu: fpu: x87 floating point registers     xstate_offsets      0 / 0      xstate_sizes    160 / 160   
    checkpoint_test.go:31: (00.021024) cpu: fpu: AVX registers                    xstate_offsets    576 / 576    xstate_sizes    256 / 256   
    checkpoint_test.go:31: (00.021246) Found mmap_min_addr 0x10000
    checkpoint_test.go:31: (00.021262) files stat: fs/file-max 9223372036854775807, fs/nr_open 1073741816
    checkpoint_test.go:31: (00.021377) Warn  (criu/kerndat.c:881): Can't keep kdat cache on non-tempfs
    checkpoint_test.go:31: (00.021506) ========================================
    checkpoint_test.go:31: (00.021509) Dumping processes (pid: 2183)
    checkpoint_test.go:31: (00.021510) ========================================
    checkpoint_test.go:31: (00.021543) rlimit: RLIMIT_NOFILE unlimited for self
    checkpoint_test.go:31: (00.021548) Running pre-dump scripts
    checkpoint_test.go:31: (00.021549) 	RPC
    checkpoint_test.go:31: (00.021795) irmap: Searching irmap cache in work dir
    checkpoint_test.go:31: (00.021806) No irmap-cache image
    checkpoint_test.go:31: (00.021808) irmap: Searching irmap cache in parent
    checkpoint_test.go:31: (00.021815) irmap: No irmap cache
    checkpoint_test.go:31: (00.021817) cpu: fpu:1 fxsr:1 xsave:1 xsaveopt:0 xsavec:0 xgetbv1:0 xsaves:0
    checkpoint_test.go:31: (00.021923) cg-prop: Parsing controller "cpu"
    checkpoint_test.go:31: (00.021927) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.021931) cg-prop: 	Property "cpu.shares"
    checkpoint_test.go:31: (00.021932) cg-prop: 	Property "cpu.cfs_period_us"
    checkpoint_test.go:31: (00.021933) cg-prop: 	Property "cpu.cfs_quota_us"
    checkpoint_test.go:31: (00.021935) cg-prop: 	Property "cpu.rt_period_us"
    checkpoint_test.go:31: (00.021937) cg-prop: 	Property "cpu.rt_runtime_us"
    checkpoint_test.go:31: (00.021938) cg-prop: Parsing controller "memory"
    checkpoint_test.go:31: (00.021939) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.021941) cg-prop: 	Property "memory.limit_in_bytes"
    checkpoint_test.go:31: (00.021971) cg-prop: 	Property "memory.memsw.limit_in_bytes"
    checkpoint_test.go:31: (00.021974) cg-prop: 	Property "memory.swappiness"
    checkpoint_test.go:31: (00.021975) cg-prop: 	Property "memory.soft_limit_in_bytes"
    checkpoint_test.go:31: (00.021976) cg-prop: 	Property "memory.move_charge_at_immigrate"
    checkpoint_test.go:31: (00.021978) cg-prop: 	Property "memory.oom_control"
    checkpoint_test.go:31: (00.021979) cg-prop: 	Property "memory.use_hierarchy"
    checkpoint_test.go:31: (00.021981) cg-prop: 	Property "memory.kmem.limit_in_bytes"
    checkpoint_test.go:31: (00.021982) cg-prop: 	Property "memory.kmem.tcp.limit_in_bytes"
    checkpoint_test.go:31: (00.021984) cg-prop: Parsing controller "cpuset"
    checkpoint_test.go:31: (00.021985) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.021987) cg-prop: 	Property "cpuset.cpus"
    checkpoint_test.go:31: (00.021988) cg-prop: 	Property "cpuset.mems"
    checkpoint_test.go:31: (00.021989) cg-prop: 	Property "cpuset.memory_migrate"
    checkpoint_test.go:31: (00.021990) cg-prop: 	Property "cpuset.cpu_exclusive"
    checkpoint_test.go:31: (00.021992) cg-prop: 	Property "cpuset.mem_exclusive"
    checkpoint_test.go:31: (00.021993) cg-prop: 	Property "cpuset.mem_hardwall"
    checkpoint_test.go:31: (00.021994) cg-prop: 	Property "cpuset.memory_spread_page"
    checkpoint_test.go:31: (00.021999) cg-prop: 	Property "cpuset.memory_spread_slab"
    checkpoint_test.go:31: (00.022001) cg-prop: 	Property "cpuset.sched_load_balance"
    checkpoint_test.go:31: (00.022002) cg-prop: 	Property "cpuset.sched_relax_domain_level"
    checkpoint_test.go:31: (00.022031) cg-prop: Parsing controller "blkio"
    checkpoint_test.go:31: (00.022033) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.022034) cg-prop: 	Property "blkio.weight"
    checkpoint_test.go:31: (00.022036) cg-prop: Parsing controller "freezer"
    checkpoint_test.go:31: (00.022037) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.022038) cg-prop: Parsing controller "perf_event"
    checkpoint_test.go:31: (00.022040) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.022041) cg-prop: Parsing controller "net_cls"
    checkpoint_test.go:31: (00.022043) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.022044) cg-prop: 	Property "net_cls.classid"
    checkpoint_test.go:31: (00.022045) cg-prop: Parsing controller "net_prio"
    checkpoint_test.go:31: (00.022046) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.022048) cg-prop: 	Property "net_prio.ifpriomap"
    checkpoint_test.go:31: (00.022049) cg-prop: Parsing controller "pids"
    checkpoint_test.go:31: (00.022050) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.022052) cg-prop: 	Property "pids.max"
    checkpoint_test.go:31: (00.022053) cg-prop: Parsing controller "devices"
    checkpoint_test.go:31: (00.022054) cg-prop: 	Strategy "replace"
    checkpoint_test.go:31: (00.022056) cg-prop: 	Property "devices.list"
    checkpoint_test.go:31: (00.022108) Perparing image inventory (version 1)
    checkpoint_test.go:31: (00.022162) Add pid ns 1 pid 2215
    checkpoint_test.go:31: (00.022171) Add net ns 2 pid 2215
    checkpoint_test.go:31: (00.022216) Add ipc ns 3 pid 2215
    checkpoint_test.go:31: (00.022226) Add uts ns 4 pid 2215
    checkpoint_test.go:31: (00.022232) Add mnt ns 5 pid 2215
    checkpoint_test.go:31: (00.022238) Add user ns 6 pid 2215
    checkpoint_test.go:31: (00.022245) Add cgroup ns 7 pid 2215
    checkpoint_test.go:31: (00.022272) cg: Dumping cgroups for 2215
    checkpoint_test.go:31: (00.022290) cg:  `- New css ID 1
    checkpoint_test.go:31: (00.022293) cg: Set 1 is criu one
    checkpoint_test.go:31: (00.022464) Seized task 2183, state 1
    checkpoint_test.go:31: (00.022467) seccomp: Collected tid_real 2183 mode 0
    checkpoint_test.go:31: (00.022532) Collected (4 attempts, 0 in_progress)
    checkpoint_test.go:31: (00.022548) Collected (4 attempts, 0 in_progress)
    checkpoint_test.go:31: (00.022580) Collected 2183 in 1 state
    checkpoint_test.go:31: (00.022598) Will take pid namespace in the image
    checkpoint_test.go:31: (00.022600) Add pid ns 8 pid 2183
    checkpoint_test.go:31: (00.022607) Will take net namespace in the image
    checkpoint_test.go:31: (00.022608) Add net ns 9 pid 2183
    checkpoint_test.go:31: (00.022643) Will take ipc namespace in the image
    checkpoint_test.go:31: (00.022646) Add ipc ns 10 pid 2183
    checkpoint_test.go:31: (00.022662) Will take uts namespace in the image
    checkpoint_test.go:31: (00.022663) Add uts ns 11 pid 2183
    checkpoint_test.go:31: (00.022670) Will take mnt namespace in the image
    checkpoint_test.go:31: (00.022671) Add mnt ns 12 pid 2183
    checkpoint_test.go:31: (00.022711) Lock network
    checkpoint_test.go:31: (00.022713) Running network-lock scripts
    checkpoint_test.go:31: (00.022715) 	RPC
    checkpoint_test.go:31: iptables-restore: invalid option -- 'w'
    checkpoint_test.go:31: ip6tables-restore: invalid option -- 'w'
    checkpoint_test.go:31: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.3.7-301.fc31.x86_64/modules.dep.bin'
    checkpoint_test.go:31: modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/5.3.7-301.fc31.x86_64
    checkpoint_test.go:31: ip6tables-restore v1.6.0: ip6tables-restore: unable to initialize table 'filter'
    checkpoint_test.go:31: 
    checkpoint_test.go:31: Error occurred at line: 1
    checkpoint_test.go:31: Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
    checkpoint_test.go:31: (00.031995) Error (criu/util.c:608): exited, status=2
    checkpoint_test.go:31: (00.032040) Error (criu/net.c:2616): Locking network failed: iptables-restore returned -1. This may be connected to disabled CONFIG_NETFILTER_XT_MARK kernel build config option.
    checkpoint_test.go:31: (00.032060) Unlock network
    checkpoint_test.go:31: (00.032062) Running network-unlock scripts
    checkpoint_test.go:31: (00.032064) 	RPC
    checkpoint_test.go:31: iptables-restore: invalid option -- 'w'
    checkpoint_test.go:31: ip6tables-restore: invalid option -- 'w'
    checkpoint_test.go:31: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.3.7-301.fc31.x86_64/modules.dep.bin'
    checkpoint_test.go:31: modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/5.3.7-301.fc31.x86_64
    checkpoint_test.go:31: ip6tables-restore v1.6.0: ip6tables-restore: unable to initialize table 'filter'
    checkpoint_test.go:31: 
    checkpoint_test.go:31: Error occurred at line: 1
    checkpoint_test.go:31: Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
    checkpoint_test.go:31: (00.041105) Error (criu/util.c:608): exited, status=2
    checkpoint_test.go:31: (00.041154) Unfreezing tasks into 1
    checkpoint_test.go:31: (00.041156) 	Unseizing 2183 into 1
    checkpoint_test.go:31: (00.041199) Error (criu/cr-dump.c:1742): Dumping FAILED.
    checkpoint_test.go:38: === END ===
    checkpoint_test.go:176: criu failed: type NOTIFY errno 0
        log file: /tmp/criu822124750/dump.log
...
=== RUN   TestEnter
--- FAIL: TestEnter (0.09s)
    utils_test.go:55: exec_test.go:261: unexpected error: container_linux.go:170: getting all container pids from cgroups caused "cannot detect unified path"
...
=== RUN   TestFreeze
--- FAIL: TestFreeze (0.06s)
    utils_test.go:55: exec_test.go:541: unexpected error: no such directory for cgroup.freeze
        
=== RUN   TestSystemdFreeze
--- SKIP: TestSystemdFreeze (0.00s)
    exec_test.go:506: Systemd is unsupported
=== RUN   TestCpuShares
--- FAIL: TestCpuShares (0.06s)
    exec_test.go:581: runContainer should failed with invalid CpuShares
=== RUN   TestCpuSharesSystemd
--- SKIP: TestCpuSharesSystemd (0.00s)
    exec_test.go:560: Systemd is unsupported
=== RUN   TestPids
time="2019-10-31T06:50:51Z" level=warning msg="signal: killed"
--- FAIL: TestPids (0.05s)
    utils_test.go:55: exec_test.go:616: unexpected error: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:415: setting cgroup config for procHooks process caused \\\"cannot set pids limit: container could not join or create cgroup\\\"\""
        
=== RUN   TestPidsSystemd
--- SKIP: TestPidsSystemd (0.00s)
    exec_test.go:591: Systemd is unsupported
=== RUN   TestRunWithKernelMemory
time="2019-10-31T06:50:51Z" level=warning msg="signal: killed"
--- FAIL: TestRunWithKernelMemory (0.06s)
    exec_test.go:695: runContainer failed with kernel memory limit: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:415: setting cgroup config for procHooks process caused \\\"cannot set memory limit: container could not join or create cgroup\\\"\""

@AkihiroSuda AkihiroSuda changed the title [WIP] .travis.yml: add Fedora 31 vagrant box .travis.yml: add Fedora 31 vagrant box (for cgroup2) Oct 31, 2019
As the baby step, only unit tests are executed.

Failing tests are currently skipped and will be fixed in follow-up PRs.

Fix opencontainers#2124

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda
Copy link
Copy Markdown
Member Author

@giuseppe @mrunalp @rhatdan PTAL?

@rhatdan
Copy link
Copy Markdown
Contributor

rhatdan commented Dec 4, 2019

Awesome, Really happy to see progress in runc towards support for cgroup V2
LGTM

@giuseppe
Copy link
Copy Markdown
Member

giuseppe commented Dec 5, 2019

LGTM (I am not a maintainer)

@mrunalp
Copy link
Copy Markdown
Contributor

mrunalp commented Dec 5, 2019

LGTM

Approved with PullApprove

1 similar comment
@crosbymichael
Copy link
Copy Markdown
Member

crosbymichael commented Dec 5, 2019

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit 8bb10af into opencontainers:master Dec 5, 2019
@cyphar
Copy link
Copy Markdown
Member

cyphar commented Dec 6, 2019

This has started failing with process_linux.go:297: applying cgroup configuration for process caused "mountpoint for not found". If this was intended to fail until we get cgroupv2 working completely, the test should've been marked as fail-able...

@AkihiroSuda
Copy link
Copy Markdown
Member Author

hmm, seems bad rebase during merge?

@AkihiroSuda
Copy link
Copy Markdown
Member Author

#2169 fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: use Vagrant on Travis (mainly for cgroup2)

6 participants