sonic-net / sonic-buildimage

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

[DPB] swss orchagent throws errors during dynamic port breakout #14378

Open vadymhlushko-mlnx opened 1 year ago

vadymhlushko-mlnx commented 1 year ago

Description

The swss orchagnet - portsorch throws error messages during the dynamic port breakout CLI command on the interface with dependencies (PortChannel & VLAN).

Steps to reproduce the issue:

  1. Create PortChannel - sudo config portchannel add PortChannel0001
  2. Add PortChannel member - sudo config portchannel member add PortChannel0001 Ethernet224
  3. Create VLAN - sudo config vlan add 1997
  4. Add VLAN member - sudo config vlan member add 1997 PortChannel0001
  5. Add IP address to VLAN - sudo config interface ip add Vlan1997 10.0.0.1/24
  6. Start log capturing on the switch - show logging -f
  7. Breakout the interface - sudo config interface breakout Ethernet224 "4x25G(4)[10G,1G]" -y -f

Describe the results you received:

Errors in logs:

Mar 21 11:06:13.801625 r-leopard-56 ERR swss#orchagent: :- doPortTask: Failed to get port id by alias:Ethernet224

Describe the results you expected:

No such errors in logs during the dynamic port breakout operation

Output of show version:

root@r-leopard-32:/home/admin# show boot
Current: SONiC-OS-202205_2_rc.9-93c2e949d_Internal
Next: SONiC-OS-202205_2_rc.9-93c2e949d_Internal
Available:
SONiC-OS-202205_2_rc.9-93c2e949d_Internal

Output of show techsupport:

sonic_dump_r-leopard-32_20230321_192026.tar.gz

Additional information you deem important (e.g. issue happens only occasionally):

This issue also reproducible on the latest 202211 branch

liat-grozovik commented 1 year ago

@zhangyanzhao could you please help to triage this issue?