Skip to content

[Mellanox] Fix thermal control bugs#51

Merged
jleveque merged 1 commit intosonic-net:masterfrom
Junchao-Mellanox:thermal-fix
Mar 17, 2020
Merged

[Mellanox] Fix thermal control bugs#51
jleveque merged 1 commit intosonic-net:masterfrom
Junchao-Mellanox:thermal-fix

Conversation

@Junchao-Mellanox
Copy link
Copy Markdown
Collaborator

  1. Catch exception in every fan/thermal refresh loop to avoid exit loop too early
  2. For absense fan, no need get its data from platform API
  3. Add unit test for new code

@jleveque jleveque added the Bug label Mar 17, 2020
@wendani
Copy link
Copy Markdown

wendani commented Apr 17, 2020

Request for 201911 with sonic-net/sonic-buildimage#3949 @jleveque @abdosi

except Exception as e:
logger.log_warning('Failed to update thermal status - {}'.format(e))

logger.log_debug("End temperature updating")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove debugging log, which shows up every 60s in syslog

DEBUG pmon#thermalctld: Start temperature updating
DEBUG pmon#thermalctld: End temperature updating

@Junchao-Mellanox

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, will remove it in another PR.

@Junchao-Mellanox Junchao-Mellanox deleted the thermal-fix branch May 7, 2020 06:04
vdahiya12 pushed a commit to vdahiya12/sonic-platform-daemons that referenced this pull request Apr 4, 2022
Signed-off-by: Andriy Kokhan <akokhan@barefootnetworks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants