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

[201911][thermal control] Backport feature from master branch #4677

Merged
merged 15 commits into from
Jun 8, 2020

Conversation

Junchao-Mellanox
Copy link
Collaborator

- Why I did it

There are a few PRs related to thermal control feature and auto merge doesn't work, so I created a pull request to integrate those PRs to 201911.

- How I did it

Cherry-pick all realted PRs to 201911 branch and fix all conflict manually.

- How to verify it

Manual test on SN2700, SN3800 and SN4700.

- Description for the changelog

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

Junchao-Mellanox and others added 10 commits May 28, 2020 05:37
Conflicts:
	src/sonic-platform-common
	src/sonic-platform-daemons
* [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
…and PSU fan speed policy (sonic-net#4403)

Conflicts:
	platform/mellanox/mlnx-platform-api/sonic_platform/fan.py
* remove air flow direction from dynamic minimum algorithm
* adjust minimum table according to thermal data
…#4631)

* Trigger thermal action log only if thermal condition changes
* test file existence before read file content
* fix error for set psu fan speed
* Remove logs because it print too frequently
@Junchao-Mellanox
Copy link
Collaborator Author

Depends on sonic-net/sonic-platform-common#90, neew merge sonic-net/sonic-platform-common#90 first and update submodule pointer to make build success.

@Junchao-Mellanox
Copy link
Collaborator Author

Depend on sonic-net/sonic-utilities#929

@lgtm-com
Copy link

lgtm-com bot commented Jun 4, 2020

This pull request introduces 10 alerts when merging c8beb14 into 007eeec - view on LGTM.com

new alerts:

  • 5 for Wrong number of arguments in a class instantiation
  • 3 for 'import *' may pollute namespace
  • 1 for Unused local variable
  • 1 for Unused import

@prsunny
Copy link
Contributor

prsunny commented Jun 4, 2020

Can you provide a reference to master PR?

@Junchao-Mellanox
Copy link
Collaborator Author

#3949
#4298
#4403
#4476
#4631
#4638

@lgtm-com
Copy link

lgtm-com bot commented Jun 4, 2020

This pull request introduces 8 alerts when merging 3951ff6 into 007eeec - view on LGTM.com

new alerts:

  • 5 for Wrong number of arguments in a class instantiation
  • 3 for 'import *' may pollute namespace

@Junchao-Mellanox
Copy link
Collaborator Author

  • 5 for Wrong number of arguments in a class instantiation
  • 3 for 'import *' may pollute namespac

For the 5 wrong number of arguments in a class instantiation, it's not an issue. Instead, I create a issue for LGTM github/codeql#3617.
I will supress the 3 import * warning.

@lgtm-com
Copy link

lgtm-com bot commented Jun 4, 2020

This pull request introduces 8 alerts when merging 6da400d into 007eeec - view on LGTM.com

new alerts:

  • 5 for Wrong number of arguments in a class instantiation
  • 3 for 'import *' may pollute namespace

@jleveque jleveque changed the title [thermal control] Merge thermal control feature from master to 201911 branch [thermal control] Backport feature from master branch Jun 4, 2020
@jleveque jleveque changed the title [thermal control] Backport feature from master branch [201911][thermal control] Backport feature from master branch Jun 4, 2020
@prsunny
Copy link
Contributor

prsunny commented Jun 4, 2020

Can you resolve conflict?

@Junchao-Mellanox
Copy link
Collaborator Author

Resolved

@prsunny prsunny requested review from jleveque and abdosi June 5, 2020 01:57
@lgtm-com
Copy link

lgtm-com bot commented Jun 5, 2020

This pull request introduces 8 alerts when merging 1b01d5d into e73a5f1 - view on LGTM.com

new alerts:

  • 5 for Wrong number of arguments in a class instantiation
  • 3 for 'import *' may pollute namespace

@keboliu
Copy link
Collaborator

keboliu commented Jun 6, 2020

Retest this please

@jleveque jleveque merged commit 0a70571 into sonic-net:201911 Jun 8, 2020
@juntseng62 juntseng62 mentioned this pull request Jul 14, 2020
@Junchao-Mellanox Junchao-Mellanox deleted the thermal-merge branch September 18, 2020 05:46
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