Closed yboaron closed 3 months ago
🤖 Created branch: z_pr3023/yboaron/iptables_list 🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.
🤖 Closed branches: [z_pr3023/yboaron/iptables_list]
I noticed [1] warning in route-agent pod logs, the cause of this warning seems to be the processing of an unnecessary line ('-N') returned by iptables.List.
This PR updates iptables List to ignore '-N <chain_name' line.
[1] 2024-05-29T14:54:28.041Z WRN ..etfilter/adapter.go:120 Packetfilter Unable to delete rule "packetfilter.Rule{Action: Jump}" from table "Route", chain "SUBMARINER-POSTROUTING": error deleting rule "-j " from table "mangle", chain "SUBMARINER-POSTROUTING": running [/usr/sbin/iptables -t mangle -D SUBMARINER-POSTROUTING -j --wait 5]: exit status 2: iptables v1.8.9 (nf_tables): Invalid target name (too short) Try `iptables -h' or 'iptables --help' for more information.