question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GetForwardedIps issues on RHEL7

See original GitHub issue

When GetForwardedIps runs _RunIpRoute (effective command: ip route ls table local type local scope host dev eth0 proto 66), the result is 0 or more lines. If there is one or more forwarded ips, they are returned one per line but have "local " prepended to them. This causes ParseForwardedIps to fail.

That may not be the case on other systems, but a simple solution works for all of them. Before returning from GetForwardedIps, simply do a search & replace: result = re.sub(r'local\s((\d{1,3}\.){3}\d{1,3}(/\d{1,2})?)\s?\n', r'\1\n',result)

then return as normal. If there is a "local " tag, it gets removed, if not, nothing changes. This helped me stop thousands of warnings from filling up /var/log/messages with: google-ip-forwarding: WARNING Could not parse IP address: “local”.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
brendan-riuscommented, Jul 15, 2019

I have the same error message in the syslog of one of my GKE nodes running 1.13.7-gke.8, which I think is cos-u-73-11647-182-0 according to https://cloud.google.com/kubernetes-engine/docs/release-notes

Just to be sure, is this error just polluting syslogs, or can it also cause networking problems? I have noticed some timeouts on my cluster when trying to connect to my redis broker. Is it possible it might be related?

0reactions
homelessnessbocommented, Dec 9, 2019

@brendan-rius have you discovered the reason of your timeouts back then and is it correlated with this log pollution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 5. Troubleshooting Red Hat Enterprise Linux 7
The following are issues known to occur when upgrading from RHEL 6 to RHEL 7: In-place upgrade from a RHEL 6 system to...
Read more >
Issue with RHEL7 and disabling NetworkManager - Server Fault
Everything works properly, I am assigned the custom FQDN by our DNS servers (e.g. hostname.ad.company.tld ) and when the DHCP lease is up,...
Read more >
Top RHEL Issues/Workarounds/Best Practices for NFSv3/v4.0
RHEL 5.x. Issue 1: RHEL5.8: Mount with sec=krb5 displays warning as ' rpc.idmapd/rpc.gssd appears not to be running '.
Read more >
Redhat Enterprise Linux 7 boot issues- grub prompt and steps ...
This video is demonstrate how to troubleshoot grub prompt issue in Redhat Linux Enterprise server 7. A step by step procedure to ...
Read more >
Potential issues running with RHEL 7.4 or CentOS 7.4
Problem: We have had reports of customers experiencing the following issues when running with RHEL 7.4 or CentOS 7.4, or earlier 7.x...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found