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

daemon: Improve error msg for endpoint IP reallocation #10494

Merged
merged 1 commit into from Mar 6, 2020

Conversation

brb
Copy link
Member

@brb brb commented Mar 6, 2020

Previously, when restoring endpoints, if the reallocation of an IP addr of an endpoint failed, the error log message didn't include that IP. E.g.:

level=warning msg="Unable to restore endpoint, ignoring" endpointID=2930
error="Failed to re-allocate IP of endpoint: unable to reallocate IPv6
address: provided IP is not in the valid range. The range of valid IPs
is f00d::a0c:0:0:0/96" k8sPodName=default/testds-l87pp subsys=daemon

This commit includes IP addr in the error msg for a better troubleshooting.


This change is Reviewable

Previously, when restoring endpoints, if the reallocation of an IP addr
of an endpoint failed, the error log message didn't include that IP.
E.g.:

    level=warning msg="Unable to restore endpoint, ignoring" endpointID=2930
    error="Failed to re-allocate IP of endpoint: unable to reallocate IPv6
    address: provided IP is not in the valid range. The range of valid IPs
    is f00d::a0c:0:0:0/96" k8sPodName=default/testds-l87pp subsys=daemon

This commit includes IP addr in the error msg for a better troubleshooting.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
@brb brb added pending-review area/daemon Impacts operation of the Cilium daemon. release-note/misc This PR makes changes that have no direct user impact. labels Mar 6, 2020
@brb brb requested a review from a team as a code owner March 6, 2020 08:18
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 Mar 6, 2020
@brb
Copy link
Member Author

brb commented Mar 6, 2020

test-me-please

@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 45.616% when pulling b7412d3 on pr/brb/fix-realloc-ip-err-msg into f85d314 on master.

@brb
Copy link
Member Author

brb commented Mar 6, 2020

test-me-please

@joestringer joestringer merged commit a9cb68e into master Mar 6, 2020
1.8.0 automation moved this from In progress to Merged Mar 6, 2020
@joestringer joestringer deleted the pr/brb/fix-realloc-ip-err-msg branch March 6, 2020 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/daemon Impacts operation of the Cilium daemon. release-note/misc This PR makes changes that have no direct user impact.
Projects
No open projects
1.8.0
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

4 participants