-
Notifications
You must be signed in to change notification settings - Fork 250
[NPM] fix: Update Iptables to Legacy #3782
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
[NPM] fix: Update Iptables to Legacy #3782
Conversation
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 iptables configuration to use legacy mode and upgrades the base Ubuntu image from 20.04 to 24.04. The changes address compatibility issues by switching from standard iptables commands to their legacy variants and updating dependencies accordingly.
- Updates iptables constants to use legacy variants (iptables-legacy, iptables-legacy-save, etc.)
- Upgrades Docker base image from Ubuntu 20.04 to 24.04 with specific package versions
- Updates development configuration and dependency versions
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
npm/util/const.go | Updates iptables command constants to use legacy variants |
npm/linux.Dockerfile | Upgrades base image to Ubuntu 24.04 and pins specific package versions |
hack/aks/Makefile | Changes IP tag from test to non-production environment |
go.mod | Updates mapstructure dependency to v2.3.0 |
Comments suppressed due to low confidence (1)
npm/util/const.go:39
- The constant name 'IptablesRestoreNft' suggests NFT functionality, but the value 'iptables-legacy-nft-restore' mixes legacy and NFT concepts. Consider renaming to 'IptablesRestoreLegacyNft' to clarify this is the legacy version of the NFT restore command.
IptablesRestoreNft string = "iptables-legacy-nft-restore"
/azp run Azure Container Networking PR |
/azp run NPM Conformance Tests |
/azp run NPM Scale Test |
Azure Pipelines successfully started running 1 pipeline(s). |
2 similar comments
Azure Pipelines successfully started running 1 pipeline(s). |
Azure Pipelines successfully started running 1 pipeline(s). |
* added legacy * typo * updated tests * updated for all tests
Reason for Change:
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: