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

[Mellanox] Fix thermal control bugs #4298

Merged
merged 26 commits into from
Mar 25, 2020

Conversation

Junchao-Mellanox
Copy link
Collaborator

- What I did

  1. Fix issue: add PSU fan no matter sysfs exists or not
  2. Fix issue: get fan direction per drawer index instead of per fan index
  3. Fix issue: clarify logs for PSU absence and PSU power off
  4. Add 2100/2010 support to get fan presence status
  5. Fix issue: pmon docker exists on 3800
  6. Add unit test for code changes

- How I did it

- How to verify it

Manually verify and run existing regression cases

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Junchao-Mellanox and others added 25 commits March 11, 2020 20:39
Conflicts:
	device/mellanox/x86_64-mlnx_msn2700-r0/plugins/sfputil.py
	platform/mellanox/mlnx-platform-api/sonic_platform/thermal.py
Conflicts:
	platform/mellanox/mlnx-platform-api/sonic_platform/psu.py
Conflicts:
	platform/mellanox/mlnx-platform-api/sonic_platform/psu.py
Conflicts:
	device/mellanox/x86_64-mlnx_msn2700-r0/plugins/sfputil.py
	platform/mellanox/mlnx-platform-api/sonic_platform/thermal.py
Conflicts:
	platform/mellanox/mlnx-platform-api/sonic_platform/psu.py
Conflicts:
	platform/mellanox/mlnx-platform-api/sonic_platform/psu.py
@Junchao-Mellanox
Copy link
Collaborator Author

I closed review #4252 and created this new one. I did a rebase for build issue in previous review.

@Junchao-Mellanox Junchao-Mellanox marked this pull request as ready for review March 20, 2020 09:54
@jleveque
Copy link
Contributor

Retest this please

@Junchao-Mellanox
Copy link
Collaborator Author

Retest vsimage please

@jleveque
Copy link
Contributor

Looks good to me. I'd just like someone else from Mellanox to review and approve.

@Junchao-Mellanox
Copy link
Collaborator Author

@kebol could you please help review?

@jleveque jleveque merged commit 80bf061 into sonic-net:master Mar 25, 2020
pphuchar pushed a commit to pphuchar/sonic-buildimage that referenced this pull request Apr 20, 2020
* [thermal control] Fix pmon docker stop issue on 3800
* [thermal fix] Fix QA test issue
* [thermal fix] change psu._get_power_available_status to psu.get_power_available_status
* [thermal fix] adjust log for PSU absence and power absence
* [thermal fix] add unit test for loading thermal policy file with duplicate conditions in different policies
* [thermal] fix fan.get_presence for non-removable SKU
* [thermal fix] fix issue: fan direction is based on drawer
* Fix issue: when fan is not present, should not read fan direction from sysfs but directly return N/A
* [thermal fix] add unit test for get_direction for absent FAN
* Unplugable PSU has no FAN, no need add a FAN object for this PSU
* Update submodules
@Junchao-Mellanox Junchao-Mellanox deleted the thermal-fix branch May 7, 2020 06:06
@abdosi
Copy link
Contributor

abdosi commented May 28, 2020

@Junchao-Mellanox Please create PR for 201911. There is merge conflict.
Removing Request for 201911 Label

@rlhui @liat-grozovik

Junchao-Mellanox added a commit to Junchao-Mellanox/sonic-buildimage that referenced this pull request Jun 1, 2020
* [thermal control] Fix pmon docker stop issue on 3800
* [thermal fix] Fix QA test issue
* [thermal fix] change psu._get_power_available_status to psu.get_power_available_status
* [thermal fix] adjust log for PSU absence and power absence
* [thermal fix] add unit test for loading thermal policy file with duplicate conditions in different policies
* [thermal] fix fan.get_presence for non-removable SKU
* [thermal fix] fix issue: fan direction is based on drawer
* Fix issue: when fan is not present, should not read fan direction from sysfs but directly return N/A
* [thermal fix] add unit test for get_direction for absent FAN
* Unplugable PSU has no FAN, no need add a FAN object for this PSU
* Update submodules

Co-authored-by: Stephen Sun <5379172+stephenxs@users.noreply.github.com>
Conflicts:
	platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py
	platform/mellanox/mlnx-platform-api/sonic_platform/fan.py
	platform/mellanox/mlnx-platform-api/sonic_platform/psu.py
	platform/mellanox/mlnx-platform-api/sonic_platform/thermal.py
	src/sonic-platform-common
	src/sonic-platform-daemons
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.

6 participants