Project

General

Profile

Bug #8527

VLANs losing parent interface on LAGG change

Added by Thomas Spaziani about 1 year ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Interfaces
Target version:
Start date:
05/21/2018
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.4.3_1
Affected Architecture:
amd64

Description

Hi, I am using 2.4.3_1 and seem to be experiencing a regression of Issue 3976 https://redmine.pfsense.org/issues/3976

Any change to a LAGG property like MTU causes all my VLANs on that LAGG to loose its parent interface. Removing all VLAN Interfaces and the VLAN definitions and rebuilding them seems to be the only work around.. I have lots of VLANS!

This also seems to affect HA configuration sync, the syncing itself kills the standby server's VLAN interfaces.

lagg0.130: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 3c:fd:fe:9f:d9:58
        inet6 fe80::3efd:feff:fe9f:d958%lagg0.130 prefixlen 64 tentative scopeid 0x19
        inet 10.112.130.3 netmask 0xffffff00 broadcast 10.112.130.255
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        vlan: 0 vlanpcp: 0 parent interface: <none>
        groups: vlan
lagg0.300: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 3c:fd:fe:9f:d9:58
        inet6 fe80::3efd:feff:fe9f:d958%lagg0.300 prefixlen 64 tentative scopeid 0x1a
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        vlan: 0 vlanpcp: 0 parent interface: <none>
        groups: vlan
lagg0.301: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 3c:fd:fe:9f:d9:58
        inet6 fe80::3efd:feff:fe9f:d958%lagg0.301 prefixlen 64 tentative scopeid 0x1b
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        vlan: 0 vlanpcp: 0 parent interface: <none>
        groups: vlan
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=6400bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 3c:fd:fe:9f:d9:58
        inet6 fe80::3efd:feff:fe9f:d958%lagg0 prefixlen 64 scopeid 0xb
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: active
        groups: lagg
        laggproto lacp lagghash l2,l3,l4
        laggport: ixl0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
        laggport: ixl1 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
        laggport: ixl2 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
        laggport: ixl3 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
lagg_vlan_issue.tgz (131 KB) lagg_vlan_issue.tgz Constantine Kormashev, 08/19/2018 09:29 AM

Associated revisions

Revision 6fd6b853 (diff)
Added by Luiz Souza 10 months ago

Changes on the parent interfaces will create new interfaces and the existing VLANs needs to be redone.

Ticket #8527

Revision af656615 (diff)
Added by Luiz Souza 10 months ago

Changes on the parent interfaces will create new interfaces and the existing VLANs needs to be redone.

Ticket #8527

(cherry picked from commit 6fd6b8536b80316caf0f3b9221ed6af0b3453571)

History

#1 Updated by Jim Pingle about 1 year ago

  • Assignee set to Luiz Souza
  • Target version set to 2.4.4

#2 Updated by Adam Sweet 11 months ago

Can I ask if any investigation has been done on this or whether anyone else has been able to replicate it? This will bite me after upgrading to 2.4.3-p1 which is planned shortly for a production environment. I note the assignee hasn't logged in for 6 weeks and I can't find any reports of this on the forums or elsewhere.

The reporter states "This also seems to affect HA configuration sync, the syncing itself kills the standby server's VLAN interfaces." Would this occur only when making LAGG/interfaces changes, or when making any config change, unrelated to interfaces at all?

#3 Updated by Steve Beaver 11 months ago

  • Status changed from New to This Sprint

#4 Updated by Luiz Souza 10 months ago

  • Status changed from This Sprint to Feedback

I can't reproduce this, tested on 2.4.3 and 2.4.4.

Steps:

1 - Create LAGG;
2 - Add VLANs to LAGG;
3 - Edit LAGG.

VLANs are still there, parent interface is (correctly) set.

Is there something else that I'm missing or that I should test ?

#5 Updated by James Dekker 10 months ago

Following the same steps as Luiz, I am also unable to recreate the issue on 2.4.4.a.20180817.2020.

#6 Updated by Vladimir Lind 10 months ago

I can't replicate also - created 3 vlan's on a top of Lagg, assigned vlan's and Lagg interfaces, enabled, assigned IP on all of them. Then changed MTU to 9000 on Lagg. Vlan's didn't loose its parent interface.

#7 Updated by Constantine Kormashev 10 months ago

I am able to reproduce the issue on VM with latest dev factory

VLANs have not parent after changing MTU to 9000 on LAGG

lagg0.100: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:0c:29:15:bc:45
    inet6 fe80::20c:29ff:fe15:bc45%lagg0.100 prefixlen 64 tentative scopeid 0xa
    inet 10.0.1.2 netmask 0xffffff00 broadcast 10.0.1.255
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    vlan: 0 vlanpcp: 0 parent interface: <none>
    groups: vlan
lagg0.200: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:0c:29:15:bc:45
    inet6 fe80::20c:29ff:fe15:bc45%lagg0.200 prefixlen 64 tentative scopeid 0xb
    inet 10.0.2.2 netmask 0xffffff00 broadcast 10.0.2.255
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    vlan: 0 vlanpcp: 0 parent interface: <none>
    groups: vlan
lagg0.300: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:0c:29:15:bc:45
    inet6 fe80::20c:29ff:fe15:bc45%lagg0.300 prefixlen 64 tentative scopeid 0xc
    inet 10.0.3.2 netmask 0xffffff00 broadcast 10.0.3.255
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    vlan: 0 vlanpcp: 0 parent interface: <none>
    groups: vlan
lagg0.400: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:0c:29:15:bc:45
    inet6 fe80::20c:29ff:fe15:bc45%lagg0.400 prefixlen 64 tentative scopeid 0xd
    inet 10.0.4.2 netmask 0xffffff00 broadcast 10.0.4.255
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    vlan: 0 vlanpcp: 0 parent interface: <none>
    groups: vlan
lagg0.1001: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:0c:29:15:bc:45
    inet6 fe80::20c:29ff:fe15:bc45%lagg0.1001 prefixlen 64 tentative scopeid 0xe
    inet 10.0.5.2 netmask 0xffffff00 broadcast 10.0.5.255
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    vlan: 0 vlanpcp: 0 parent interface: <none>
    groups: vlan
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000
    options=60009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:0c:29:15:bc:45
    inet6 fe80::20c:29ff:fe15:bc45%lagg0 prefixlen 64 scopeid 0x9
    inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: active
    groups: lagg
    laggproto failover lagghash l2,l3,l4
    laggport: vmx3 flags=5<MASTER,ACTIVE>

Changing MTU on VLAN interface affects nothing, MTU is still the same.

<opt2>
            <descr><![CDATA[LAGG]]></descr>
            <if>lagg0</if>
            <enable></enable>
            <spoofmac></spoofmac>
            <media>autoselect</media>
            <ipaddr>10.0.0.2</ipaddr>
            <subnet>24</subnet>
            <mtu>9000</mtu>
        </opt2>
        <opt3>
            <descr><![CDATA[OPT3]]></descr>
            <if>lagg0.100</if>
            <enable></enable>
            <spoofmac></spoofmac>
            <ipaddr>10.0.1.2</ipaddr>
            <subnet>24</subnet>
            <mtu>9000</mtu>
        </opt3>

lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000
    options=60009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:0c:29:15:bc:45
    inet6 fe80::20c:29ff:fe15:bc45%lagg0 prefixlen 64 scopeid 0x9
    inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: active
    groups: lagg
    laggproto failover lagghash l2,l3,l4
    laggport: vmx3 flags=5<MASTER,ACTIVE>

lagg0.100: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:0c:29:15:bc:45
    inet6 fe80::20c:29ff:fe15:bc45%lagg0.100 prefixlen 64 tentative scopeid 0xa
    inet 10.0.1.2 netmask 0xffffff00 broadcast 10.0.1.255
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    vlan: 0 vlanpcp: 0 parent interface: <none>
    groups: vlan

status_output is in attach

#8 Updated by Constantine Kormashev 10 months ago

  • Status changed from Feedback to Assigned

#9 Updated by Jim Pingle 10 months ago

  • Status changed from Assigned to This Sprint

#10 Updated by Luiz Souza 10 months ago

  • Status changed from This Sprint to Feedback
  • % Done changed from 0 to 100

Waiting the next -RC build.

#11 Updated by Azamat Khakimyanov 9 months ago

I still saw this issue on 2.4.4.r.20180905.2249

#12 Updated by Luiz Souza 9 months ago

Please check again with a newer image.

#13 Updated by Steve Wheeler 9 months ago

  • Status changed from Feedback to Resolved

I tested this in 2.4.4r and was unable to replicate the issue.

I created and assigned a 3 interface LAGG and added VLANs on that using igb NICs. I edited the lagg to remove an interface and also edited the assigned lagg interface to change the MTU.
The VLANs retained their parent in each case.

lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=6500bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:08:a2:0d:16:12
    inet6 fe80::208:a2ff:fe0d:1612%lagg0 prefixlen 64 scopeid 0xb 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    groups: lagg 
    laggproto lacp lagghash l2,l3,l4
    laggport: igb3 flags=0<>
    laggport: igb4 flags=0<>
    laggport: igb5 flags=0<>
lagg0.20: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:08:a2:0d:16:12
    inet6 fe80::208:a2ff:fe0d:1612%lagg0.20 prefixlen 64 scopeid 0xc 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    vlan: 20 vlanpcp: 0 parent interface: lagg0
    groups: vlan 
lagg0.30: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:08:a2:0d:16:12
    inet6 fe80::208:a2ff:fe0d:1612%lagg0.30 prefixlen 64 scopeid 0xd 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    vlan: 30 vlanpcp: 0 parent interface: lagg0
    groups: vlan 

lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=6500bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:08:a2:0d:16:12
    inet6 fe80::208:a2ff:fe0d:1612%lagg0 prefixlen 64 scopeid 0xb 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    groups: lagg 
    laggproto lacp lagghash l2,l3,l4
    laggport: igb3 flags=0<>
    laggport: igb4 flags=0<>
lagg0.20: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:08:a2:0d:16:12
    inet6 fe80::208:a2ff:fe0d:1612%lagg0.20 prefixlen 64 scopeid 0xc 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    vlan: 20 vlanpcp: 0 parent interface: lagg0
    groups: vlan 
lagg0.30: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:08:a2:0d:16:12
    inet6 fe80::208:a2ff:fe0d:1612%lagg0.30 prefixlen 64 scopeid 0xd 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    vlan: 30 vlanpcp: 0 parent interface: lagg0
    groups: vlan 

lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 5999
    options=6500bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:08:a2:0d:16:12
    inet6 fe80::208:a2ff:fe0d:1612%lagg0 prefixlen 64 scopeid 0xb 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    groups: lagg 
    laggproto lacp lagghash l2,l3,l4
    laggport: igb3 flags=0<>
    laggport: igb4 flags=0<>
lagg0.20: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 5999
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:08:a2:0d:16:12
    inet6 fe80::208:a2ff:fe0d:1612%lagg0.20 prefixlen 64 scopeid 0xc 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    vlan: 20 vlanpcp: 0 parent interface: lagg0
    groups: vlan 
lagg0.30: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 5999
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 00:08:a2:0d:16:12
    inet6 fe80::208:a2ff:fe0d:1612%lagg0.30 prefixlen 64 scopeid 0xd 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    vlan: 30 vlanpcp: 0 parent interface: lagg0
    groups: vlan 

I also repeated the test in hardware with em NICs with the same results:

lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=1209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER>
    ether 00:90:7f:87:dc:78
    inet6 fe80::290:7fff:fe87:dc78%lagg0 prefixlen 64 scopeid 0x12 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    groups: lagg 
    laggproto lacp lagghash l2,l3,l4
    laggport: em3 flags=0<>
    laggport: em4 flags=0<>
    laggport: em5 flags=0<>
lagg0.20: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=3<RXCSUM,TXCSUM>
    ether 00:90:7f:87:dc:78
    inet6 fe80::290:7fff:fe87:dc78%lagg0.20 prefixlen 64 scopeid 0xc 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    vlan: 20 vlanpcp: 0 parent interface: lagg0
    groups: vlan 

lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000
    options=1209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER>
    ether 00:90:7f:87:dc:78
    inet6 fe80::290:7fff:fe87:dc78%lagg0 prefixlen 64 scopeid 0x12 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    groups: lagg 
    laggproto lacp lagghash l2,l3,l4
    laggport: em3 flags=0<>
    laggport: em4 flags=0<>
    laggport: em5 flags=0<>
lagg0.20: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000
    options=3<RXCSUM,TXCSUM>
    ether 00:90:7f:87:dc:78
    inet6 fe80::290:7fff:fe87:dc78%lagg0.20 prefixlen 64 scopeid 0xc 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    vlan: 20 vlanpcp: 0 parent interface: lagg0
    groups: vlan

lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000
    options=1209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER>
    ether 00:90:7f:87:dc:78
    inet6 fe80::290:7fff:fe87:dc79%lagg0 prefixlen 64 scopeid 0x12 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    groups: lagg 
    laggproto lacp lagghash l2,l3,l4
    laggport: em4 flags=0<>
    laggport: em5 flags=0<>
lagg0.20: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000
    options=3<RXCSUM,TXCSUM>
    ether 00:90:7f:87:dc:78
    inet6 fe80::290:7fff:fe87:dc79%lagg0.20 prefixlen 64 scopeid 0xc 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
    vlan: 20 vlanpcp: 0 parent interface: lagg0
    groups: vlan 

Also available in: Atom PDF