Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PortsOrch] Failures seen during port startup: getPortOperSpeed: Failed to get oper speed #7934

Open
vaibhavhd opened this issue Jun 21, 2021 · 1 comment

Comments

@vaibhavhd
Copy link
Contributor

Description

Port startup throws errors when portsorch attempts to getPortOperSpeed. This can potentially cause Log Analyzer failures in regression tests. No known test failures at this point (this can change with new results).

The issue has started after a recent PR which added support for getPortOperSpeed : sonic-net/sonic-swss#1714

This seems to be due to SAI_PORT_ATTR_OPER_SPEED not yet supported on all the platforms, and hence the SAI_STATUS_ATTR_NOT_IMPLEMENTED_0 is received instead of expected SAI_STATUS_SUCCESS.

Steps to reproduce the issue:

  1. Install latest master on SONiC DUT (tried on 7260)
  2. Flap any one of the ports.
  3. Check syslog.

Describe the results you received:

Port starting up throws errors:

root@str2-7260cx3-acs-9:/var/log# config interface startup Ethernet226        
root@str2-7260cx3-acs-9:/var/log# tail -F syslog                       
Jun 21 18:49:30.687734 str2-7260cx3-acs-9 NOTICE swss#orchagent: :- doPortTask: Set port Ethernet226 admin status to up
Jun 21 18:49:30.828516 str2-7260cx3-acs-9 WARNING syncd#syncd: :- setBufferPoolCounterList: Stats mode  not supported for flex counter. Using STATS_MODE_READ_AND_CLEAR
Jun 21 18:49:30.841530 str2-7260cx3-acs-9 WARNING syncd#syncd: message repeated 2 times: [ :- setBufferPoolCounterList: Stats mode  not supported for flex counter. Using STATS_MODE_READ_AND_CLEAR]
Jun 21 18:49:30.841788 str2-7260cx3-acs-9 NOTICE syncd#syncd: :- setRifCounterList: Router interface oid:0x100600000002 does not have supported counters
Jun 21 18:49:30.845041 str2-7260cx3-acs-9 NOTICE syncd#syncd: :- setRifCounterList: Router interface oid:0x1100600000003 does not have supported counters
Jun 21 18:49:30.848497 str2-7260cx3-acs-9 NOTICE syncd#syncd: :- setRifCounterList: Router interface oid:0x2100600000004 does not have supported counters
Jun 21 18:49:30.851887 str2-7260cx3-acs-9 NOTICE syncd#syncd: :- setRifCounterList: Router interface oid:0x3100600000005 does not have supported counters
Jun 21 18:49:30.855077 str2-7260cx3-acs-9 NOTICE syncd#syncd: :- setRifCounterList: Router interface oid:0x3e8010600000006 does not have supported counters
Jun 21 18:49:32.121348 str2-7260cx3-acs-9 NOTICE swss#orchagent: :- doTask: Get port state change notification id:1000000000079 status:1
Jun 21 18:49:32.121348 str2-7260cx3-acs-9 NOTICE swss#orchagent: :- updatePortOperStatus: Port Ethernet226 oper state set from down to up
Jun 21 18:49:32.125711 str2-7260cx3-acs-9 INFO kernel: [  247.607602] IPv6: ADDRCONF(NETDEV_CHANGE): Ethernet226: link becomes ready
Jun 21 18:49:32.127307 str2-7260cx3-acs-9 NOTICE swss#portsyncd: :- onMsg: nlmsg type:16 key:Ethernet226 admin:1 oper:0 addr:d4:af:f7:1e:a7:f4 ifindex:127 master:10
Jun 21 18:49:32.127307 str2-7260cx3-acs-9 NOTICE swss#portsyncd: :- onMsg: nlmsg type:16 key:Ethernet226 admin:1 oper:1 addr:d4:af:f7:1e:a7:f4 ifindex:127 master:10
Jun 21 18:49:32.129575 str2-7260cx3-acs-9 NOTICE swss#orchagent: :- setHostIntfsOperStatus: Set operation status UP to host interface Ethernet226
Jun 21 18:49:32.129719 str2-7260cx3-acs-9 INFO kernel: [  247.611438] Bridge: port 109(Ethernet226) entered blocking state
Jun 21 18:49:32.129729 str2-7260cx3-acs-9 INFO kernel: [  247.611448] Bridge: port 109(Ethernet226) entered forwarding state

Jun 21 18:49:32.130831 str2-7260cx3-acs-9 ERR swss#orchagent: :- getPortOperSpeed: Failed to get oper speed for Ethernet226

SAIredis:

2021-06-21.18:49:26.757232|s|SAI_OBJECT_TYPE_PORT:oid:0x1000000000079|SAI_PORT_ATTR_ADMIN_STATE=true
2021-06-21.18:49:31.352164|n|port_state_change|[{"port_id":"oid:0x1000000000079","port_state":"SAI_PORT_OPER_STATUS_UP"}]|
2021-06-21.18:49:32.121440|s|SAI_OBJECT_TYPE_HOSTIF:oid:0xd000000001546|SAI_HOSTIF_ATTR_OPER_STATUS=true
2021-06-21.18:49:32.129485|g|SAI_OBJECT_TYPE_PORT:oid:0x1000000000079|SAI_PORT_ATTR_OPER_SPEED=1
2021-06-21.18:49:32.130570|G|SAI_STATUS_ATTR_NOT_IMPLEMENTED_0|

Describe the results you expected:

Port startup should proceed without errors - getPortOperSpeed should be successful.

Output of show version:


`SONiC-OS-master.20565-4c4799ed4, Jun 20`

Output of show techsupport:

(paste your output here or download and attach the file here )

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

@vaibhavhd
Copy link
Contributor Author

@prsunny for awareness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant