puppetlabs-firewall icon indicating copy to clipboard operation
puppetlabs-firewall copied to clipboard

Unable to parse calico rules on AlmaLinux 9.0

Open X-Siro opened this issue 3 years ago • 3 comments

Describe the error

Writes errors to the console when applying a directory.

Expected behavior

No errors

Playback actions

Run pappet on kubernetes node under AlmaLinux 9.0 with cni Calico

Environment

  • OS: AlmaLinux 9.0
  • firewall module v3.5.0
  • Calico v3.19.0
  • Iptabes v1.8.7 (nf_tables)

Additional context

Error log:

Warning: Puppet::Type::Firewall::ProviderIptables: Skipping unparsable iptables rule: keys (5) and values ​​(6) count mismatch on line: -A cali-PREROUTING -m comment --comment "cali:mPIOOWmbH3iO0R90" -m mark --mark 0x40000/0x40000 -m rpfilter --validmark --invert -j DROP
Warning: Puppet::Type::Firewall::ProviderIptables: Skipping unparsable iptables rule: keys (5) and values ​​(6) count mismatch on line: -A cali-PREROUTING -m comment --comment "cali:mPIOOWmbH3iO0R90" -m mark --mark 0x40000/0x40000 -m rpfilter --validmark --invert -j DROP
Warning: Puppet::Type::Firewall::ProviderIptables: Skipping unparsable iptables rule: keys (5) and values ​​(6) count mismatch on line: -A cali-PREROUTING -m comment --comment "cali:mPIOOWmbH3iO0R90" -m mark --mark 0x40000/0x40000 -m rpfilter --validmark --invert -j DROP

X-Siro avatar Jul 25 '22 16:07 X-Siro

I can confirm this also happens on RHEL 8.6 with calico. We are still using version 3.4.0 of the module, but I doubt upgrading it will fix the issue.

GertjanBijl avatar Aug 16 '22 15:08 GertjanBijl

I can also confirm this is happening on Ubuntu 18 till 22 LTS versions too. I've tried version 3.4.0, 3.5.0 and 3.6.0 of this module.

Warning: Puppet::Type::Firewall::ProviderIptables: Skipping unparsable iptables rule: keys (5) and values (6) count mismatch on line: -A cali-PREROUTING -m comment --comment "cali:fSSbGND7dgyemWU7" -m mark --mark 0x40000/0x40000 -m rpfilter --validmark --invert -j DROP

jpveldhuizen avatar Oct 23 '22 16:10 jpveldhuizen

We are also running Ubuntu 18 & 20, and have also hit the same issue. We get the same error message as @jpveldhuizen .

I would say this bug affects most sites which use Kubernetes and Ubuntu 18+ or RHEL derivatives.

stefanlasiewski avatar Jun 27 '23 00:06 stefanlasiewski