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

Fixing the log message to be meaningful #2260

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Conversation

rajeeshckr
Copy link
Contributor

What type of PR is this?
Update the debug log message.

What does this PR do / Why do we need it:
When CNI pod was launching on a non schedulable node, we were seeing this error message.
{"level":"debug","ts":"2023-01-23T03:13:23.608Z","caller":"ipamd/ipamd.go:660","msg":"AWS CNI is terminating, will not try to attach any new IPs or ENIs right now"}.

This was confusing, we had to look in the code to understand this is because of node not schedulable in our case.

Updated the logic to log valid debug message when node is not schedulable.

If an issue # is not available please add repro steps and logs from IPAMD/CNI showing the issue:
{"level":"debug","ts":"2023-01-23T03:13:23.608Z","caller":"ipamd/ipamd.go:660","msg":"AWS CNI is terminating, will not try to attach any new IPs or ENIs right now"}.

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?:
No

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

@rajeeshckr rajeeshckr requested a review from a team as a code owner February 9, 2023 04:57
Copy link
Contributor

@jayanthvn jayanthvn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for the PR.

@jdn5126 jdn5126 merged commit 4298a98 into aws:master Feb 9, 2023
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.

3 participants