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

make sure we clean up the ISTIO_OUTPUT chain #52881

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

dhawton
Copy link
Member

@dhawton dhawton commented Aug 27, 2024

Please provide a description of this PR:

Running pilot-agent istio-clean-iptables would leave the ISTIO_OUTPUT chain in existance that was added by #50915.

Tests covered by #52860

Fixes #52835

cc: @howardjohn

Signed-off-by: Daniel Hawton <daniel@hawton.org>
@dhawton dhawton requested a review from a team as a code owner August 27, 2024 15:17
@istio-policy-bot
Copy link

😊 Welcome @dhawton! This is either your first contribution to the Istio istio repo, or it's been
a while since you've been here.

You can learn more about the Istio working groups, Code of Conduct, and contribution guidelines
by referring to Contributing to Istio.

Thanks for contributing!

Courtesy of your friendly welcome wagon.

@istio-testing istio-testing added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 27, 2024
Signed-off-by: Daniel Hawton <daniel@hawton.org>
@@ -81,7 +81,7 @@ func removeOldChains(cfg *config.Config, ext dep.Dependencies, iptV *dep.Iptable
}

// Must be last, the others refer to it
chains = []string{constants.ISTIOREDIRECT, constants.ISTIOINREDIRECT}
chains = []string{constants.ISTIOREDIRECT, constants.ISTIOINREDIRECT, constants.ISTIOOUTPUT}
Copy link
Contributor

@bleggett bleggett Aug 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this is one of those cases where we shouldn't be duplicating basic iptables state across separate install and cleanup binaries, really.

There is no real benefit to it and it's just another thing to keep in sync.

This is one other thing #50328 helps with.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. I saw that PR but seems like more discussions are occurring so this should resolve the issue for now and we can iterate a better procedure.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi I have made #52918 (which relies the work done in #50328) to have VMs use the new istio-iptables --cleanup-option.

@dhawton
Copy link
Member Author

dhawton commented Aug 27, 2024

/retest

Signed-off-by: Daniel Hawton <daniel@hawton.org>
@istio-testing istio-testing added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 27, 2024
@istio-testing istio-testing merged commit f2d018f into istio:master Aug 27, 2024
27 checks passed
@dhawton
Copy link
Member Author

dhawton commented Aug 27, 2024

/cherry-pick release-1.23

@istio-testing
Copy link
Collaborator

@dhawton: new pull request created: #52882

In response to this:

/cherry-pick release-1.23

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@zhaohuabing

This comment was marked as resolved.

@deepakdeore2004
Copy link

@dhawton Could this be cherry-picked into 1.22 as well?

my bad that i thought i used 1.22 rpm file but it was 1.23, this issue isnt present in 1.22

luksa pushed a commit to luksa/istio that referenced this pull request Oct 14, 2024
* upstream/master:
  waypoint: add telemetry metrics configuration support and fix Telemetry selection (istio#52748)
  Automator: update ztunnel@master in istio/istio@master (istio#52892)
  validation: fix error casing on workload group (istio#52891)
  This ~sort of worked because of globals munging, (istio#52890)
  hbone: log transport errors (istio#52886)
  ambient: initial status writing (istio#51945)
  Install: Makes Waypoint Affinity Configurable (istio#52885)
  pilot: fix to ensure we only use mesh config after it is initialized (istio#52820)
  ambient: enhance DNS capture (istio#52867)
  add omit empty for labels in ads connections (istio#52884)
  Idempotency for istio-iptables apply flow (istio#50328)
  make sure we clean up the ISTIO_OUTPUT chain (istio#52881)
  Automator: update proxy@master in istio/istio@master (istio#52880)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/networking size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pilot agent on a VM doesn't clean all iptables chains, so will exit if re-started
7 participants