Skip to content

Demote verbose IP logs to debug#3607

Open
ayberk wants to merge 1 commit intoaws:masterfrom
ayberk:log-lines
Open

Demote verbose IP logs to debug#3607
ayberk wants to merge 1 commit intoaws:masterfrom
ayberk:log-lines

Conversation

@ayberk
Copy link
Copy Markdown

@ayberk ayberk commented Feb 26, 2026

What type of PR is this?
cleanup

What does this PR do / Why do we need it?:
Reduces log noise by changing level from info to debug for routine IP address add and reconciliation messages in the datastore and IPAMD paths.

This is with no incidents and under routine operation. Changed log lines and why:

  • "Trying to add %s" -> pre-action intent log, outcome already logged on failure and on success
  • "Reconcile and skip primary IP" -> logs an immutable invariant, the primary IP is always skipped
  • "Adding %s to DS for %s" -> function-entry trace, outcome already logged by downstream branches
  • "IP already in DS" -> confirms nothing changed, the expected steady-state outcome on 99.9% of calls

Overall these logs don't increase visibility and serve little purpose in production. Some of these generate Nodes × Secondary IPs × 2 lines every minute.

Testing done on this change:
N/A

Will this PR introduce any new dependencies?:
No.

Will this break upgrades or downgrades? Has updating a running cluster been tested?:
No.

Does this change require updates to the CNI daemonset config files to work?:
No.

Does this PR introduce any user-facing change?:

Reduced log noise by changing level for routine IP address add and reconciliation messages

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Reduce log noise by changing Infof to Debugf for
routine IP address add and reconciliation messages
in the datastore and IPAMD paths. These logs create
unnecessary noise during normal operation.
@ayberk ayberk requested a review from a team as a code owner February 26, 2026 22:27
@jaydeokar jaydeokar requested a review from Copilot March 11, 2026 21:31
Copy link
Copy Markdown

Copilot AI left a 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 reduces production log noise in the IPAMD reconciliation and datastore paths by demoting routine “steady-state” IP reconciliation messages from info to debug.

Changes:

  • Demoted “skip primary IP” and “trying to add IP” reconciliation logs in verifyAndAddIPsToDatastore to Debugf.
  • Demoted datastore “adding CIDR” entry log and “IP already in DS” steady-state log to Debugf.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pkg/ipamd/ipamd.go Lowers verbosity for routine IP reconciliation logs during ENI IP pool reconciliation.
pkg/ipamd/datastore/data_store.go Lowers verbosity for datastore add/duplicate IP logs while keeping success/failure logs at higher levels.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

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.

2 participants