Skip to content

Layer 2: MetalLB shouldn't listen on interfaces which have master #349

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

Closed
kvaps opened this issue Nov 27, 2018 · 3 comments · Fixed by #350
Closed

Layer 2: MetalLB shouldn't listen on interfaces which have master #349

kvaps opened this issue Nov 27, 2018 · 3 comments · Fixed by #350
Labels

Comments

@kvaps
Copy link
Contributor

kvaps commented Nov 27, 2018

Is this a bug report or a feature request?:

BUG

What happened:

My nodes have a lot of interfaces, eg. 4 hardware interfaces, 2 bonding, bridge, vlans, and veth interfaces.

When I use arping, I have 8 replies from the metallb speaker. From each interface which passing the traffic.

Eg if you have the next scheme:

   |       |
[eth0]   [eth1]
    \     /
    [bond0]
       |
     [br0]

I will get answer from all of them. That's totally wrong because connectivity will not work if ip address will be associated with interface which have master (eth0, eth1 or bond0)

What you expected to happen:

I expected answer only from br0 interface.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • MetalLB version:
  • Kubernetes version:
  • BGP router type/version:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
@danderson danderson added the bug label Nov 27, 2018
@kvaps
Copy link
Contributor Author

kvaps commented Nov 27, 2018

Probably we can also exclude interfaces with NOARP flag set

@danderson
Copy link
Contributor

Thanks for the report! This is definitely a bug, in exactly the way you describe.

Unfortunately, getting information about which interfaces are sub-interfaces of others is hard from Go right now, so it's not a 100% trivial fix. There's also a related bug #316 which would allow selecting specific interfaces to listen on, although I still want the default to be automagic.

Thinking...

@kvaps
Copy link
Contributor Author

kvaps commented Nov 27, 2018

Hi @danderson, thanks for quick answer.

I've checked possibilities right now, I think we can use the check for the next directory:

/sys/class/net/<interface>/master

If catalog exists - then ignore interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants