when a not supported attribute on the asic returns fail for get operation syncd is crashing.
Results you see
24 Aug 20 05:59:06.202563 DUT-1 NOTICE swss#orchagent: :- initializePort: Initializing port alias:Ethernet0 pid:1000000000001
2024 Aug 20 05:59:06.203940 DUT-1 WARNING syncd#syncd: xpSaiUtil.c:2087 [Attribute SAI_PORT_ATTR_NUMBER_OF_INGRESS_PRIORITY_GROUPS : Operation : 3] with given values is not supported
2024 Aug 20 05:59:06.205052 DUT-1 ERR swss#orchagent: :- initializePriorityGroups: Failed to get number of priority groups for port Ethernet0 rv:-327680
2024 Aug 20 05:59:06.205052 DUT-1 ERR swss#orchagent: :- handleSaiGetStatus: Encountered failure in get operation, SAI API: SAI_API_PORT, status: SAI_STATUS_ATTR_NOT_SUPPORTED_0
2024 Aug 20 05:59:06.208837 DUT-1 INFO swss#supervisord: orchagent terminate called after throwing an instance of 'std::runtime_error'
2024 Aug 20 05:59:06.210473 DUT-1 INFO swss#supervisord: orchagent what(): PortsOrch initialization failure.
Results you expected to see
the syncd to not crash when an unsupported attribute is returning failure.
Is it platform specific
marvell
Relevant log output
24 Aug 20 05:59:06.202563 DUT-1 NOTICE swss#orchagent: :- initializePort: Initializing port alias:Ethernet0 pid:1000000000001
2024 Aug 20 05:59:06.203940 DUT-1 WARNING syncd#syncd: xpSaiUtil.c:2087 [Attribute SAI_PORT_ATTR_NUMBER_OF_INGRESS_PRIORITY_GROUPS : Operation : 3] with given values is not supported
2024 Aug 20 05:59:06.205052 DUT-1 ERR swss#orchagent: :- initializePriorityGroups: Failed to get number of priority groups for port Ethernet0 rv:-327680
2024 Aug 20 05:59:06.205052 DUT-1 ERR swss#orchagent: :- handleSaiGetStatus: Encountered failure in get operation, SAI API: SAI_API_PORT, status: SAI_STATUS_ATTR_NOT_SUPPORTED_0
2024 Aug 20 05:59:06.208837 DUT-1 INFO swss#supervisord: orchagent terminate called after throwing an instance of 'std::runtime_error'
2024 Aug 20 05:59:06.210473 DUT-1 INFO swss#supervisord: orchagent what(): PortsOrch initialization failure.
Issue Description
when a not supported attribute on the asic returns fail for get operation syncd is crashing.
Results you see
24 Aug 20 05:59:06.202563 DUT-1 NOTICE swss#orchagent: :- initializePort: Initializing port alias:Ethernet0 pid:1000000000001 2024 Aug 20 05:59:06.203940 DUT-1 WARNING syncd#syncd: xpSaiUtil.c:2087 [Attribute SAI_PORT_ATTR_NUMBER_OF_INGRESS_PRIORITY_GROUPS : Operation : 3] with given values is not supported 2024 Aug 20 05:59:06.205052 DUT-1 ERR swss#orchagent: :- initializePriorityGroups: Failed to get number of priority groups for port Ethernet0 rv:-327680 2024 Aug 20 05:59:06.205052 DUT-1 ERR swss#orchagent: :- handleSaiGetStatus: Encountered failure in get operation, SAI API: SAI_API_PORT, status: SAI_STATUS_ATTR_NOT_SUPPORTED_0 2024 Aug 20 05:59:06.208837 DUT-1 INFO swss#supervisord: orchagent terminate called after throwing an instance of 'std::runtime_error' 2024 Aug 20 05:59:06.210473 DUT-1 INFO swss#supervisord: orchagent what(): PortsOrch initialization failure.
Results you expected to see
the syncd to not crash when an unsupported attribute is returning failure.
Is it platform specific
marvell
Relevant log output
Output of
show version
Attach files (if any)
No response