use_pty:FALSE /usr/share/restraint/plugins/run_task_plugins bash ./runtest.sh :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Setup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 15:23:29 ] :: [ BEGIN ] :: Running 'netperf_install' Netperf version 2.7.0 :: [ 15:23:29 ] :: [ PASS ] :: Command 'netperf_install' (Expected 0, got 0) :: [ 15:23:29 ] :: [ BEGIN ] :: Running 'source /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/ipsec/ipsec_basic/ipsec_basic_netns/ipsec-parameter-setting.sh -p esp -e des3_ede -a sha256 -m transport -s '65470'' TEST_VER=4, SPI=1000, IPSEC_MODE=transport, PROTO=proto esp, ALG=enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f :: [ 15:23:30 ] :: [ PASS ] :: Command 'source /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/ipsec/ipsec_basic/ipsec_basic_netns/ipsec-parameter-setting.sh -p esp -e des3_ede -a sha256 -m transport -s '65470'' (Expected 0, got 0) :: [ 15:23:30 ] :: [ LOG ] :: TEST_VER=4, SPI=1000, IPSEC_MODE=transport, PROTO=proto esp, ALG=enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f :: [ 15:23:30 ] :: [ BEGIN ] :: Running 'spi1='0x1000'' :: [ 15:23:30 ] :: [ PASS ] :: Command 'spi1='0x1000'' (Expected 0, got 0) :: [ 15:23:30 ] :: [ BEGIN ] :: Running 'spi2='0x1001'' :: [ 15:23:30 ] :: [ PASS ] :: Command 'spi2='0x1001'' (Expected 0, got 0) :: [ 15:23:30 ] :: [ BEGIN ] :: Running 'source /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/common/tools/netns_1_net.sh' +++ MASK[4]=24 +++ MASK[6]=64 +++ BR0_IP[4]=192.168.0.254 +++ HA_IP[4]=192.168.0.1 +++ HB_IP[4]=192.168.0.2 +++ BR0_IP[6]=2000::254 +++ HA_IP[6]=2000::1 +++ HB_IP[6]=2000::2 +++ nets='ha hb' +++ for net in $nets +++ ip netns del ha Cannot remove namespace file "/var/run/netns/ha": No such file or directory +++ for net in $nets +++ ip netns del hb Cannot remove namespace file "/var/run/netns/hb": No such file or directory +++ modprobe -r veth +++ ip link show br0 Device "br0" does not exist. +++ for net in $nets +++ ip netns add ha +++ for net in $nets +++ ip netns add hb +++ ip link add br0 type bridge +++ ip link add ha_veth0 type veth peer name ha_veth0_br +++ ip link add hb_veth0 type veth peer name hb_veth0_br +++ ip link set ha_veth0_br master br0 +++ ip link set hb_veth0_br master br0 +++ ip link set ha_veth0 netns ha +++ ip link set hb_veth0 netns hb +++ HA='ip netns exec ha' +++ HB='ip netns exec hb' +++ out_ifaces='br0 ha_veth0_br hb_veth0_br' +++ for iface in $out_ifaces +++ ip link set br0 up +++ for iface in $out_ifaces +++ ip link set ha_veth0_br up +++ for iface in $out_ifaces +++ ip link set hb_veth0_br up +++ ip netns exec ha ip link set lo up +++ ip netns exec ha ip link set ha_veth0 up +++ ip netns exec hb ip link set lo up +++ ip netns exec hb ip link set hb_veth0 up +++ ip addr add 192.168.0.254/24 dev br0 +++ ip netns exec ha ip addr add 192.168.0.1/24 dev ha_veth0 +++ ip netns exec hb ip addr add 192.168.0.2/24 dev hb_veth0 +++ ip addr add 2000::254/64 dev br0 +++ ip netns exec ha ip addr add 2000::1/64 dev ha_veth0 +++ ip netns exec hb ip addr add 2000::2/64 dev hb_veth0 +++ set +x :: [ 15:23:30 ] :: [ PASS ] :: Command 'source /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/common/tools/netns_1_net.sh' (Expected 0, got 0) :: [ 15:23:30 ] :: [ BEGIN ] :: Running 'ip netns exec ha ip xfrm state add src 192.168.0.1 dst 192.168.0.2 spi 0x1000 proto esp enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f mode transport sel src 192.168.0.1 dst 192.168.0.2' :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec ha ip xfrm state add src 192.168.0.1 dst 192.168.0.2 spi 0x1000 proto esp enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f mode transport sel src 192.168.0.1 dst 192.168.0.2' (Expected 0, got 0) :: [ 15:23:30 ] :: [ BEGIN ] :: Running 'ip netns exec ha ip xfrm state add src 192.168.0.2 dst 192.168.0.1 spi 0x1001 proto esp enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f mode transport sel src 192.168.0.2 dst 192.168.0.1' :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec ha ip xfrm state add src 192.168.0.2 dst 192.168.0.1 spi 0x1001 proto esp enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f mode transport sel src 192.168.0.2 dst 192.168.0.1' (Expected 0, got 0) :: [ 15:23:30 ] :: [ BEGIN ] :: Running 'ip netns exec ha ip xfrm policy add dir out src 192.168.0.1 dst 192.168.0.2 tmpl src 192.168.0.1 dst 192.168.0.2 proto esp mode transport' :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec ha ip xfrm policy add dir out src 192.168.0.1 dst 192.168.0.2 tmpl src 192.168.0.1 dst 192.168.0.2 proto esp mode transport' (Expected 0, got 0) :: [ 15:23:30 ] :: [ BEGIN ] :: Running 'ip netns exec ha ip xfrm policy add dir in src 192.168.0.2 dst 192.168.0.1 tmpl src 192.168.0.2 dst 192.168.0.1 proto esp mode transport level use' :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec ha ip xfrm policy add dir in src 192.168.0.2 dst 192.168.0.1 tmpl src 192.168.0.2 dst 192.168.0.1 proto esp mode transport level use' (Expected 0, got 0) :: [ 15:23:30 ] :: [ BEGIN ] :: Running 'ip netns exec hb ip xfrm state add src 192.168.0.2 dst 192.168.0.1 spi 0x1001 proto esp enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f mode transport sel src 192.168.0.2 dst 192.168.0.1' :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec hb ip xfrm state add src 192.168.0.2 dst 192.168.0.1 spi 0x1001 proto esp enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f mode transport sel src 192.168.0.2 dst 192.168.0.1' (Expected 0, got 0) :: [ 15:23:30 ] :: [ BEGIN ] :: Running 'ip netns exec hb ip xfrm state add src 192.168.0.1 dst 192.168.0.2 spi 0x1000 proto esp enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f mode transport sel src 192.168.0.1 dst 192.168.0.2' :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec hb ip xfrm state add src 192.168.0.1 dst 192.168.0.2 spi 0x1000 proto esp enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f mode transport sel src 192.168.0.1 dst 192.168.0.2' (Expected 0, got 0) :: [ 15:23:30 ] :: [ BEGIN ] :: Running 'ip netns exec hb ip xfrm policy add dir out src 192.168.0.2 dst 192.168.0.1 tmpl src 192.168.0.2 dst 192.168.0.1 proto esp mode transport' :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec hb ip xfrm policy add dir out src 192.168.0.2 dst 192.168.0.1 tmpl src 192.168.0.2 dst 192.168.0.1 proto esp mode transport' (Expected 0, got 0) :: [ 15:23:31 ] :: [ BEGIN ] :: Running 'ip netns exec hb ip xfrm policy add dir in src 192.168.0.1 dst 192.168.0.2 tmpl src 192.168.0.1 dst 192.168.0.2 proto esp mode transport level use' :: [ 15:23:31 ] :: [ PASS ] :: Command 'ip netns exec hb ip xfrm policy add dir in src 192.168.0.1 dst 192.168.0.2 tmpl src 192.168.0.1 dst 192.168.0.2 proto esp mode transport level use' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 2s :: Assertions: 13 good, 0 bad :: RESULT: PASS (Setup) ** Setup PASS Score:0 Uploading resultoutputfile.log .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: -p esp -e des3_ede -a sha256 -m transport -s '65470' :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 15:23:31 ] :: [ BEGIN ] :: Running 'tcpport=4053' :: [ 15:23:31 ] :: [ PASS ] :: Command 'tcpport=4053' (Expected 0, got 0) :: [ 15:23:31 ] :: [ BEGIN ] :: Running 'udpport=4053' :: [ 15:23:31 ] :: [ PASS ] :: Command 'udpport=4053' (Expected 0, got 0) :: [ 15:23:31 ] :: [ BEGIN ] :: Running 'sctpport=4053' :: [ 15:23:31 ] :: [ PASS ] :: Command 'sctpport=4053' (Expected 0, got 0) :: [ 15:23:31 ] :: [ LOG ] :: ***** icmp ****** :: [ 15:23:31 ] :: [ BEGIN ] :: Running 'tcpdump -i br0 > icmp.packet &' dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on br0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 15:23:31 ] :: [ PASS ] :: Command 'tcpdump -i br0 > icmp.packet &' (Expected 0, got 0) :: [ 15:23:31 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 15:23:33 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:23:33 ] :: [ BEGIN ] :: Running 'ip netns exec ha ping -i 0.4 -c 5 -s 10 192.168.0.2' PING 192.168.0.2 (192.168.0.2) 10(38) bytes of data. 18 bytes from 192.168.0.2: icmp_seq=1 ttl=64 18 bytes from 192.168.0.2: icmp_seq=2 ttl=64 18 bytes from 192.168.0.2: icmp_seq=3 ttl=64 18 bytes from 192.168.0.2: icmp_seq=4 ttl=64 18 bytes from 192.168.0.2: icmp_seq=5 ttl=64 --- 192.168.0.2 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 1623ms :: [ 15:23:35 ] :: [ PASS ] :: Command 'ip netns exec ha ping -i 0.4 -c 5 -s 10 192.168.0.2' (Expected 0, got 0) :: [ 15:23:35 ] :: [ BEGIN ] :: Running 'ip netns exec ha ping -i 0.4 -c 5 -s 1414 192.168.0.2' PING 192.168.0.2 (192.168.0.2) 1414(1442) bytes of data. 1422 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=0.212 ms 1422 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=0.272 ms 1422 bytes from 192.168.0.2: icmp_seq=3 ttl=64 time=0.265 ms 1422 bytes from 192.168.0.2: icmp_seq=4 ttl=64 time=0.260 ms 1422 bytes from 192.168.0.2: icmp_seq=5 ttl=64 time=0.234 ms --- 192.168.0.2 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 1614ms rtt min/avg/max/mdev = 0.212/0.248/0.272/0.022 ms :: [ 15:23:37 ] :: [ PASS ] :: Command 'ip netns exec ha ping -i 0.4 -c 5 -s 1414 192.168.0.2' (Expected 0, got 0) :: [ 15:23:37 ] :: [ BEGIN ] :: Running 'ip netns exec ha ping -i 0.4 -c 5 -s 65470 192.168.0.2' PING 192.168.0.2 (192.168.0.2) 65470(65498) bytes of data. 65478 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=6.97 ms 65478 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=6.98 ms 65478 bytes from 192.168.0.2: icmp_seq=3 ttl=64 time=7.17 ms 65478 bytes from 192.168.0.2: icmp_seq=4 ttl=64 time=6.98 ms 65478 bytes from 192.168.0.2: icmp_seq=5 ttl=64 time=7.02 ms --- 192.168.0.2 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 1604ms rtt min/avg/max/mdev = 6.972/7.024/7.171/0.075 ms :: [ 15:23:38 ] :: [ PASS ] :: Command 'ip netns exec ha ping -i 0.4 -c 5 -s 65470 192.168.0.2' (Expected 0, got 0) :: [ 15:23:38 ] :: [ BEGIN ] :: Running 'pkill tcpdump; sleep 2' 35 packets captured 524 packets received by filter 0 packets dropped by kernel :: [ 15:23:40 ] :: [ PASS ] :: Command 'pkill tcpdump; sleep 2' (Expected 0, got 0) :: [ 15:23:41 ] :: [ BEGIN ] :: Running 'cat icmp.packet | egrep 'AH|ESP|IPComp' | head -n5' egrep: warning: egrep is obsolescent; using grep -E 15:23:33.922267 IP 192.168.0.1 > 192.168.0.2: ESP(spi=0x00001000,seq=0x1), length 52 15:23:33.922298 IP 192.168.0.2 > 192.168.0.1: ESP(spi=0x00001001,seq=0x1), length 52 15:23:34.329119 IP 192.168.0.1 > 192.168.0.2: ESP(spi=0x00001000,seq=0x2), length 52 15:23:34.329167 IP 192.168.0.2 > 192.168.0.1: ESP(spi=0x00001001,seq=0x2), length 52 15:23:34.729677 IP 192.168.0.1 > 192.168.0.2: ESP(spi=0x00001000,seq=0x3), length 52 :: [ 15:23:41 ] :: [ PASS ] :: Command 'cat icmp.packet | egrep 'AH|ESP|IPComp' | head -n5' (Expected 0, got 0) :: [ 15:23:41 ] :: [ LOG ] :: ***** tcp ****** :: [ 15:23:41 ] :: [ BEGIN ] :: Running 'tcpdump -i br0 > tcp.packet &' dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on br0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 15:23:41 ] :: [ PASS ] :: Command 'tcpdump -i br0 > tcp.packet &' (Expected 0, got 0) :: [ 15:23:41 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 15:23:43 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:23:43 ] :: [ BEGIN ] :: Running 'ip netns exec hb socat -u -4 tcp-l:4053 open:tcprecv,creat &' :: [ 15:23:43 ] :: [ PASS ] :: Command 'ip netns exec hb socat -u -4 tcp-l:4053 open:tcprecv,creat &' (Expected 0, got 0) :: [ 15:23:43 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 15:23:45 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:23:45 ] :: [ BEGIN ] :: Running 'ip netns exec ha socat -u -4 /dev/zero,readbytes=1048576 tcp-connect:192.168.0.2:4053' :: [ 15:23:45 ] :: [ PASS ] :: Command 'ip netns exec ha socat -u -4 /dev/zero,readbytes=1048576 tcp-connect:192.168.0.2:4053' (Expected 0, got 0) :: [ 15:23:45 ] :: [ BEGIN ] :: Running 'sleep 4' :: [ 15:23:49 ] :: [ PASS ] :: Command 'sleep 4' (Expected 0, got 0) :: [ 15:23:49 ] :: [ BEGIN ] :: tcp should receive 1048576 bytes, received 1048576 bytes :: actually running 'ls -l tcprecv | grep 1048576' -rw-r--r--. 1 root root 1048576 Sep 29 15:23 tcprecv :: [ 15:23:49 ] :: [ PASS ] :: tcp should receive 1048576 bytes, received 1048576 bytes (Expected 0, got 0) :: [ 15:23:49 ] :: [ BEGIN ] :: Running 'pkill tcpdump; sleep 2' 4 packets captured 1200 packets received by filter 219 packets dropped by kernel :: [ 15:23:51 ] :: [ PASS ] :: Command 'pkill tcpdump; sleep 2' (Expected 0, got 0) :: [ 15:23:51 ] :: [ BEGIN ] :: Running 'cat tcp.packet | egrep 'AH|ESP|IPComp' | head -n5' egrep: warning: egrep is obsolescent; using grep -E :: [ 15:23:51 ] :: [ PASS ] :: Command 'cat tcp.packet | egrep 'AH|ESP|IPComp' | head -n5' (Expected 0, got 0) :: [ 15:23:51 ] :: [ LOG ] :: ***** udp ****** :: [ 15:23:51 ] :: [ BEGIN ] :: Running 'tcpdump -i br0 > udp.packet &' dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on br0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 15:23:51 ] :: [ PASS ] :: Command 'tcpdump -i br0 > udp.packet &' (Expected 0, got 0) :: [ 15:23:51 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 15:23:53 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:23:53 ] :: [ BEGIN ] :: Running 'ip netns exec hb socat -u -4 udp-l:4053 open:udprecv,creat &' :: [ 15:23:53 ] :: [ PASS ] :: Command 'ip netns exec hb socat -u -4 udp-l:4053 open:udprecv,creat &' (Expected 0, got 0) :: [ 15:23:53 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 15:23:55 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:23:56 ] :: [ BEGIN ] :: Running 'ip netns exec ha socat -u -4 /dev/zero,readbytes=1414 udp-sendto:192.168.0.2:4053' :: [ 15:23:56 ] :: [ PASS ] :: Command 'ip netns exec ha socat -u -4 /dev/zero,readbytes=1414 udp-sendto:192.168.0.2:4053' (Expected 0, got 0) :: [ 15:23:56 ] :: [ BEGIN ] :: Running 'sleep 10' :: [ 15:24:06 ] :: [ PASS ] :: Command 'sleep 10' (Expected 0, got 0) :: [ 15:24:06 ] :: [ BEGIN ] :: udp should receive 1414 bytes, received 1414 bytes :: actually running 'ls -l udprecv | grep 1414' -rw-r--r--. 1 root root 1414 Sep 29 15:23 udprecv :: [ 15:24:06 ] :: [ PASS ] :: udp should receive 1414 bytes, received 1414 bytes (Expected 0, got 0) :: [ 15:24:06 ] :: [ BEGIN ] :: Running 'pkill socat' :: [ 15:24:06 ] :: [ PASS ] :: Command 'pkill socat' (Expected 0, got 0) :: [ 15:24:06 ] :: [ BEGIN ] :: Running 'pkill tcpdump; sleep 2' 33 packets captured 33 packets received by filter 0 packets dropped by kernel :: [ 15:24:08 ] :: [ PASS ] :: Command 'pkill tcpdump; sleep 2' (Expected 0, got 0) :: [ 15:24:08 ] :: [ BEGIN ] :: Running 'cat udp.packet | egrep 'AH|ESP|IPComp' | head -n5' egrep: warning: egrep is obsolescent; using grep -E 15:23:56.017274 IP 192.168.0.1 > 192.168.0.2: ESP(spi=0x00001000,seq=0x314), length 1452 :: [ 15:24:08 ] :: [ PASS ] :: Command 'cat udp.packet | egrep 'AH|ESP|IPComp' | head -n5' (Expected 0, got 0) :: [ 15:24:08 ] :: [ BEGIN ] :: Running 'tcpdump -i br0 > udp.packet &' dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on br0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 15:24:08 ] :: [ PASS ] :: Command 'tcpdump -i br0 > udp.packet &' (Expected 0, got 0) :: [ 15:24:08 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 15:24:10 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:24:10 ] :: [ BEGIN ] :: Running 'ip netns exec hb socat -u -4 udp-l:4053 open:udprecv,creat &' :: [ 15:24:10 ] :: [ PASS ] :: Command 'ip netns exec hb socat -u -4 udp-l:4053 open:udprecv,creat &' (Expected 0, got 0) :: [ 15:24:10 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 15:24:12 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:24:12 ] :: [ BEGIN ] :: Running 'ip netns exec ha socat -u -4 /dev/zero,readbytes=3000 udp-sendto:192.168.0.2:4053' :: [ 15:24:12 ] :: [ PASS ] :: Command 'ip netns exec ha socat -u -4 /dev/zero,readbytes=3000 udp-sendto:192.168.0.2:4053' (Expected 0, got 0) :: [ 15:24:12 ] :: [ BEGIN ] :: Running 'sleep 10' :: [ 15:24:22 ] :: [ PASS ] :: Command 'sleep 10' (Expected 0, got 0) :: [ 15:24:22 ] :: [ BEGIN ] :: udp should receive 3000 bytes, received 3000 bytes :: actually running 'ls -l udprecv | grep 3000' -rw-r--r--. 1 root root 3000 Sep 29 15:24 udprecv :: [ 15:24:22 ] :: [ PASS ] :: udp should receive 3000 bytes, received 3000 bytes (Expected 0, got 0) :: [ 15:24:22 ] :: [ BEGIN ] :: Running 'pkill socat' :: [ 15:24:22 ] :: [ PASS ] :: Command 'pkill socat' (Expected 0, got 0) :: [ 15:24:22 ] :: [ BEGIN ] :: Running 'pkill tcpdump; sleep 2' 15 packets captured 15 packets received by filter 0 packets dropped by kernel :: [ 15:24:24 ] :: [ PASS ] :: Command 'pkill tcpdump; sleep 2' (Expected 0, got 0) :: [ 15:24:24 ] :: [ BEGIN ] :: Running 'cat udp.packet | egrep 'AH|ESP|IPComp' | head -n5' egrep: warning: egrep is obsolescent; using grep -E 15:24:12.618392 IP 192.168.0.1 > 192.168.0.2: ESP(spi=0x00001000,seq=0x315), length 1440 :: [ 15:24:24 ] :: [ PASS ] :: Command 'cat udp.packet | egrep 'AH|ESP|IPComp' | head -n5' (Expected 0, got 0) :: [ 15:24:24 ] :: [ LOG ] :: ***** sctp ****** :: [ 15:24:24 ] :: [ BEGIN ] :: Running 'tcpdump -i br0 > sctp.packet &' dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on br0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 15:24:25 ] :: [ PASS ] :: Command 'tcpdump -i br0 > sctp.packet &' (Expected 0, got 0) :: [ 15:24:25 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 15:24:27 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:24:27 ] :: [ BEGIN ] :: Running 'ip netns exec hb socat -u -4 sctp-listen:4053 open:sctprecv,creat &' :: [ 15:24:27 ] :: [ PASS ] :: Command 'ip netns exec hb socat -u -4 sctp-listen:4053 open:sctprecv,creat &' (Expected 0, got 0) :: [ 15:24:27 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 15:24:29 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:24:29 ] :: [ BEGIN ] :: Running 'ip netns exec ha socat -u -4 /dev/zero,readbytes=2000 sctp:192.168.0.2:4053' :: [ 15:24:29 ] :: [ PASS ] :: Command 'ip netns exec ha socat -u -4 /dev/zero,readbytes=2000 sctp:192.168.0.2:4053' (Expected 0, got 0) :: [ 15:24:29 ] :: [ BEGIN ] :: Running 'sleep 4' :: [ 15:24:33 ] :: [ PASS ] :: Command 'sleep 4' (Expected 0, got 0) :: [ 15:24:33 ] :: [ BEGIN ] :: sctp should receive 2000 bytes, received 2000 bytes :: actually running 'ls -l sctprecv | grep 2000' -rw-r--r--. 1 root root 2000 Sep 29 15:24 sctprecv :: [ 15:24:33 ] :: [ PASS ] :: sctp should receive 2000 bytes, received 2000 bytes (Expected 0, got 0) :: [ 15:24:33 ] :: [ BEGIN ] :: Running 'pkill tcpdump; sleep 2' 15 packets captured 15 packets received by filter 0 packets dropped by kernel :: [ 15:24:35 ] :: [ PASS ] :: Command 'pkill tcpdump; sleep 2' (Expected 0, got 0) :: [ 15:24:35 ] :: [ BEGIN ] :: Running 'cat sctp.packet | egrep 'AH|ESP|IPComp' | head -n5' egrep: warning: egrep is obsolescent; using grep -E 15:24:29.232607 IP 192.168.0.1 > 192.168.0.2: ESP(spi=0x00001000,seq=0x316), length 84 15:24:29.232682 IP 192.168.0.2 > 192.168.0.1: ESP(spi=0x00001001,seq=0x19a), length 308 15:24:29.232717 IP 192.168.0.1 > 192.168.0.2: ESP(spi=0x00001000,seq=0x317), length 276 15:24:29.232760 IP 192.168.0.2 > 192.168.0.1: ESP(spi=0x00001001,seq=0x19b), length 52 15:24:29.233400 IP 192.168.0.1 > 192.168.0.2: ESP(spi=0x00001000,seq=0x318), length 1476 :: [ 15:24:35 ] :: [ PASS ] :: Command 'cat sctp.packet | egrep 'AH|ESP|IPComp' | head -n5' (Expected 0, got 0) egrep: warning: egrep is obsolescent; using grep -E :: [ 15:24:35 ] :: [ INFO ] :: Sending proc_crypto as proc_crypto Uploading proc_crypto .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 64s :: Assertions: 48 good, 0 bad :: RESULT: PASS (-p esp -e des3_ede -a sha256 -m transport -s '65470') ** -p-esp-e-des3-ede-a-sha256-m-transport-s-65470- PASS Score:0 Uploading resultoutputfile.log .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Cleanup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 15:24:36 ] :: [ BEGIN ] :: Running 'bash /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/common/tools/netns_clean.sh' :: [ 15:24:36 ] :: [ PASS ] :: Command 'bash /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/common/tools/netns_clean.sh' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 1 good, 0 bad :: RESULT: PASS (Cleanup) ** Cleanup PASS Score:0 Uploading resultoutputfile.log .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: TEST PROTOCOL :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Test run ID : 31 Package : ipsec beakerlib RPM : beakerlib-1.29.2-1.fc38.noarch Test name : networking/ipsec/ipsec_basic/ipsec_basic_netns Test started : 2022-09-29 15:23:29 EDT Test finished : 2022-09-29 15:24:36 EDT (still running) Test duration : 67 seconds Distro : Fedora release 38 (Rawhide) Hostname : kvm-04-guest28.hv2.lab.eng.bos.redhat.com Architecture : unknown CPUs : 1 x Intel Xeon Processor (Skylake, IBRS) RAM size : 7944 MB HDD size : 50.87 GB :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Test description :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: IPsec compression: same message size but different content will result in different data size after compression. So we just use a large enough message size(65000) for testing [cipher]: des3_ede: blocksize = 8; min keysize = 24; max keysize = 24 aes: blocksize = 16; min keysize = 16; max keysize = 32 blowfish: blocksize = 8; min keysize = 16; max keysize = 56 twofish: blocksize = 16; min keysize = 16; max keysize = 32 cast6: blocksize = 16; min keysize = 16; max keysize = 32 cast5: blocksize = 8; min keysize = 5; max keysize = 16 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Setup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 15:23:29 ] :: [ PASS ] :: Command 'netperf_install' (Expected 0, got 0) :: [ 15:23:30 ] :: [ PASS ] :: Command 'source /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/ipsec/ipsec_basic/ipsec_basic_netns/ipsec-parameter-setting.sh -p esp -e des3_ede -a sha256 -m transport -s '65470'' (Expected 0, got 0) :: [ 15:23:30 ] :: [ LOG ] :: TEST_VER=4, SPI=1000, IPSEC_MODE=transport, PROTO=proto esp, ALG=enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f :: [ 15:23:30 ] :: [ PASS ] :: Command 'spi1='0x1000'' (Expected 0, got 0) :: [ 15:23:30 ] :: [ PASS ] :: Command 'spi2='0x1001'' (Expected 0, got 0) :: [ 15:23:30 ] :: [ PASS ] :: Command 'source /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/common/tools/netns_1_net.sh' (Expected 0, got 0) :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec ha ip xfrm state add src 192.168.0.1 dst 192.168.0.2 spi 0x1000 proto esp enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f mode transport sel src 192.168.0.1 dst 192.168.0.2' (Expected 0, got 0) :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec ha ip xfrm state add src 192.168.0.2 dst 192.168.0.1 spi 0x1001 proto esp enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f mode transport sel src 192.168.0.2 dst 192.168.0.1' (Expected 0, got 0) :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec ha ip xfrm policy add dir out src 192.168.0.1 dst 192.168.0.2 tmpl src 192.168.0.1 dst 192.168.0.2 proto esp mode transport' (Expected 0, got 0) :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec ha ip xfrm policy add dir in src 192.168.0.2 dst 192.168.0.1 tmpl src 192.168.0.2 dst 192.168.0.1 proto esp mode transport level use' (Expected 0, got 0) :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec hb ip xfrm state add src 192.168.0.2 dst 192.168.0.1 spi 0x1001 proto esp enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f mode transport sel src 192.168.0.2 dst 192.168.0.1' (Expected 0, got 0) :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec hb ip xfrm state add src 192.168.0.1 dst 192.168.0.2 spi 0x1000 proto esp enc des3_ede 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f auth hmac\(sha256\) 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f mode transport sel src 192.168.0.1 dst 192.168.0.2' (Expected 0, got 0) :: [ 15:23:30 ] :: [ PASS ] :: Command 'ip netns exec hb ip xfrm policy add dir out src 192.168.0.2 dst 192.168.0.1 tmpl src 192.168.0.2 dst 192.168.0.1 proto esp mode transport' (Expected 0, got 0) :: [ 15:23:31 ] :: [ PASS ] :: Command 'ip netns exec hb ip xfrm policy add dir in src 192.168.0.1 dst 192.168.0.2 tmpl src 192.168.0.1 dst 192.168.0.2 proto esp mode transport level use' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 2s :: Assertions: 13 good, 0 bad :: RESULT: PASS (Setup) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: -p esp -e des3_ede -a sha256 -m transport -s '65470' :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 15:23:31 ] :: [ PASS ] :: Command 'tcpport=4053' (Expected 0, got 0) :: [ 15:23:31 ] :: [ PASS ] :: Command 'udpport=4053' (Expected 0, got 0) :: [ 15:23:31 ] :: [ PASS ] :: Command 'sctpport=4053' (Expected 0, got 0) :: [ 15:23:31 ] :: [ LOG ] :: ***** icmp ****** :: [ 15:23:31 ] :: [ PASS ] :: Command 'tcpdump -i br0 > icmp.packet &' (Expected 0, got 0) :: [ 15:23:33 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:23:35 ] :: [ PASS ] :: Command 'ip netns exec ha ping -i 0.4 -c 5 -s 10 192.168.0.2' (Expected 0, got 0) :: [ 15:23:37 ] :: [ PASS ] :: Command 'ip netns exec ha ping -i 0.4 -c 5 -s 1414 192.168.0.2' (Expected 0, got 0) :: [ 15:23:38 ] :: [ PASS ] :: Command 'ip netns exec ha ping -i 0.4 -c 5 -s 65470 192.168.0.2' (Expected 0, got 0) :: [ 15:23:40 ] :: [ PASS ] :: Command 'pkill tcpdump; sleep 2' (Expected 0, got 0) :: [ 15:23:41 ] :: [ PASS ] :: Command 'cat icmp.packet | egrep 'AH|ESP|IPComp' | head -n5' (Expected 0, got 0) :: [ 15:23:41 ] :: [ LOG ] :: ***** tcp ****** :: [ 15:23:41 ] :: [ PASS ] :: Command 'tcpdump -i br0 > tcp.packet &' (Expected 0, got 0) :: [ 15:23:43 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:23:43 ] :: [ PASS ] :: Command 'ip netns exec hb socat -u -4 tcp-l:4053 open:tcprecv,creat &' (Expected 0, got 0) :: [ 15:23:45 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:23:45 ] :: [ PASS ] :: Command 'ip netns exec ha socat -u -4 /dev/zero,readbytes=1048576 tcp-connect:192.168.0.2:4053' (Expected 0, got 0) :: [ 15:23:49 ] :: [ PASS ] :: Command 'sleep 4' (Expected 0, got 0) :: [ 15:23:49 ] :: [ PASS ] :: tcp should receive 1048576 bytes, received 1048576 bytes (Expected 0, got 0) :: [ 15:23:51 ] :: [ PASS ] :: Command 'pkill tcpdump; sleep 2' (Expected 0, got 0) :: [ 15:23:51 ] :: [ PASS ] :: Command 'cat tcp.packet | egrep 'AH|ESP|IPComp' | head -n5' (Expected 0, got 0) :: [ 15:23:51 ] :: [ LOG ] :: ***** udp ****** :: [ 15:23:51 ] :: [ PASS ] :: Command 'tcpdump -i br0 > udp.packet &' (Expected 0, got 0) :: [ 15:23:53 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:23:53 ] :: [ PASS ] :: Command 'ip netns exec hb socat -u -4 udp-l:4053 open:udprecv,creat &' (Expected 0, got 0) :: [ 15:23:55 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:23:56 ] :: [ PASS ] :: Command 'ip netns exec ha socat -u -4 /dev/zero,readbytes=1414 udp-sendto:192.168.0.2:4053' (Expected 0, got 0) :: [ 15:24:06 ] :: [ PASS ] :: Command 'sleep 10' (Expected 0, got 0) :: [ 15:24:06 ] :: [ PASS ] :: udp should receive 1414 bytes, received 1414 bytes (Expected 0, got 0) :: [ 15:24:06 ] :: [ PASS ] :: Command 'pkill socat' (Expected 0, got 0) :: [ 15:24:08 ] :: [ PASS ] :: Command 'pkill tcpdump; sleep 2' (Expected 0, got 0) :: [ 15:24:08 ] :: [ PASS ] :: Command 'cat udp.packet | egrep 'AH|ESP|IPComp' | head -n5' (Expected 0, got 0) :: [ 15:24:08 ] :: [ PASS ] :: Command 'tcpdump -i br0 > udp.packet &' (Expected 0, got 0) :: [ 15:24:10 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:24:10 ] :: [ PASS ] :: Command 'ip netns exec hb socat -u -4 udp-l:4053 open:udprecv,creat &' (Expected 0, got 0) :: [ 15:24:12 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:24:12 ] :: [ PASS ] :: Command 'ip netns exec ha socat -u -4 /dev/zero,readbytes=3000 udp-sendto:192.168.0.2:4053' (Expected 0, got 0) :: [ 15:24:22 ] :: [ PASS ] :: Command 'sleep 10' (Expected 0, got 0) :: [ 15:24:22 ] :: [ PASS ] :: udp should receive 3000 bytes, received 3000 bytes (Expected 0, got 0) :: [ 15:24:22 ] :: [ PASS ] :: Command 'pkill socat' (Expected 0, got 0) :: [ 15:24:24 ] :: [ PASS ] :: Command 'pkill tcpdump; sleep 2' (Expected 0, got 0) :: [ 15:24:24 ] :: [ PASS ] :: Command 'cat udp.packet | egrep 'AH|ESP|IPComp' | head -n5' (Expected 0, got 0) :: [ 15:24:24 ] :: [ LOG ] :: ***** sctp ****** :: [ 15:24:25 ] :: [ PASS ] :: Command 'tcpdump -i br0 > sctp.packet &' (Expected 0, got 0) :: [ 15:24:27 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:24:27 ] :: [ PASS ] :: Command 'ip netns exec hb socat -u -4 sctp-listen:4053 open:sctprecv,creat &' (Expected 0, got 0) :: [ 15:24:29 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 15:24:29 ] :: [ PASS ] :: Command 'ip netns exec ha socat -u -4 /dev/zero,readbytes=2000 sctp:192.168.0.2:4053' (Expected 0, got 0) :: [ 15:24:33 ] :: [ PASS ] :: Command 'sleep 4' (Expected 0, got 0) :: [ 15:24:33 ] :: [ PASS ] :: sctp should receive 2000 bytes, received 2000 bytes (Expected 0, got 0) :: [ 15:24:35 ] :: [ PASS ] :: Command 'pkill tcpdump; sleep 2' (Expected 0, got 0) :: [ 15:24:35 ] :: [ PASS ] :: Command 'cat sctp.packet | egrep 'AH|ESP|IPComp' | head -n5' (Expected 0, got 0) :: [ 15:24:35 ] :: [ INFO ] :: Sending proc_crypto as proc_crypto :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 64s :: Assertions: 48 good, 0 bad :: RESULT: PASS (-p esp -e des3_ede -a sha256 -m transport -s '65470') :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Cleanup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 15:24:36 ] :: [ PASS ] :: Command 'bash /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/common/tools/netns_clean.sh' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 1 good, 0 bad :: RESULT: PASS (Cleanup) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: networking/ipsec/ipsec_basic/ipsec_basic_netns :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 15:24:36 ] :: [ LOG ] :: Phases fingerprint: GpTeNtEf :: [ 15:24:36 ] :: [ LOG ] :: Asserts fingerprint: T1cCTj04 Uploading journal.xml .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 67s :: Phases: 3 good, 0 bad :: OVERALL RESULT: PASS (networking/ipsec/ipsec_basic/ipsec_basic_netns)