Closed kolyshkin closed 4 months ago
Cc @adrianreber @ZeyadYasser @avagin
Applied. Thanks!
LGTM. Closing as the patch has been applied to the criu-dev branch.
The patch looks good.
But it seems that kdat.has_nftables_concat
is unused after set, do we really need this code? @avagin @ZeyadYasser maybe you know more?
(I mean the only consequence of it set is Nftables based locking requires libnftables and set concatenations support
warning)
On some systems, nft binary might not be installed, or some kernel options might be unconfigured, resulting in something like this:
This is similar to what
kerndat_has_nftables_concat()
does, and if the outcome is the same, it returns an error tokerndat_init()
, and an error fromkerndat_init()
is considered fatal.Let's relax the check, returning mere "feature not working" instead of a fatal error.
This was discovered while running criu CI on ARM via actuated ci env generously provided by @alexellis. Currently it runs kernel 6.1.90 with the following config:
I guess that missing
CONFIG_NF_TABLES_INET
is the source of the issue.Adding this patch on top of current criu-dev fixes all failures of runc c/r tests (see e.g. https://github.com/opencontainers/runc/actions/runs/9024939764/job/24799738301).
How it failed before the fix
Failed run (using criu_3.19-2_arm64.deb from https://download.opensuse.org/repositories/devel:/tools:/criu/xUbuntu_22.04) looks like this (from https://github.com/opencontainers/runc/actions/runs/9023994162/job/24796971230):
(failures in runc integration tests are similar).