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

client: cleanup leaked iptables rules #15407

Merged
merged 1 commit into from
Nov 28, 2022
Merged

client: cleanup leaked iptables rules #15407

merged 1 commit into from
Nov 28, 2022

Commits on Nov 28, 2022

  1. client: manually cleanup leaked iptables rules

    This PR adds a secondary path for cleaning up iptables created for an allocation
    when the normal CNI library fails to do so. This typically happens when the state
    of the pause container is unexpected - e.g. deleted out of band from Nomad. Before,
    the iptables rules would be leaked which could lead to unexpected nat routing
    behavior later on (in addition to leaked resources). With this change, we scan
    for the rules created on behalf of the allocation being GC'd and delete them.
    
    Fixes #6385
    shoenig committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    99fb7d6 View commit details
    Browse the repository at this point in the history