Skip to content

Bug: orchagent crash when changing port speed on 7060x6 platform #19034

@sdszhang

Description

@sdszhang

Is it platform specific

broadcom

Importance or Severity

High

Description of the bug

orchagent crash when setting speed on 7060x6 platform.

2025 Jun 16 08:07:52.462800 xxx ERR syncd#syncd: message repeated 6 times: [ [none] SAI_API_PORT:_brcm_sai_set_speed_per_core_ports:22652 resource config: port 32589: speed:100000, lanes:1, fec:4, rv:-4]
2025 Jun 16 08:07:52.462800 xxx ERR syncd#syncd: [none] SAI_API_PORT:_brcm_sai_set_speed_per_core_ports:22659 port resource multi set failed with error Feature unavailable (0xfffffff0).
2025 Jun 16 08:07:52.462800 xxx ERR syncd#syncd: [none] SAI_API_PORT:_brcm_pm8_port_speed_set:22974 force set speed for ports in core failed with error -2.
2025 Jun 16 08:07:52.462800 xxx  ERR syncd#syncd: [none] SAI_API_PORT:brcm_sai_set_port_attribute:2647 Set port 17 attrib 31 failed with error 0xfffffffe.
2025 Jun 16 08:07:52.462800 xxx ERR syncd#syncd: :- sendApiResponse: api SAI_COMMON_API_SET failed in syncd mode: SAI_STATUS_NOT_SUPPORTED
2025 Jun 16 08:07:52.462995 xxx ERR syncd#syncd: :- processQuadEvent: VID: oid:0x1000000000011 RID: oid:0x100000011
2025 Jun 16 08:07:52.462995 xxx ERR syncd#syncd: :- processQuadEvent: attr: SAI_PORT_ATTR_SPEED: 10000
2025 Jun 16 08:07:52.463252 xxx NOTICE swss#orchagent: :- start: Performing SaiRedis log rotate
2025 Jun 16 08:07:52.463252 xxx ERR swss#orchagent: :- set: set status: SAI_STATUS_NOT_SUPPORTED
2025 Jun 16 08:07:52.463271 xxx ERR swss#orchagent: :- handleSaiSetStatus: Encountered failure in set operation, exiting orchagent, SAI API: SAI_API_PORT, status: SAI_STATUS_NOT_SUPPORTED
2025 Jun 16 08:07:52.463271 xxx NOTICE swss#orchagent: :- notifySyncd: sending syncd: SYNCD_INVOKE_DUMP
2025 Jun 16 08:07:52.463460 xxx NOTICE syncd#syncd: :- processNotifySyncd: Invoking SAI failure dump
2025 Jun 16 08:07:52.469909 xxx NOTICE swss#orchagent: :- sai_redis_notify_syncd: invoked DUMP succeeded

Steps to Reproduce

Run iface_namingmode/test_iface_namingmode.py::TestConfigInterface::test_config_interface_speed test case.

Actual Behavior and Expected Behavior

device should not crash.

Relevant log output

crash decode:

warning: Section `.reg-xstate/209' in core file too small.
#0  0x00007fe3efe92ebc in ?? () from /lib/x86_64-linux-gnu/libc.so.6
[Current thread is 1 (Thread 0x7fe3ef700480 (LWP 209))]
(gdb) bt
#0  0x00007fe3efe92ebc in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fe3efe43fb2 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007fe3efe2e472 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x000055e89af43ba3 in handleSaiFailure (abort_on_failure=abort_on_failure@entry=true) at ./orchagent/saihelper.cpp:836
#4  0x000055e89b209823 in handleSaiSetStatus (api=api@entry=SAI_API_PORT, status=<optimized out>, context=context@entry=0x0) at ./orchagent/saihelper.cpp:663
#5  0x000055e89b0fb203 in PortsOrch::setPortSpeed (this=this@entry=0x7fe3ede03000, port=..., speed=<optimized out>) at ./orchagent/portsorch.cpp:3187
#6  0x000055e89b10986e in PortsOrch::doPortTask (this=this@entry=0x7fe3ede03000, consumer=...) at ./orchagent/portsorch.cpp:4489
#7  0x000055e89b10cf8e in PortsOrch::doTask (this=0x7fe3ede03000, consumer=...) at ./orchagent/portsorch.cpp:5842
#8  0x000055e89b03ee8d in Consumer::drain (this=0x7fe3eddfe500) at ./orchagent/orch.cpp:258
#9  Consumer::drain (this=0x7fe3eddfe500) at ./orchagent/orch.cpp:255
#10 Consumer::execute (this=0x7fe3eddfe500) at ./orchagent/orch.cpp:252
#11 0x000055e89b02b34a in OrchDaemon::start (this=this@entry=0x7fe3ef30a150) at ./orchagent/orchdaemon.cpp:888
#12 0x000055e89af9721d in main (argc=<optimized out>, argv=<optimized out>) at ./orchagent/main.cpp:811
(gdb) quit
root@xxxxx:/debian12_pkg/core#

Output of show version

admin@xxxx:~$ show version

SONiC Software Version: SONiC.20241211.24
SONiC OS Version: 12
Distribution: Debian 12.9
Kernel: 6.1.0-29-2-amd64
Build commit: 3230086966
Build date: Sat Jun 14 06:43:13 UTC 2025
Built by: azureuser@5dd644b4c000004

Platform: x86_64-arista_7060x6_64pe_b
HwSKU: Arista-7060X6-64PE-B-C448O16
ASIC: broadcom

Attach files (if any)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions