Skip to content

"Caught exception while running thermal policy - NameError("name 'chassis' is not defined")" in syslog #7244

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

Closed
wangxin opened this issue Apr 7, 2021 · 1 comment · Fixed by #7251
Assignees
Labels

Comments

@wangxin
Copy link
Contributor

wangxin commented Apr 7, 2021

Description

Steps to reproduce the issue:

  1. SONiC switch is running normally. Observed ERR message in syslog like below:
admin@str-dx010-acs-4:~$ sudo grep -E "NameError" /var/log/syslog
Apr  7 07:43:41.055208 str-dx010-acs-4 ERR pmon#thermalctld: Caught exception while running thermal policy - NameError("name 'chassis' is not defined")
Apr  7 07:49:41.372162 str-dx010-acs-4 ERR pmon#thermalctld: message repeated 6 times: [ Caught exception while running thermal policy - NameError("name 'chassis' is not defined")]
Apr  7 07:50:41.056397 str-dx010-acs-4 ERR pmon#thermalctld: Caught exception while running thermal policy - NameError("name 'chassis' is not defined")
Apr  7 07:51:41.056648 str-dx010-acs-4 ERR pmon#thermalctld: Caught exception while running thermal policy - NameError("name 'chassis' is not defined")
Apr  7 07:57:12.764471 str-dx010-acs-4 ERR pmon#thermalctld: message repeated 5 times: [ Caught exception while running thermal policy - NameError("name 'chassis' is not defined")]
Apr  7 07:57:41.057598 str-dx010-acs-4 ERR pmon#thermalctld: Caught exception while running thermal policy - NameError("name 'chassis' is not defined")
Apr  7 07:59:59.806807 str-dx010-acs-4 ERR pmon#thermalctld: message repeated 2 times: [ Caught exception while running thermal policy - NameError("name 'chassis' is not defined")]
Apr  7 08:00:41.058106 str-dx010-acs-4 ERR pmon#thermalctld: Caught exception while running thermal policy - NameError("name 'chassis' is not defined")

Describe the results you received:

Observed ERR message in syslog:
Apr 7 07:43:41.055208 str-dx010-acs-4 ERR pmon#thermalctld: Caught exception while running thermal policy - NameError("name 'chassis' is not defined")

Describe the results you expected:

No such ERR message in syslog.

Output of show version:

admin@str-dx010-acs-4:~$ show version

SONiC Software Version: SONiC.HEAD.595-0b16ca4a
Distribution: Debian 10.9
Kernel: 4.19.0-12-2-amd64
Build commit: 0b16ca4a
Build date: Tue Apr  6 20:36:38 UTC 2021
Built by: johnar@jenkins-worker-22

Platform: x86_64-cel_seastone-r0
HwSKU: Celestica-DX010-C32
ASIC: broadcom
ASIC Count: 1
Serial Number: DX010F2B118711MS100007
Uptime: 08:08:43 up 26 min,  2 users,  load average: 7.74, 5.63, 4.29

Docker images:
REPOSITORY                    TAG                 IMAGE ID            SIZE
docker-orchagent              HEAD.595-0b16ca4a   fc72221204aa        428MB
docker-orchagent              latest              fc72221204aa        428MB
docker-snmp                   HEAD.595-0b16ca4a   d76d8a4d3d66        439MB
docker-snmp                   latest              d76d8a4d3d66        439MB
docker-platform-monitor       HEAD.595-0b16ca4a   3f565ee7d2c2        607MB
docker-platform-monitor       latest              3f565ee7d2c2        607MB
docker-syncd-brcm             HEAD.595-0b16ca4a   1fe34921083b        690MB
docker-syncd-brcm             latest              1fe34921083b        690MB
docker-sflow                  HEAD.595-0b16ca4a   3b96b2b8264e        410MB
docker-sflow                  latest              3b96b2b8264e        410MB
docker-nat                    HEAD.595-0b16ca4a   38d34aebe72e        412MB
docker-nat                    latest              38d34aebe72e        412MB
docker-router-advertiser      HEAD.595-0b16ca4a   0ba2df86bf55        398MB
docker-router-advertiser      latest              0ba2df86bf55        398MB
docker-lldp                   HEAD.595-0b16ca4a   e23c23c82d0a        438MB
docker-lldp                   latest              e23c23c82d0a        438MB
docker-database               HEAD.595-0b16ca4a   7a91344e5bd5        398MB
docker-database               latest              7a91344e5bd5        398MB
docker-macsec                 HEAD.595-0b16ca4a   6a5aae1a9dc4        412MB
docker-macsec                 latest              6a5aae1a9dc4        412MB
docker-sonic-telemetry        HEAD.595-0b16ca4a   fb526213a380        488MB
docker-sonic-telemetry        latest              fb526213a380        488MB
docker-dhcp-relay             HEAD.595-0b16ca4a   5239440bce92        405MB
docker-dhcp-relay             latest              5239440bce92        405MB
docker-sonic-mgmt-framework   HEAD.595-0b16ca4a   2537e8699e7e        617MB
docker-sonic-mgmt-framework   latest              2537e8699e7e        617MB
docker-fpm-frr                HEAD.595-0b16ca4a   badc3d72f874        427MB
docker-fpm-frr                latest              badc3d72f874        427MB
docker-teamd                  HEAD.595-0b16ca4a   cb3472016727        409MB
docker-teamd                  latest              cb3472016727        409MB

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

@jleveque
Copy link
Contributor

jleveque commented Apr 7, 2021

Bug is fixed by sonic-net/sonic-platform-daemons#170. This issue will be closed with the submodule update.

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

Successfully merging a pull request may close this issue.

2 participants