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

psu_num missing in STATE_DB CHASSIS_INFO table of Chassis Linecard #19535

Closed
SuvarnaMeenakshi opened this issue Jul 11, 2024 · 0 comments · Fixed by #19733
Closed

psu_num missing in STATE_DB CHASSIS_INFO table of Chassis Linecard #19535

SuvarnaMeenakshi opened this issue Jul 11, 2024 · 0 comments · Fixed by #19733
Assignees
Labels
Chassis 🤖 Modular chassis support NOKIA Triaged this issue has been triaged

Comments

@SuvarnaMeenakshi
Copy link
Contributor

Description

Steps to reproduce the issue:

Seeing an exception getting logged every time SNMP query is made to get psu information on the Linecards as seen below:

docker exec -it snmp snmpwalk -v2c -c 127.0.0.1 1.3.6.1.4.1.9.9.117.1.1.2.1
ERR snmp#snmp-subagent [sonic_ax_impl] ERROR: PowerStatusHandler._get_psu_index() caught an unexpected exception during _get_num_psus()#012Traceback (most recent call last):#12 File "/usr/local/lib/python3.9/dist-packages/sonic_ax_impl/mibs/vendor/cisco/ciscoEntityFruControlMIB.py", line 101, in _get_psu_index#012 num_psus = self._get_num_psus()#12 File "/usr/local/lib/python3.9/dist-packages/sonic_ax_impl/mibs/vendor/cisco/ciscoEntityFruControlMIB.py", line 66, in _get_num_psus#012 return int(num_psus[0])#012ValueError: invalid literal for int() with base 10: ''

This is seen because the “psu_num” is missing in STATE_DB “CHASSIS_INFO|chassis 1” Table.
https://github.com/sonic-net/sonic-platform-daemons/blob/74881e1b31371bbd9c0966c48402a3058181bc4b/sonic-psud/scripts/psud#L403

This is updated by psud, if we have psud running then “psu_num” will be populated in STATE_DB as 0, which will help with ERR log seen due to SNMP querying.
Currently psud is skipped on Nokia Linecard https://github.com/sonic-net/sonic-buildimage/blob/master/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/pmon_daemon_control.json#L2

Is it possible to keep psud running in Nokia Linecard as done on other Chassis platforms?

Describe the results you received:

Exception Error log seen in syslog when SNMP query is made to get psu information.

Describe the results you expected:

No error log

Output of show version:

(paste your output here)

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):

@vmittal-msft vmittal-msft added Chassis 🤖 Modular chassis support Triaged this issue has been triaged labels Jul 17, 2024
@rlhui rlhui closed this as completed in 8dcf192 Aug 28, 2024
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this issue Sep 6, 2024
…C platform (sonic-net#19733)

Executes "docker exec -it snmp snmpwalk -v2c -c 127.0.0.1 1.3.6.1.4.1.9.9.117.1.1.2.1" Nokia LC - Nokia_IXR7250E_36x400G will get error in the syslog.
This PR will enable  Psud in LC to address this issue. Fixes sonic-net#19535
Signed-off-by: mlok <marty.lok@nokia.com>
mssonicbld pushed a commit that referenced this issue Sep 7, 2024
…C platform (#19733)

Executes "docker exec -it snmp snmpwalk -v2c -c 127.0.0.1 1.3.6.1.4.1.9.9.117.1.1.2.1" Nokia LC - Nokia_IXR7250E_36x400G will get error in the syslog.
This PR will enable  Psud in LC to address this issue. Fixes #19535
Signed-off-by: mlok <marty.lok@nokia.com>
vvolam pushed a commit to vvolam/sonic-buildimage that referenced this issue Sep 12, 2024
…C platform (sonic-net#19733)

Executes "docker exec -it snmp snmpwalk -v2c -c 127.0.0.1 1.3.6.1.4.1.9.9.117.1.1.2.1" Nokia LC - Nokia_IXR7250E_36x400G will get error in the syslog.
This PR will enable  Psud in LC to address this issue. Fixes sonic-net#19535
Signed-off-by: mlok <marty.lok@nokia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chassis 🤖 Modular chassis support NOKIA Triaged this issue has been triaged
Projects
Archived in project
3 participants