Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parsing random_fully in ip6tables #996

Merged
merged 1 commit into from
Jul 6, 2021

Conversation

scoiatael
Copy link
Contributor

Looks like 9a4bc6a added relevant params only to iptables, not ip6tables.

This results in warnings like

Warning: Puppet::Type::Firewall::ProviderIp6tables: Skipping unparsable iptables rule: keys (3) and values (4) count mismatch on line: -A KUBE-POSTROUTING -m comment --comment "kubernetes service traffic requiring SNAT" -j MASQUERADE --random-fully

Also, I'm not quite sure whether boolean params should be converted to ruby types at some point.
If that's the case, this test should be fixed - but I have no idea how.

@scoiatael scoiatael requested a review from a team as a code owner July 1, 2021 13:27
@scoiatael
Copy link
Contributor Author

Hmm, failing specs look like not related to my changes:

rspec ./spec/acceptance/firewall_attributes_exceptions_spec.rb:342 # firewall basics mac_source when 0A:1B:3C:4D:5E:6F

looks like case-sensitivity issue - where Puppet expects all-uppercase and iptables-save generates lower-case.

@adrianiurca
Copy link
Contributor

Hi @scoiatael, can you rebase this PR in order to proceed to merge it? We have succeeded to solve the CI failings.

adrianiurca
adrianiurca previously approved these changes Jul 6, 2021
Looks like
puppetlabs@9a4bc6a
added relevant params only to iptables, not ip6tables.

This results in warnings like
```
Warning: Puppet::Type::Firewall::ProviderIp6tables: Skipping unparsable iptables rule: keys (3) and values (4) count mismatch on line: -A KUBE-POSTROUTING -m comment --comment "kubernetes service traffic requiring SNAT" -j MASQUERADE --random-fully
```
@CLAassistant
Copy link

CLAassistant commented Jul 6, 2021

CLA assistant check
All committers have signed the CLA.

@adrianiurca
Copy link
Contributor

Hey @scoiatael, thank you for your contribution!

kind regards,
@adrianiurca

@adrianiurca adrianiurca merged commit e56ca4c into puppetlabs:main Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants