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

ipam: lower loglevel from error to warn if eni link list can't be listed #32602

Merged
merged 1 commit into from
May 28, 2024

Conversation

mhofstetter
Copy link
Member

@mhofstetter mhofstetter commented May 17, 2024

Currently, failing attempts to obtain the eni link list while waiting for net link devices are logged as error.

This leads to CI flakes due to the check check-log-errors in our test suite.

❌ Found 1 logs in cilium-cilium-9121495685-1.us-west-1.eksctl.io/kube-system/cilium-vkddg (cilium-agent) matching list of errors that must be investigated:
time="2024-05-17T01:39:54Z" level=error msg="failed to obtain eni link list" error="interrupted system call" subsys=ipam (1 occurrences)

(https://github.com/cilium/cilium/actions/runs/9121495685/job/25080745128)

Recent changes included this failure into the existing retry loop. Therefore it would be sufficient (and better (not only for CI but also the users), as this failure is kind of expected in some cases) to log this failure as warning (instead of an error). Exceeding the retries would result in an error anyway.

Therefore, this commit lowers the loglevel from error to warn and improves the log message by indicating the retry.

Fixes: #32099

Currently, failing attempts to obtain the eni link list while waiting for
net link devices are logged as error.

This leads to CI flakes due to the check `check-log-errors` in our test suite.

```
❌ Found 1 logs in cilium-cilium-9121495685-1.us-west-1.eksctl.io/kube-system/cilium-vkddg (cilium-agent) matching list of errors that must be investigated:
time="2024-05-17T01:39:54Z" level=error msg="failed to obtain eni link list" error="interrupted system call" subsys=ipam (1 occurrences)
```

Recent changes included this failure into the existing retry loop. Therefore it would
be sufficient to log this failure as warning (instead of an error). Exceeding the
retries would result in an error anyway.

Therefore, this commit lowers the loglevel from `error` to `warn` and improves
the log message by indicating the retry.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter added kind/enhancement This would improve or streamline existing functionality. area/eni Impacts ENI based IPAM. release-note/misc This PR makes changes that have no direct user impact. labels May 17, 2024
@mhofstetter
Copy link
Member Author

/test

@mhofstetter mhofstetter marked this pull request as ready for review May 17, 2024 09:35
@mhofstetter mhofstetter requested a review from a team as a code owner May 17, 2024 09:35
@mhofstetter mhofstetter requested a review from doniacld May 17, 2024 09:35
Copy link
Contributor

@doniacld doniacld left a comment

Choose a reason for hiding this comment

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

LGTM

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 28, 2024
@tklauser tklauser added this pull request to the merge queue May 28, 2024
Merged via the queue into cilium:main with commit 9c1ef94 May 28, 2024
66 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/ipam-eni-log-warn branch May 28, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/eni Impacts ENI based IPAM. kind/enhancement This would improve or streamline existing functionality. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants