• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cilium / cilium / 12553
39%

Build:
DEFAULT BRANCH: master
Ran 10 Jan 2020 07:15PM UTC
Jobs 1
Files 447
Run time 33s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jan 2020 06:53PM UTC coverage: 45.895% (+0.02%) from 45.871%
12553

push

travis-ci-com

borkmann
cilium, daemon: fix device detection for default route

I noticed on one of my test machines that the agent refuses to start up
when IPv6 and NodePort gets enabled:

  [...]
  level=info msg=" - !:pod-template-generation" subsys=labels-filter
  level=info msg=" - !:pod-template-hash" subsys=labels-filter
  level=info msg=" - !:controller-revision-hash" subsys=labels-filter
  level=info msg=" - !:annotation.*" subsys=labels-filter
  level=info msg=" - !:etcd_node" subsys=labels-filter
  level=info msg="Auto-enabling host reachable services for UDP and TCP as required by BPF NodePort." subsys=daemon
  level=fatal msg="BPF NodePort's external facing device could not be determined. Use --device to specify." error="Found (2) default routes" subsys=daemon
  #

Turns out in case of IPv6 the machine had the same route but different
MTU metric:

  # ip -6 r | grep default
  default via fe80::9a9b:cbff:fe05:1eae dev eno1 proto ra metric 100 mtu 1492 pref medium
  default via fe80::9a9b:cbff:fe05:1eae dev eno1 proto ra metric 1024 pref medium
  # ip -4 r | grep default
  default via 192.168.178.1 dev eno1 proto dhcp src 192.168.178.28 metric 100

Fix the detection to walk and check all ifindices wrt whether they are
equal, and if that is the case then proceed normally.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>

8 of 8 new or added lines in 1 file covered. (100.0%)

26645 of 58057 relevant lines covered (45.89%)

2133.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12553.1 10 Jan 2020 07:15PM UTC 0
45.89
Travis Job 12553.1
Source Files on build 12553
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #12553
  • 63297f30 on github
  • Prev Build on master (#12550)
  • Next Build on master (#12556)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc