sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
730 stars 1.4k forks source link

Portchannel going down when remove/add from vlan member ports #4186

Open dev-aviz opened 4 years ago

dev-aviz commented 4 years ago

Description Portchannel going down when remove/add from vlan member ports

Describe the results you received: Portchannel going down when remove/add from vlan member ports

Describe the results you expected: Portchannel shouldn't go down when remove/add from vlan member ports

Steps to reproduce the issue:

Topology:

3 IXIA ports ---- Mellanox Leaf1 ----- pch1 --------- Mellanox Leaf2 -- 1 IXIA port

Config: Leaf1 switch::: root@MeLeaf1:/home/admin# config interface startup Ethernet60 root@MeLeaf1:/home/admin# config interface startup Ethernet64 root@MeLeaf1:/home/admin# config interface startup Ethernet68 root@MeLeaf1:/home/admin# config interface startup Ethernet0 root@MeLeaf1:/home/admin# config interface startup Ethernet4 root@MeLeaf1:/home/admin# root@MeLeaf1:/home/admin# show interface status Interface Lanes Speed MTU Alias Vlan Oper Admin Type Asym PFC


Ethernet0 0 10G 9100 Ethernet0 routed up up SFP/SFP+/SFP28 N/A Ethernet4 4 10G 9100 Ethernet4 routed up up SFP/SFP+/SFP28 N/A Ethernet8 8 10G 9100 Ethernet8 routed down down N/A N/A Ethernet12 12 10G 9100 Ethernet12 routed down down SFP/SFP+/SFP28 N/A Ethernet16 16 10G 9100 Ethernet16 routed down down N/A N/A Ethernet20 20 10G 9100 Ethernet20 routed down down N/A N/A Ethernet24 24 10G 9100 Ethernet24 routed down down SFP/SFP+/SFP28 N/A Ethernet28 28 10G 9100 Ethernet28 routed down down SFP/SFP+/SFP28 N/A Ethernet32 32 10G 9100 Ethernet32 routed down down SFP/SFP+/SFP28 N/A Ethernet36 36 10G 9100 Ethernet36 routed down down SFP/SFP+/SFP28 N/A Ethernet40 40 10G 9100 Ethernet40 routed down down N/A N/A Ethernet44 44 10G 9100 Ethernet44 routed down down N/A N/A Ethernet48 48 10G 9100 Ethernet48 routed down down N/A N/A Ethernet52 52 10G 9100 Ethernet52 routed down down N/A N/A Ethernet56 56 10G 9100 Ethernet56 routed down down N/A N/A Ethernet60 60 10G 9100 Ethernet60 routed up up SFP/SFP+/SFP28 N/A Ethernet64 64 10G 9100 Ethernet64 routed up up SFP/SFP+/SFP28 N/A Ethernet68 68 10G 9100 Ethernet68 routed up up SFP/SFP+/SFP28 N/A Ethernet72 72,73,74,75 100G 9100 Ethernet72 routed down down QSFP28 or later N/A Ethernet76 76,77,78,79 100G 9100 Ethernet76 routed down down QSFP28 or later N/A Ethernet80 80,81,82,83 100G 9100 Ethernet80 routed down down QSFP28 or later N/A Ethernet84 84,85,86,87 100G 9100 Ethernet84 routed down down QSFP28 or later N/A root@MeLeaf1:/home/admin# root@MeLeaf1:/home/admin# config portchannel add PortChannel1 root@MeLeaf1:/home/admin# config portchannel member add PortChannel1 Ethernet0 root@MeLeaf1:/home/admin# config portchannel member add PortChannel1 Ethernet4 root@MeLeaf1:/home/admin# show interface portchannel Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available, S - selected, D - deselected, * - not synced No. Team Dev Protocol Ports


1  PortChannel1  LACP(A)(Up)  Ethernet0(S) Ethernet4(S)

root@MeLeaf1:/home/admin# config vlan add 100 root@MeLeaf1:/home/admin# config vlan member add 100 Ethernet60 --untagged root@MeLeaf1:/home/admin# config vlan member add 100 Ethernet64 --untagged root@MeLeaf1:/home/admin# config vlan member add 100 Ethernet68 --untagged root@MeLeaf1:/home/admin# config vlan member add 100 PortChannel1 root@MeLeaf1:/home/admin# show vlan brief +-----------+--------------+--------------+----------------+-----------------------+ | VLAN ID | IP Address | Ports | Port Tagging | DHCP Helper Address | +===========+==============+==============+================+=======================+ | 100 | | Ethernet60 | untagged | | | | | Ethernet64 | untagged | | | | | Ethernet68 | untagged | | | | | PortChannel1 | tagged | | +-----------+--------------+--------------+----------------+-----------------------+ root@MeLeaf1:/home/admin#

Leaf2 switch:: root@MeLeaf2:/home/admin# root@MeLeaf2:/home/admin# show interface status Interface Lanes Speed MTU Alias Vlan Oper Admin Type Asym PFC


Ethernet0 0 10G 9100 Ethernet0 PortChannel1 up up SFP/SFP+/SFP28 N/A Ethernet4 4 10G 9100 Ethernet4 PortChannel1 up up SFP/SFP+/SFP28 N/A Ethernet8 8 10G 9100 Ethernet8 routed down down N/A N/A Ethernet12 12 10G 9100 Ethernet12 routed down down N/A N/A Ethernet16 16 10G 9100 Ethernet16 routed down down N/A N/A Ethernet20 20 10G 9100 Ethernet20 routed down down N/A N/A Ethernet24 24 10G 9100 Ethernet24 routed down down SFP/SFP+/SFP28 N/A Ethernet28 28 10G 9100 Ethernet28 routed down down SFP/SFP+/SFP28 N/A Ethernet32 32 10G 9100 Ethernet32 routed down down SFP/SFP+/SFP28 N/A Ethernet36 36 10G 9100 Ethernet36 routed down down SFP/SFP+/SFP28 N/A Ethernet40 40 10G 9100 Ethernet40 routed down down N/A N/A Ethernet44 44 10G 9100 Ethernet44 routed down down N/A N/A Ethernet48 48 10G 9100 Ethernet48 routed down down N/A N/A Ethernet52 52 10G 9100 Ethernet52 routed down down N/A N/A Ethernet56 56 10G 9100 Ethernet56 routed down down N/A N/A Ethernet60 60 10G 9100 Ethernet60 routed down down N/A N/A Ethernet64 64 10G 9100 Ethernet64 routed down down N/A N/A Ethernet68 68 10G 9100 Ethernet68 trunk up up SFP/SFP+/SFP28 N/A Ethernet72 72,73,74,75 100G 9100 Ethernet72 routed down down QSFP28 or later N/A Ethernet76 76,77,78,79 100G 9100 Ethernet76 routed down down QSFP28 or later N/A Ethernet80 80,81,82,83 100G 9100 Ethernet80 routed down down QSFP28 or later N/A Ethernet84 84,85,86,87 100G 9100 Ethernet84 routed down down QSFP+ or later N/A PortChannel1 N/A 20G 9100 N/A routed down up N/A N/A root@MeLeaf2:/home/admin# show interface portchannel Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available, S - selected, D - deselected, * - not synced No. Team Dev Protocol Ports


1  PortChannel1  LACP(A)(Up)  Ethernet0(S) Ethernet4(S)

root@MeLeaf2:/home/admin# root@MeLeaf2:/home/admin# root@MeLeaf2:/home/admin# show vlan brief +-----------+--------------+--------------+----------------+-----------------------+ | VLAN ID | IP Address | Ports | Port Tagging | DHCP Helper Address | +===========+==============+==============+================+=======================+ | 100 | | Ethernet68 | untagged | | | | | PortChannel1 | tagged | | +-----------+--------------+--------------+----------------+-----------------------+ root@MeLeaf2:/home/admin#

Steps to reproduce:::

Issue: Portchannel1 is down all time

root@MeLeaf1:/home/admin# show interface status Interface Lanes Speed MTU Alias Vlan Oper Admin Type Asym PFC


Ethernet0 0 10G 9100 Ethernet0 PortChannel1 down up SFP/SFP+/SFP28 N/A <<<<<<<<< Oper status down Ethernet4 4 10G 9100 Ethernet4 PortChannel1 down up SFP/SFP+/SFP28 N/A <<<<<<<<< Oper status down
Ethernet8 8 10G 9100 Ethernet8 routed down down N/A N/A Ethernet12 12 10G 9100 Ethernet12 routed down down SFP/SFP+/SFP28 N/A Ethernet16 16 10G 9100 Ethernet16 routed down down N/A N/A Ethernet20 20 10G 9100 Ethernet20 routed down down N/A N/A Ethernet24 24 10G 9100 Ethernet24 routed down down SFP/SFP+/SFP28 N/A Ethernet28 28 10G 9100 Ethernet28 routed down down SFP/SFP+/SFP28 N/A Ethernet32 32 10G 9100 Ethernet32 routed down down SFP/SFP+/SFP28 N/A Ethernet36 36 10G 9100 Ethernet36 routed down down SFP/SFP+/SFP28 N/A Ethernet40 40 10G 9100 Ethernet40 routed down down N/A N/A Ethernet44 44 10G 9100 Ethernet44 routed down down N/A N/A Ethernet48 48 10G 9100 Ethernet48 routed down down N/A N/A Ethernet52 52 10G 9100 Ethernet52 routed down down N/A N/A Ethernet56 56 10G 9100 Ethernet56 routed down down N/A N/A Ethernet60 60 10G 9100 Ethernet60 trunk up up SFP/SFP+/SFP28 N/A Ethernet64 64 10G 9100 Ethernet64 trunk up up SFP/SFP+/SFP28 N/A Ethernet68 68 10G 9100 Ethernet68 trunk up up SFP/SFP+/SFP28 N/A Ethernet72 72,73,74,75 100G 9100 Ethernet72 routed down down QSFP28 or later N/A Ethernet76 76,77,78,79 100G 9100 Ethernet76 routed down down QSFP28 or later N/A Ethernet80 80,81,82,83 100G 9100 Ethernet80 routed down down QSFP28 or later N/A Ethernet84 84,85,86,87 100G 9100 Ethernet84 routed down down QSFP28 or later N/A PortChannel1 N/A 20G 9100 N/A routed down up N/A N/A root@MeLeaf1:/home/admin#

root@MeLeaf1:/home/admin# show interface portchannel Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available, S - selected, D - deselected, * - not synced No. Team Dev Protocol Ports


1  PortChannel1  LACP(A)(Dw)  Ethernet0(D) Ethernet4(D)
rlhui commented 4 years ago

@dev-aviz , can you please add "show version" output? Thanks.

dev-aviz commented 4 years ago

[Version] SONiC Software Version: SONiC.master.0-dirty-20191207.003133 Distribution: Debian 9.11 Kernel: 4.9.0-9-2-amd64 Build commit: f345935 Build date: Sat Dec 7 11:52:18 UTC 2019 Built by: dev-aviz@aviznetworks.com

Platform: x86_64-accton_as5712_54x-r0 HwSKU: Accton-AS5712-54X ASIC: broadcom Serial Number: 571254X1630035 Uptime: 20:09:57 up 2:53, 1 user, load average: 1.88, 2.05, 2.06