ci: restart veth-config on failure (#10421)

For improved resilience, any failure during the startup of `veth-config`
should restart the container and try again to attach it.
This commit is contained in:
Thomas Eizinger
2025-09-23 01:23:38 +00:00
committed by GitHub
parent 81ddf22aa0
commit 1581042d10

View File

@@ -416,6 +416,7 @@ services:
pid: host
network_mode: host
privileged: true
restart: on-failure
command:
- sh
- -c
@@ -427,7 +428,8 @@ services:
# Safe to attach to all veth interfaces on the host
for dev in $$VETHS; do
echo "Attaching XDP to: $$dev"
ip link set dev $$dev xdpdrv obj /xdp/xdp_pass.o sec xdp 2>/dev/null
ip link set dev $$dev xdpdrv off # Clear any existing XDP program.
ip link set dev $$dev xdpdrv obj /xdp/xdp_pass.o sec xdp
done
echo "Done configuring $$(echo "$$VETHS" | wc -w) veth interfaces"