-
Notifications
You must be signed in to change notification settings - Fork 250
[Forwardport] [NPM] fix: Update Iptables to Legacy (#3782) #3842
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
[Forwardport] [NPM] fix: Update Iptables to Legacy (#3782) #3842
Conversation
* added legacy * typo * updated tests * updated for all tests
/azp run Azure Container Networking PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the Azure Network Policy Manager (NPM) to use legacy iptables commands instead of default iptables, addressing crashloopbackoffs that occur when running on CBL-Mariner/Linux nodepools after the Ubuntu base image was updated from 20.04 to 24.04.
- Updates iptables constant definitions to use legacy variants (
iptables-legacy
,iptables-legacy-save
,iptables-legacy-restore
) - Updates all test cases to reflect the new legacy iptables command usage
- Ensures compatibility with the behavioral changes in Ubuntu 24.04's iptables implementation
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
npm/util/const.go | Updates iptables constant definitions to use legacy variants |
npm/pkg/dataplane/policies/testutils_linux.go | Updates test utility commands to use legacy iptables |
npm/pkg/dataplane/policies/chain-management_linux_test.go | Updates all test cases to expect legacy iptables commands |
/azp run NPM Conformance Tests |
/azp run NPM Scale Test |
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 1 pipeline(s). |
Azure Pipelines successfully started running 1 pipeline(s). |
Reason for Change:
Forwardport the bug fix made in #3782 to master branch.
Updates iptables to
legacy
fix crashloopbackoffs inCBL-Mariner/Linux
nodepools.Issue Fixed:
NPM's Ubuntu base image was recently updated to
24.04
from20.04
as the older version was EOL (see: #3743). There was a behavioral change between the 2 Ubuntu versions that required NPM to specifylegacy
for its Iptables.Error: failed to create dataplane with error Operation [BootupDataplane] failed with error code [999], full cmd [], full error failed to reset policy dataplane: Operation [BootupPolicyManager] failed with error code [999], full cmd [], full error failed to bootup policy manager: failed to detect iptables version: unable to locate which iptables version kube proxy is using
Requirements:
Notes: