Skip to content

fix: make ConfigureInterfaceSysctls tolerate missing sysctl entries#182

Merged
privateip merged 1 commit into
mainfrom
fix/issue-161
Jun 30, 2026
Merged

fix: make ConfigureInterfaceSysctls tolerate missing sysctl entries#182
privateip merged 1 commit into
mainfrom
fix/issue-161

Conversation

@privateip

Copy link
Copy Markdown
Contributor

ConfigureInterfaceSysctls previously returned an error whenever any sysctl write failed, which caused VRF creation to fail entirely on nodes running minimal or container kernels where proxy_arp and proxy_ndp entries may not exist. This change makes it match ConfigureTapSysctls behavior by silently skipping missing entries and logging a warning instead.

  • Skip sysctl write errors instead of returning them, matching ConfigureTapSysctls behavior
  • Log failed sysctl sets at WARN level for observability without failing the caller
  • Add package-level logger variable to enable testable log verification
  • Add unit tests for nonexistent interface scenarios and settings completeness

fixes #161

ConfigureInterfaceSysctls previously returned an error whenever any
sysctl write failed, which caused VRF creation to fail entirely on nodes
running minimal or container kernels where proxy_arp and proxy_ndp
entries may not exist. This change makes it match ConfigureTapSysctls
behavior by silently skipping missing entries and logging a warning
instead.

- Skip sysctl write errors instead of returning them, matching ConfigureTapSysctls behavior
- Log failed sysctl sets at WARN level for observability without failing the caller
- Add package-level logger variable to enable testable log verification
- Add unit tests for nonexistent interface scenarios and settings completeness

fixes #161
@privateip privateip requested a review from a team as a code owner June 30, 2026 21:47
@privateip privateip merged commit 7183e49 into main Jun 30, 2026
5 checks passed
@privateip privateip deleted the fix/issue-161 branch June 30, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

P3: ConfigureInterfaceSysctls fails hard on missing sysctl entries

2 participants