Fix nats firewall test to check nftables instead of iptables#412
Merged
Fix nats firewall test to check nftables instead of iptables#412
Conversation
The ipv6 test was still querying ip6tables for cgroup-based rules, but the firewall now uses nftables with UID-based matching. Updates the assertions and AfterEach cleanup accordingly. ai-assisted=yes [TNZ-60576] Signed-off-by: Chris Selzo <chris.selzo@broadcom.com>
We no longer us the iptables helper on the stemcell ai-assisted=yes [TNZ-60576] Signed-off-by: Aram Price <aram.price@broadcom.com>
aramprice
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The ipv6 nats firewall integration test was still querying
ip6tablesforcgroup-based rules, but the firewall now uses nftables with UID-based matching.
This has been failing consistently since b791d6c changed the Mbus URL from
mbus://tonats://, which activated the nftables code path for ipv6.nft list chain inet bosh_agent nats_accessinstead ofip6tables -t mangle -Lip6tables -Dwith wrong port 8080 and nonexistent cgroup rules)CI Failure
build 1092 — 47 Passed, 1 Failed
The AfterEach also failed trying to delete the nonexistent iptables rules: