Radostin Stoyanov 46abdd7
From 268bd349a2eea76ab18763bc56c12d5a69a2a51d Mon Sep 17 00:00:00 2001
Radostin Stoyanov 46abdd7
From: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Radostin Stoyanov 46abdd7
Date: Fri, 19 Nov 2021 10:08:37 +0300
Radostin Stoyanov 46abdd7
Subject: [PATCH 046/120] ci: disable socket-raw test on centos8
Radostin Stoyanov 46abdd7
Radostin Stoyanov 46abdd7
We see error in centos8 ci on restore of socket-raw test:
Radostin Stoyanov 46abdd7
Radostin Stoyanov 46abdd7
  inet: \tRestore: family AF_INET type SOCK_RAW proto 66
Radostin Stoyanov 46abdd7
  port 66 state TCP_CLOSE src_addr 0.0.0.0
Radostin Stoyanov 46abdd7
  Error (criu/sk-inet.c:834): inet: Can't create inet socket:
Radostin Stoyanov 46abdd7
  Protocol not supported
Radostin Stoyanov 46abdd7
Radostin Stoyanov 46abdd7
Centos 8 kernel replaces IPPROTO_MPTCP(262) with "in-kernel" value
Radostin Stoyanov 46abdd7
IPPROTO_MPTCP_KERN(66) on inet_create(), but later shows this inkernel
Radostin Stoyanov 46abdd7
value to criu when listing sockets info. Same code in inet_create()
Radostin Stoyanov 46abdd7
returns EPROTONOSUPPORT on the attempr to create socket with
Radostin Stoyanov 46abdd7
IPPROTO_MPTCP_KERN. So this ci error is completely rh8 kernel related.
Radostin Stoyanov 46abdd7
Kernel should not show "in-kernel" value to userspace. But anyway this
Radostin Stoyanov 46abdd7
is already changed in Centos 9 kernel, so we can just skip socket-raw
Radostin Stoyanov 46abdd7
test on Centos 8.
Radostin Stoyanov 46abdd7
Radostin Stoyanov 46abdd7
v2: use cirrus.yml
Radostin Stoyanov 46abdd7
Radostin Stoyanov 46abdd7
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Radostin Stoyanov 46abdd7
---
Radostin Stoyanov 46abdd7
 .cirrus.yml | 2 +-
Radostin Stoyanov 46abdd7
 1 file changed, 1 insertion(+), 1 deletion(-)
Radostin Stoyanov 46abdd7
Radostin Stoyanov 46abdd7
diff --git a/.cirrus.yml b/.cirrus.yml
Radostin Stoyanov 46abdd7
index 671178d8b..235b9821e 100644
Radostin Stoyanov 46abdd7
--- a/.cirrus.yml
Radostin Stoyanov 46abdd7
+++ b/.cirrus.yml
Radostin Stoyanov 46abdd7
@@ -47,7 +47,7 @@ task:
Radostin Stoyanov 46abdd7
     pip3 install junit_xml
Radostin Stoyanov 46abdd7
 
Radostin Stoyanov 46abdd7
   build_script: |
Radostin Stoyanov 46abdd7
-    make -C scripts/ci local SKIP_CI_PREP=1 CC=gcc CD_TO_TOP=1
Radostin Stoyanov 46abdd7
+    make -C scripts/ci local SKIP_CI_PREP=1 CC=gcc CD_TO_TOP=1 ZDTM_OPTS="-x zdtm/static/socket-raw"
Radostin Stoyanov 46abdd7
 
Radostin Stoyanov 46abdd7
 task:
Radostin Stoyanov 46abdd7
   name: CentOS 7 based test
Radostin Stoyanov 46abdd7
-- 
Radostin Stoyanov 46abdd7
2.34.1
Radostin Stoyanov 46abdd7