[26-06-02 09:25:26] START service_tcp scenario: cases/service_tcp.sh header : verify ceci service tcp forwarding and restart topology: client wget on sw1; sw1 Ceci TCP service -- output --> sw2 backend 192.56.0.2:18083 topology: # Topology: topology: # - Diagram: topology: # client wget on sw1 topology: # | topology: # sw1 Ceci TCP service -- output --> sw2 backend 192.56.0.2:18083 topology: # - Docker mgmt network: 172.246.0.0/24 topology: # sw1=172.246.0.241 (ceci service), sw2=172.246.0.242 (service backends). topology: # - OpenLAN service network "example": 192.56.0.0/24 topology: # sw1=192.56.0.1, sw2=192.56.0.2, with sw2 output to sw1. topology: # Validation: topology: # sw1 wget -> sw1 ceci(service tcp) -> sw2 local http server. Started switch pause container: tests-sw-service-tcp1-pause Started switch frr container: tests-sw-service-tcp1-frr Started switch ipsec container: tests-sw-service-tcp1-ipsec Started switch container: tests-sw-service-tcp1 [26-06-02 09:25:27][ASSERT#0001][expect] at cases/service_tcp.sh:50 fn=setup_sw1 retry=30 cmd="docker logs -f tests-sw-service-tcp1" expect="Http.Start" 2026/06/02 09:25:27 INFO|root|Wait: ... 2026/06/02 09:25:27 INFO|root|UdpServer.Listen: udp://0.0.0.0:10002 2026/06/02 09:25:27 INFO|root|TcpServer.Listen: tcp://0.0.0.0:10002 2026/06/02 09:25:27 INFO|root|Http.Start 0.0.0.0:10000 [26-06-02 09:25:28][ASSERT#0001][OK] cost=1.030s [26-06-02 09:25:28][ASSERT#0002][cmd] at cases/service_tcp.sh:52 fn=setup_sw1 cmd="docker exec tests-sw-service-tcp1 openlan network --name example add --address 192.56.0.1/24" [26-06-02 09:25:28][ASSERT#0002][OK] cost=0.234s [26-06-02 09:25:28][ASSERT#0003][cmd] at cases/service_tcp.sh:53 fn=setup_sw1 cmd="docker exec tests-sw-service-tcp1 openlan user add --name t1@example --password 123456" # total 1 username password role lease t1@example 123456 guest 2027-06-02T09 [26-06-02 09:25:28][ASSERT#0003][OK] cost=0.058s [26-06-02 09:25:28][ASSERT#0004][cmd] at cases/service_tcp.sh:54 fn=setup_sw1 cmd="docker exec tests-sw-service-tcp1 openlan ceci service add --listen 127.0.0.1:13082 --protocol tcp --balance roundrobin" [26-06-02 09:25:28][ASSERT#0004][OK] cost=0.056s [26-06-02 09:25:28][ASSERT#0005][cmd] at cases/service_tcp.sh:55 fn=setup_sw1 cmd="docker exec tests-sw-service-tcp1 openlan ceci service backend add --listen 127.0.0.1:13082 --backend 192.56.0.2:18083" [26-06-02 09:25:28][ASSERT#0005][OK] cost=0.063s [26-06-02 09:25:28][ASSERT#0006][match] at cases/service_tcp.sh:56 fn=setup_sw1 retry=10 cmd="docker exec tests-sw-service-tcp1 openlan ceci service ls" expect="listen: 127.0.0.1:13082" - listen: 127.0.0.1:13082 mode: service service: backends: [26-06-02 09:25:28][ASSERT#0006][OK] cost=0.066s [26-06-02 09:25:28][ASSERT#0007][match] at cases/service_tcp.sh:57 fn=setup_sw1 retry=10 cmd="docker exec tests-sw-service-tcp1 openlan ceci service ls" expect="protocol: tcp" backends: - 192.56.0.2:18083 balance: roundrobin protocol: tcp status: running [26-06-02 09:25:28][ASSERT#0007][OK] cost=0.062s Started switch pause container: tests-sw-service-tcp2-pause Started switch frr container: tests-sw-service-tcp2-frr Started switch ipsec container: tests-sw-service-tcp2-ipsec Started switch container: tests-sw-service-tcp2 [26-06-02 09:25:29][ASSERT#0008][expect] at cases/service_tcp.sh:76 fn=setup_sw2 retry=30 cmd="docker logs -f tests-sw-service-tcp2" expect="Http.Start" 2026/06/02 09:25:30 INFO|root|UdpServer.Listen: udp://0.0.0.0:10002 2026/06/02 09:25:30 INFO|root|Http.LoadToken: file:/etc/openlan/switch/token does not exist 2026/06/02 09:25:30 INFO|root|TcpServer.Listen: tcp://0.0.0.0:10002 2026/06/02 09:25:30 INFO|root|Http.Start 0.0.0.0:10000 [26-06-02 09:25:30][ASSERT#0008][OK] cost=1.032s [26-06-02 09:25:30][ASSERT#0009][cmd] at cases/service_tcp.sh:78 fn=setup_sw2 cmd="docker exec tests-sw-service-tcp2 openlan network --name example add --address 192.56.0.2/24" [26-06-02 09:25:30][ASSERT#0009][OK] cost=0.246s [26-06-02 09:25:30][ASSERT#0010][cmd] at cases/service_tcp.sh:79 fn=setup_sw2 cmd="docker exec tests-sw-service-tcp2 openlan network --name example output add --remote 172.246.0.241 --protocol tcp --secret t1@example:123456 --crypt aes-128:ea64d5b0c96c" [26-06-02 09:25:30][ASSERT#0010][OK] cost=0.060s [26-06-02 09:25:30][ASSERT#0011][match] at cases/service_tcp.sh:80 fn=setup_sw2 retry=20 cmd="docker exec tests-sw-service-tcp2 openlan network --name example output ls" expect="state: authenticated" protocol: tcp remote: 172.246.0.241 secret: t1@example:123456 state: authenticated [26-06-02 09:25:33][ASSERT#0011][OK] cost=2.194s [26-06-02 09:25:33][ASSERT#0012][cmd] at cases/service_tcp.sh:84 fn=setup_target_http cmd="docker exec tests-sw-service-tcp2 sh -c mkdir -p /tmp/ceci-service-tcp && echo 'ceci-service-tcp-ok' > /tmp/ceci-service-tcp/index.html" [26-06-02 09:25:33][ASSERT#0012][OK] cost=0.067s [26-06-02 09:25:33][ASSERT#0013][cmd] at cases/service_tcp.sh:85 fn=setup_target_http cmd="docker exec tests-sw-service-tcp2 sh -c nohup python3 -m http.server 18083 --bind 0.0.0.0 --directory /tmp/ceci-service-tcp >/tmp/ceci-service-tcp.log 2>&1 &" [26-06-02 09:25:33][ASSERT#0013][OK] cost=0.062s [26-06-02 09:25:33][ASSERT#0014][match] at cases/service_tcp.sh:86 fn=setup_target_http retry=10 cmd="docker exec tests-sw-service-tcp2 wget -q -O- http://192.56.0.2:18083/" expect="ceci-service-tcp-ok" ceci-service-tcp-ok [26-06-02 09:25:33][ASSERT#0014][OK] cost=0.059s [26-06-02 09:25:33][ASSERT#0015][match] at cases/service_tcp.sh:90 fn=test_ceci_service retry=20 cmd="docker exec tests-sw-service-tcp1 ping -c 3 192.56.0.2" expect="bytes from" PING 192.56.0.2 (192.56.0.2) 56(84) bytes of data. 64 bytes from 192.56.0.2: icmp_seq=1 ttl=64 time=0.424 ms 64 bytes from 192.56.0.2: icmp_seq=2 ttl=64 time=1.63 ms 64 bytes from 192.56.0.2: icmp_seq=3 ttl=64 time=1.44 ms --- 192.56.0.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2061ms [26-06-02 09:25:38][ASSERT#0015][OK] cost=5.561s [26-06-02 09:25:38][ASSERT#0016][match] at cases/service_tcp.sh:91 fn=test_ceci_service retry=20 cmd="docker exec tests-sw-service-tcp1 wget -q -O- http://127.0.0.1:13082/" expect="ceci-service-tcp-ok" ceci-service-tcp-ok [26-06-02 09:25:38][ASSERT#0016][OK] cost=0.080s [26-06-02 09:25:39][ASSERT#0017][cmd] at cases/service_tcp.sh:95 fn=restart_ceci_service cmd="docker exec tests-sw-service-tcp1 openlan ceci service restart --listen 127.0.0.1:13082" [26-06-02 09:25:39][ASSERT#0017][OK] cost=0.079s [26-06-02 09:25:39][ASSERT#0018][match] at cases/service_tcp.sh:96 fn=restart_ceci_service retry=20 cmd="docker exec tests-sw-service-tcp1 openlan ceci service ls" expect="listen: 127.0.0.1:13082" - listen: 127.0.0.1:13082 mode: service service: backends: [26-06-02 09:25:39][ASSERT#0018][OK] cost=0.070s [26-06-02 09:25:39][ASSERT#0019][match] at cases/service_tcp.sh:90 fn=test_ceci_service retry=20 cmd="docker exec tests-sw-service-tcp1 ping -c 3 192.56.0.2" expect="bytes from" PING 192.56.0.2 (192.56.0.2) 56(84) bytes of data. 64 bytes from 192.56.0.2: icmp_seq=1 ttl=64 time=0.564 ms 64 bytes from 192.56.0.2: icmp_seq=2 ttl=64 time=1.47 ms 64 bytes from 192.56.0.2: icmp_seq=3 ttl=64 time=1.10 ms --- 192.56.0.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2045ms [26-06-02 09:25:41][ASSERT#0019][OK] cost=2.112s [26-06-02 09:25:41][ASSERT#0020][match] at cases/service_tcp.sh:91 fn=test_ceci_service retry=20 cmd="docker exec tests-sw-service-tcp1 wget -q -O- http://127.0.0.1:13082/" expect="ceci-service-tcp-ok" ceci-service-tcp-ok [26-06-02 09:25:41][ASSERT#0020][OK] cost=0.069s [26-06-02 09:25:41][ASSERT#0021][cmd] at cases/service_tcp.sh:100 fn=remove_ceci_service cmd="docker exec tests-sw-service-tcp1 openlan ceci service rm --listen 127.0.0.1:13082" [26-06-02 09:25:41][ASSERT#0021][OK] cost=0.074s [26-06-02 09:25:41][ASSERT#0022][unmatch] at cases/service_tcp.sh:101 fn=remove_ceci_service retry=10 cmd="docker exec tests-sw-service-tcp1 openlan ceci service ls" unexpected="127.0.0.1:13082" Last output: [] [26-06-02 09:25:52][ASSERT#0022][OK] cost=10.711s [26-06-02 09:25:52][ASSERT#0023][unmatch] at cases/service_tcp.sh:102 fn=remove_ceci_service retry=15 cmd="docker exec tests-sw-service-tcp1 wget -q -O- http://127.0.0.1:13082/" unexpected="ceci-service-tcp-ok" Last output: [26-06-02 09:26:08][ASSERT#0023][OK] cost=15.960s [26-06-02 09:26:08] END service_tcp status=PASS cost=42.373s