sonic-net / sonic-buildimage

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

Unable to change PortChannel mtu size #18695

Open mbze430 opened 6 months ago

mbze430 commented 6 months ago

Description

after creating a portchannel interface changing the portchannel mtu I get a message that the portchannel doesn't exist

Steps to reproduce the issue:

  1. sudo config portchannel add PortChannel02
  2. sudo config interfaces mtu Ethernet80 9216
  3. sudo config interfaces mtu Ethernet84 9216
  4. sudo config interface mtu PortChannel02 9216
  5. 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
    -----  -------------  -----------  -----------------------------
    01  PortChannel01  LACP(A)(Up)  Ethernet104(S) Ethernet108(S)
    02  PortChannel02  LACP(A)(Dw)
  6. show interfaces status Ethernet80-84
    Interface    Lanes    Speed    MTU    FEC    Alias    Vlan    Oper    Admin    Type    Asym PFC
    -----------  -------  -------  -----  -----  -------  ------  ------  -------  ------  ----------
    Ethernet80  1,2,3,4     100G   9216    N/A    Eth21  routed    down       up     N/A         N/A
    Ethernet84  5,6,7,8     100G   9216    N/A    Eth22  routed    down       up     N/A         N/A

Describe the results you received:

Invalid port PortChannel02

Describe the results you expected:

The portchannel mtu to be changed to 9216

Output of show version:

SONiC Software Version: SONiC.202305.505816-7b32c39cc
SONiC OS Version: 11
Distribution: Debian 11.8
Kernel: 5.10.0-23-2-amd64
Build commit: 7b32c39cc
Build date: Sat Mar 23 13:42:14 UTC 2024
Built by: AzDevOps@vmss-soni003BY6

Platform: x86_64-cel_seastone-r0
HwSKU: Seastone-DX010
ASIC: broadcom
ASIC Count: 1
Serial Number: DX010B2F108423LK100045
Model Number: R0872-F0010-01
Hardware Revision: N/A
Uptime: 22:13:19 up 3 days,  8:10,  1 user,  load average: 1.56, 1.97, 2.09
Date: Tue 16 Apr 2024 22:13:19

Docker images:
REPOSITORY                    TAG                       IMAGE ID       SIZE
docker-gbsyncd-broncos        202305.505816-7b32c39cc   291d5fd0b380   350MB
docker-gbsyncd-broncos        latest                    291d5fd0b380   350MB
docker-gbsyncd-credo          202305.505816-7b32c39cc   6a015c2e8a0c   322MB
docker-gbsyncd-credo          latest                    6a015c2e8a0c   322MB
docker-syncd-brcm             202305.505816-7b32c39cc   56c3482f46f9   674MB
docker-syncd-brcm             latest                    56c3482f46f9   674MB
docker-orchagent              202305.505816-7b32c39cc   356f313d7a58   330MB
docker-orchagent              latest                    356f313d7a58   330MB
docker-fpm-frr                202305.505816-7b32c39cc   92259e80be71   349MB
docker-fpm-frr                latest                    92259e80be71   349MB
docker-nat                    202305.505816-7b32c39cc   454193a830e2   321MB
docker-nat                    latest                    454193a830e2   321MB
docker-sflow                  202305.505816-7b32c39cc   d881c9329a4b   319MB
docker-sflow                  latest                    d881c9329a4b   319MB
docker-teamd                  202305.505816-7b32c39cc   cc4307f86be4   318MB
docker-teamd                  latest                    cc4307f86be4   318MB
docker-macsec                 latest                    2f85259a9c97   320MB
docker-dhcp-relay             latest                    5d35918adec6   308MB
docker-eventd                 202305.505816-7b32c39cc   2c77467fe9e8   300MB
docker-eventd                 latest                    2c77467fe9e8   300MB
docker-snmp                   202305.505816-7b32c39cc   b9b71b755043   339MB
docker-snmp                   latest                    b9b71b755043   339MB
docker-sonic-telemetry        202305.505816-7b32c39cc   1bfdf24f6c0e   387MB
docker-sonic-telemetry        latest                    1bfdf24f6c0e   387MB
docker-platform-monitor       202305.505816-7b32c39cc   b5cd1d0ad916   422MB
docker-platform-monitor       latest                    b5cd1d0ad916   422MB
docker-lldp                   202305.505816-7b32c39cc   12a9d413addc   343MB
docker-lldp                   latest                    12a9d413addc   343MB
docker-mux                    202305.505816-7b32c39cc   4df83002bc21   349MB
docker-mux                    latest                    4df83002bc21   349MB
docker-database               202305.505816-7b32c39cc   ca3c523eb529   300MB
docker-database               latest                    ca3c523eb529   300MB
docker-router-advertiser      202305.505816-7b32c39cc   8bc42f61653d   300MB
docker-router-advertiser      latest                    8bc42f61653d   300MB
docker-sonic-mgmt-framework   202305.505816-7b32c39cc   adf6625131b1   414MB
docker-sonic-mgmt-framework   latest                    adf6625131b1   414MB

Output of show techsupport:

sonic_dump_sonic_20240416_221354.tar.gz

matiAlfaro commented 6 months ago

MTU (as several other port properties) can't be configure on PortChannel, the way to achieve functionality is to configure ports. When adding to PortChannel, SW will verify that all ports have same MTU

mbze430 commented 6 months ago

if I set the Ethernet80 and 84 to 9216 and add them to PortChannel02 it will say the MTU size is mismatched, and won't add it. Hence, why I try to change the portchannel mtu size BEFORE adding the interface.

matiAlfaro commented 6 months ago

@mbze430 Please see if https://github.com/sonic-net/sonic-utilities/pull/3300 works for you

mbze430 commented 4 months ago

as of 6/6/24 version SONiC.202311.564467-43bcca75f this PR still have not been merged to 202311.