[Bug 1288196] Re: MAC address of bonding interface is randomly picked
Stephane, Any ideas on this, and how to push forward with a permanent solution? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
We too are working around this bug with a sleep. Agreed, a solution would be welcome. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
This bug is still affecting me and others that I know. When using IPv6 with SLAAC you randomly get a new address since you can't be sure which interface is choosen on boot. A solution to this problem would be very welcome! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
** Changed in: ifenslave (Ubuntu) Status: Fix Released => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
** Changed in: ifenslave (Ubuntu) Status: Triaged => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
** Changed in: ifenslave (Ubuntu) Status: Fix Released => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
Oops, I am a brand new user to this Ubuntu bug tracking and accidentally changed the status to "Fixed" from the state of "Triaged". I will message Stephane to get someone to fix it since I cannot seem to change it back. So sorry. ** Changed in: ifenslave (Ubuntu) Status: Triaged => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
I'm facing problem of interface selection during data Rx. I have configured two bonded interfaces bond0 with IP 144 and bond1 with IP 122 when I do scp of a file to theis system using either of the IPs it always selects one bonded interface(say bond0). And when I reboot the system it sometimes changes the selection of interface to the other bonded interface(say bond1). But I want the IPs to always refer to the respective bonded interfaces. Is it possible?? if yes, the How to do that?? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
** Changed in: ifenslave (Ubuntu) Assignee: Stéphane Graber (stgraber) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
For me, the pre-up sleep 5 solution was working just fine on 14.10. I have now upgraded to 15.04 and am seeing this issue again. Upgrading on 16 nodes, I have seen about a 50/50 random MAC address choice. As my network uses MAC addresses to assign IPs through DHCP, it's a real problem! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
This problem is pretty insidious. I couldn't ping my servers after reboot 50% of the time. It took most of a day to trace it to the bond MAC address flopping around between slave MAC addresses. The ARP entries in upstream switches don't get updated; the switches keep delivering traffic to the old MAC address. Traffic comes into the server, visible on tcpdump, but is dropped for having the wrong MAC address. Thanks to Alex Gottschalk, whose solution above worked around this problem in my case. I think it would be worth having some extra code, even if it's somewhat messy or limited, that attempts to retrieve the MAC address of the primary slave (first in interfaces?), and use it whether or not that slave ever comes up. Or as long as the slaves come first in the interfaces file, things should be far enough along to get the MAC. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
I like to have a mail and backup server only to serve 2 pc at my home/office. on the server I have put 2 nic + MB nic when I do a backup on the same time on the two pc all work very fast. To make it simple I use a desktop edition Ubuntu 64 bit 14.04 and I have set up ifenslave to work by NetworkManager and I to have this bug: I like to get IP address in my LAN by router dhcp but setting the dhcp to bind assigned IP on MEC I stop the server every nignt and wake up at morning. often the MEC address change so my server come by bad IP. the solution is to reboot until the IP is right but this is not a very good solution. I like if bound0 can be assigned by user configuration to bind bond0 to specific MEC address card best regards -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
I'm seeing the same behavior on my 12.04 and 14.04 systems. I wanted to deploy a fairly large (50 servers) IPv6 only setup using SLAAC but I had to revert to static IPv6 configuration due to this issue with Ubuntu. Configuring static mac addresses isn't something I want either, so for now I'm sticking with a static IPv6 configuration, but that's not something I want to keep. Would like to see this resolved -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
For what it's worth, adding a "pre-up sleep 5" to the secondary interfaces is a pretty decent workaround for smaller systems. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
** Changed in: ifenslave (Ubuntu) Importance: Medium => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
** Package changed: ifenslave-2.6 (Ubuntu) => ifenslave (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
Don't get me wrong, I meant to indicate that this seems completely fine by me; my point was simply that I was happy with waiting until the primary slave is available before with the old style of configuration, therefore I will be happy with waiting in a similar manner in the future too (even though the semantics change according to what you described). Tore -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
While that's indeed correct for most standard servers, it's unfortunately not the case for some massive blade setups where the hardware can literally take minutes to show up (due to rather slow enumeration by the kernel caused by the massive amount of entries), also some recent hardware now has flexible network configurations where new interfaces may appear on demand. bond_slaves really isn't appropriate with our way of setting up networking, however supporting a "bond_master" field on the bond interface itself may be reasonable (as I described earlier on). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
Sorry, that should be "bond_slaves eth0 eth1" of course. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
For what it's worth, we never had any problem with the old style "bond_master eth0 eth1" syntax. On a server, typically all the slaves will become available pretty much at the same time during the boot process - devices hot-plugged at a later time is generally not the use case you'd need to optimise for. So waiting until the primary slave appears before setting up the bonding interface seems to me to be a perfectly adequate way to handle this . Tore -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1288196] Re: MAC address of bonding interface is randomly picked
Yeah, this is one of the unfortunate side effects of having event based network bring up in Ubuntu. As devices are added to the bond in the order in which they're initialized by the kernel and as that initialization happens in parallel, the final order tends to be pretty random... Setting hwaddr is the obvious workaround, however as you said, that's problematic on deployments where you'd like to have an identical interfaces file on all machines... I'm really not sure of what to do about this... I've been thinking about a few possibilities but they each come with serious problems: - Add a new field which lets you specify what interface to pick the mac address from. The problem is that this won't work until the interface actually exists. If we only switch the MAC once the interface exists, then that won't solve your IPv6 case as the link-local and eui64 addresses don't update on mac address change. - Reuse the bond-master field and have all bond actions held until the bond-master appears (with a 5min timeout), thereby guaranteeing it'll always be joined first. The obvious problem there is that if the bond-master doesn't appear, your boot will hang for 5 minutes and you'll still get the wrong MAC (and therefore the wrong IP). I think the bond-master idea is the least wrong of the two but I'd need to get back into the code quite a bit to figure out how that'd work exactly and decide if we should reuse the name or find a new one for this. ** Changed in: ifenslave-2.6 (Ubuntu) Status: New => Triaged ** Changed in: ifenslave-2.6 (Ubuntu) Importance: Undecided => Medium ** Changed in: ifenslave-2.6 (Ubuntu) Assignee: (unassigned) => Stéphane Graber (stgraber) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1288196 Title: MAC address of bonding interface is randomly picked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/1288196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs