sonic-net / sonic-buildimage

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

[Sflow] Orchagent docker crashes due to SAI failure on enabling Sflow feature #18248

Open Subhasri-Ramasamy opened 4 months ago

Subhasri-Ramasamy commented 4 months ago

Description

[Sflow] Orchagent docker crashes due to SAI failure on enabling Sflow feature

Steps to reproduce the issue:

  1. config feature state sflow enabled
  2. config sflow enable
  3. docker ps -a

Describe the results you received:

debug log: Aug 1 15:34:26.655352 sonic ERR syncd#syncd: [none] SAI_API_PORT:_brcm_sai_port_ingress_sampling_rate_set:13474 port proc samplerate set failed with error -1. Aug 1 15:34:26.655352 sonic ERR syncd#syncd: [none] SAI_API_PORT:_brcm_sai_port_ingress_samplepacket_set:14256 sampling rate set failed with error -1. Aug 1 15:34:26.655352 sonic ERR syncd#syncd: [none] SAI_API_PORT:brcm_sai_set_port_attribute:2631 Set port 25 attrib 1 failed with error 0xffffffff. Aug 1 15:34:26.655352 sonic ERR syncd#syncd: :- sendApiResponse: api SAI_COMMON_API_SET failed in syncd mode: SAI_STATUS_FAILURE Aug 1 15:34:26.655915 sonic ERR syncd#syncd: :- processQuadEvent: VID: oid:0x100000000001a RID: oid:0x100000019 Aug 1 15:34:26.655915 sonic ERR syncd#syncd: :- processQuadEvent: attr: SAI_PORT_ATTR_INGRESS_SAMPLEPACKET_ENABLE: oid:0xf0000000008e2 Aug 1 15:34:26.656438 sonic ERR swss#orchagent: :- set: set status: SAI_STATUS_FAILURE Aug 1 15:34:26.656493 sonic ERR swss#orchagent: :- sflowAddPort: Failed to set session f0000000008e2 on port 100000000001a Aug 1 15:34:26.656540 sonic ERR swss#orchagent: :- handleSaiSetStatus: Encountered failure in set operation, exiting orchagent, SAI API: SAI_API_PORT, status: SAI_STATUS_FAILURE

Describe the results you expected:

Enable and run Sflow successfully

Output of show version:

SONiC Software Version: SONiC.master.488266-4e1c38a3f SONiC OS Version: 12 Distribution: Debian 12.4 Kernel: 6.1.0-11-2-amd64 Build commit: 4e1c38a3f Build date: Thu Feb 29 13:57:11 UTC 2024 Built by: AzDevOps@vmss-soni00361I

Platform: x86_64-accton_as5835_54x-r0 HwSKU: Accton-AS5835-54X ASIC: broadcom ASIC Count: 1 Serial Number: 583554X2219071 Model Number: FP1ZZ56540B7A Hardware Revision: N/A Uptime: 11:31:17 up 6 min, 1 user, load average: 1.07, 1.04, 0.57 Date: Mon 04 Mar 2024 11:31:17

prabhataravind commented 3 months ago

@padmanarayana @jeff-yin for viz. Please help take a look to confirm if this is fully supported on this platform.

jeff-yin commented 3 months ago

This seems like a SAI issue, so someone from Broadcom may need to look at this. Tagging @adyeung to help route? This appears to be a Maverick 2 / Trident 3.X5 switch.

adyeung commented 3 months ago

@Subhasri-Ramasamy please upload help the techsupport

Subhasri-Ramasamy commented 3 months ago

Have collected techsupport logs from the image version mentioned below. Attaching the same.

show version

SONiC Software Version: SONiC.master.488266-4e1c38a3f SONiC OS Version: 12 Distribution: Debian 12.4 Kernel: 6.1.0-11-2-amd64 Build commit: 4e1c38a3f Build date: Thu Feb 29 13:57:11 UTC 2024 Built by: AzDevOps@vmss-soni00361I

Platform: x86_64-accton_as5835_54x-r0 HwSKU: Accton-AS5835-54X ASIC: broadcom ASIC Count: 1 Serial Number: 583554X2219071 Model Number: FP1ZZ56540B7A Hardware Revision: N/A Uptime: 09:26:25 up 4 min, 2 users, load average: 0.90, 1.12, 0.54 Date: Mon 01 Apr 2024 09:26:25

sonic_dump_sonic.20240401_092929.tar.gz

show_logging_sflow.docx

Subhasri-Ramasamy commented 1 month ago

@adyeung Is there any updates on this issue or a tentative ETA?