Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

TooManyInterfaces from coreos docker image #21

Open
stephen-soltesz opened this issue Jun 2, 2017 · 0 comments
Open

TooManyInterfaces from coreos docker image #21

stephen-soltesz opened this issue Jun 2, 2017 · 0 comments

Comments

@stephen-soltesz
Copy link
Contributor

While running disco in a docker image from CoreOS for the first time (yay!) we found that:

/usr/lib/python2.6/site-packages/mlab/disco/network.py failed due to:

Traceback (most recent call last):
  File "/usr/bin/disco_config.py", line 106, in generate_collectd_snmp_config
    found_ports = discover_session.auto_discover_ifindex()
  File "/usr/lib/python2.6/site-packages/mlab/disco/discovery.py", line 106, in auto_discover_ifindex
    local_mac = network.get_local_mac()
  File "/usr/lib/python2.6/site-packages/mlab/disco/network.py", line 56, in get_local_mac
    'Multiple physical interfaces are not supported, found: %s' % macs)
TooManyInterfaces: Multiple physical interfaces are not supported, found: set(['e4:1d:2d:17:e7:81', 'e4:1d:2d:17:e7:80', '02:42:88:b3:04:6c'])

For an immediate work around, I just filtered the interfaces to only eth0:

>>> filter(lambda x: 'eth0' in x, netifaces.interfaces())

This needs a more general solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant