[ovs-discuss] bond's active slave mac not updated when nic is replaced?

Ray Li rayli1107 at gmail.com
Tue Jul 10 17:05:44 UTC 2018


Hi, any idea what's happening here?
Thanks,
Ray

On Tue, Jun 5, 2018 at 1:31 PM, Ray Li <rayli1107 at gmail.com> wrote:

> It's more like
>
>    1. eth3 is initially the active slave.
>    2. Power off the machine, replace the NIC that corresponds with eth3
>    with a new one, power on the machine.
>    3. eth3 is still the active slave, as expected.
>    4. bond_active_slave still shows the mac address of the old NIC
>    instead of the new NIC.
>
> Thanks,
> Ray
>
>
>
> On Tue, Jun 5, 2018 at 12:37 PM, Ben Pfaff <blp at ovn.org> wrote:
>
>> OK, let me try to understand.  Is this what you're reporting?
>>
>> 1. eth3 is initially the active slave.
>>
>> 2. You unplug the cable from eth3.
>>
>> 3. Some other NIC becomes the active slave.  Is the new active slave
>>    reported correctly?  Is its MAC address reported correctly?
>>
>> 4. You re-plug the cable into eth3.
>>
>> 5. eth3 becomes the active slave again, but its MAC address is not
>>    correctly reported.
>>
>> Is that what you're saying?
>>
>> On Tue, Jun 05, 2018 at 11:39:17AM -0700, Ray Li wrote:
>> > For example, the bond_active_slave column in the port table:
>> >
>> > # ovs-vsctl list port bond0
>> > _uuid               : 15427383-f92d-4da6-bc5f-39ebd1e6aa2f
>> > bond_active_slave   : "00:25:90:98:ad:41"
>> > bond_downdelay      : 0
>> > bond_fake_iface     : false
>> > bond_mode           : []
>> > bond_updelay        : 0
>> > external_ids        : {}
>> > fake_bridge         : false
>> > interfaces          : [1fcae743-b1da-45fb-8e40-cc6c67c49bd6,
>> > be1e3aec-03c0-4b17-92f8-7c66ed0e6e34]
>> > lacp                : []
>> > mac                 : []
>> > name                : "bond0"
>> > other_config        : {}
>> > qos                 : []
>> > rstp_statistics     : {}
>> > rstp_status         : {}
>> > statistics          : {}
>> > status              : {}
>> > tag                 : []
>> > trunks              : []
>> > vlan_mode           : []
>> >
>> > Or the active slave mac field when I run bond/show
>> >
>> > # ovs-appctl bond/show bond0
>> > ---- bond0 ----
>> > bond_mode: active-backup
>> > bond may use recirculation: no, Recirc-ID : -1
>> > bond-hash-basis: 0
>> > updelay: 0 ms
>> > downdelay: 0 ms
>> > lacp_status: off
>> > active slave mac: 00:25:90:98:ad:41(eth3)
>> >
>> > slave eth2: disabled
>> > may_enable: false
>> >
>> > slave eth3: enabled
>> > active slave
>> > may_enable: true
>> >
>> > In this case, when I replace the eth3 NIC, the active slave mac doesn't
>> get
>> > updated automatically.
>> >
>> > Thanks,
>> > Ray
>> >
>> > On Tue, Jun 5, 2018 at 11:21 AM, Ben Pfaff <blp at ovn.org> wrote:
>> >
>> > > On Tue, Jun 05, 2018 at 11:11:46AM -0700, Ray Li wrote:
>> > > > I've configured an OVS bond with multiple network interfaces. The
>> bond's
>> > > > active_slave_mac field refers to the mac address of the NIC that's
>> the
>> > > > active slave. When I unplug the active slave NIC and replace it
>> with a
>> > > > different one, the bond's active_slave_mac field doesn't get
>> updated with
>> > > > the mac address of the new NIC.
>> > >
>> > > When you say that active_slave_mac is a "field", what do you mean?
>> > >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20180710/fc908799/attachment.html>


More information about the discuss mailing list