Skip to content

[device/celestica]: Add thermalctld support on Haliburton platform APIs#6493

Merged
jleveque merged 11 commits intosonic-net:masterfrom
mudsut4ke:master-e1031-add-thermalctld-support
May 3, 2021
Merged

[device/celestica]: Add thermalctld support on Haliburton platform APIs#6493
jleveque merged 11 commits intosonic-net:masterfrom
mudsut4ke:master-e1031-add-thermalctld-support

Conversation

@mudsut4ke
Copy link
Copy Markdown
Contributor

@mudsut4ke mudsut4ke commented Jan 19, 2021

- Why I did it

  • The thermalctld daemon on the Pmon docker requires support from the thermal manager API.

- How I did it

  • Removed the old function for detecting a faulty fan.
  • Removed the old function for detecting excess temperature.
  • Implement thermal_manager APIs based on ThermalManagerBase
  • Implement thermal_conditions APIs based on ThermalPolicyConditionBase
  • Implement thermal_actions APIs based on ThermalPolicyActionBase
  • Implement thermal_info APIs based on ThermalPolicyInfoBase
  • Add thermal_policy.json

- How to verify it

  • Check the fan speed during temperature changes.
  • Examine events that will occur after the temperature has exceeded the threshold.
  • Check for events that will occur after the fan is removed or the fan is not working properly.

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Jan 19, 2021

This pull request introduces 9 alerts and fixes 7 when merging 2d01309d5db4870c937e55cd3d691911abec605a into afee1a8 - view on LGTM.com

new alerts:

  • 6 for Unused import
  • 3 for 'import *' may pollute namespace

fixed alerts:

  • 5 for Wrong number of arguments in a class instantiation
  • 1 for Except block handles 'BaseException'
  • 1 for Unused import

@mudsut4ke mudsut4ke force-pushed the master-e1031-add-thermalctld-support branch from 2d01309 to bb5edc6 Compare January 21, 2021 13:33
@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Jan 21, 2021

This pull request introduces 10 alerts and fixes 7 when merging bb5edc6 into df29773 - view on LGTM.com

new alerts:

  • 6 for Unused import
  • 3 for 'import *' may pollute namespace
  • 1 for Unreachable code

fixed alerts:

  • 5 for Wrong number of arguments in a class instantiation
  • 1 for Except block handles 'BaseException'
  • 1 for Unused import

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Jan 21, 2021

This pull request introduces 4 alerts and fixes 32 when merging c2a9893 into df29773 - view on LGTM.com

new alerts:

  • 3 for 'import *' may pollute namespace
  • 1 for Unreachable code

fixed alerts:

  • 14 for Unused import
  • 9 for Except block handles 'BaseException'
  • 5 for Wrong number of arguments in a class instantiation
  • 2 for Unused local variable
  • 1 for Module imports itself
  • 1 for 'import *' may pollute namespace

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Jan 22, 2021

This pull request introduces 3 alerts and fixes 32 when merging 9eb5384 into 8729fdc - view on LGTM.com

new alerts:

  • 3 for 'import *' may pollute namespace

fixed alerts:

  • 14 for Unused import
  • 9 for Except block handles 'BaseException'
  • 5 for Wrong number of arguments in a class instantiation
  • 2 for Unused local variable
  • 1 for Module imports itself
  • 1 for 'import *' may pollute namespace

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Jan 29, 2021

This pull request introduces 3 alerts and fixes 32 when merging 0635109 into ff8cc49 - view on LGTM.com

new alerts:

  • 3 for 'import *' may pollute namespace

fixed alerts:

  • 14 for Unused import
  • 9 for Except block handles 'BaseException'
  • 5 for Wrong number of arguments in a class instantiation
  • 2 for Unused local variable
  • 1 for Module imports itself
  • 1 for 'import *' may pollute namespace

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Feb 9, 2021

This pull request introduces 3 alerts and fixes 32 when merging fd81c07 into 3015de1 - view on LGTM.com

new alerts:

  • 3 for 'import *' may pollute namespace

fixed alerts:

  • 14 for Unused import
  • 9 for Except block handles 'BaseException'
  • 5 for Wrong number of arguments in a class instantiation
  • 2 for Unused local variable
  • 1 for Module imports itself
  • 1 for 'import *' may pollute namespace

@mudsut4ke mudsut4ke marked this pull request as ready for review February 16, 2021 04:37
@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Feb 16, 2021

This pull request introduces 3 alerts and fixes 32 when merging 8411d43 into f6bee73 - view on LGTM.com

new alerts:

  • 3 for 'import *' may pollute namespace

fixed alerts:

  • 14 for Unused import
  • 9 for Except block handles 'BaseException'
  • 5 for Wrong number of arguments in a class instantiation
  • 2 for Unused local variable
  • 1 for Module imports itself
  • 1 for 'import *' may pollute namespace

Comment on lines +57 to +58
# echo dps200 0x5a > /sys/bus/i2c/devices/i2c-12/new_device
# echo dps200 0x5b > /sys/bus/i2c/devices/i2c-13/new_device
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove commented code or add a TODO comment if you plan to uncomment later

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated: 0664a4f

@mudsut4ke mudsut4ke requested a review from jleveque March 12, 2021 04:36
@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Mar 12, 2021

This pull request introduces 3 alerts and fixes 26 when merging c1f06f6 into 721948f - view on LGTM.com

new alerts:

  • 3 for 'import *' may pollute namespace

fixed alerts:

  • 13 for Unused import
  • 9 for Except block handles 'BaseException'
  • 2 for Unused local variable
  • 1 for Module imports itself
  • 1 for 'import *' may pollute namespace

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Mar 18, 2021

This pull request introduces 3 alerts and fixes 26 when merging 1668157 into 9d9503e - view on LGTM.com

new alerts:

  • 3 for 'import *' may pollute namespace

fixed alerts:

  • 13 for Unused import
  • 9 for Except block handles 'BaseException'
  • 2 for Unused local variable
  • 1 for Module imports itself
  • 1 for 'import *' may pollute namespace

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 6493 in repo Azure/sonic-buildimage

@mudsut4ke
Copy link
Copy Markdown
Contributor Author

@jleveque , Please help to re-review this PR

@jleveque
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mudsut4ke
Copy link
Copy Markdown
Contributor Author

@jleveque , Can you merge this PR ?

@jleveque
Copy link
Copy Markdown
Contributor

jleveque commented May 3, 2021

@mudsut4ke: Should this PR also be cherry-picked to the 202012 branch?

@jleveque jleveque merged commit cfda77b into sonic-net:master May 3, 2021
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-buildimage that referenced this pull request May 23, 2021
…Is (sonic-net#6493)

- Removed the old function for detecting a faulty fan.
- Removed the old function for detecting excess temperature.
- Implement thermal_manager APIs based on ThermalManagerBase
- Implement thermal_conditions APIs based on ThermalPolicyConditionBase
- Implement thermal_actions APIs based on ThermalPolicyActionBase
- Implement thermal_info APIs based on ThermalPolicyInfoBase
- Add thermal_policy.json
@mudsut4ke
Copy link
Copy Markdown
Contributor Author

mudsut4ke commented Jul 13, 2021

@mudsut4ke: Should this PR also be cherry-picked to the 202012 branch?

@jleveque , Yes, Please help cherry-pick to the 202012 branch

mudsut4ke pushed a commit to mudsut4ke/sonic-buildimage that referenced this pull request Jul 19, 2021
…Is (sonic-net#6493)

- Removed the old function for detecting a faulty fan.
- Removed the old function for detecting excess temperature.
- Implement thermal_manager APIs based on ThermalManagerBase
- Implement thermal_conditions APIs based on ThermalPolicyConditionBase
- Implement thermal_actions APIs based on ThermalPolicyActionBase
- Implement thermal_info APIs based on ThermalPolicyInfoBase
- Add thermal_policy.json
qiluo-msft pushed a commit that referenced this pull request Jul 20, 2021
…Is (#6493)

- Removed the old function for detecting a faulty fan.
- Removed the old function for detecting excess temperature.
- Implement thermal_manager APIs based on ThermalManagerBase
- Implement thermal_conditions APIs based on ThermalPolicyConditionBase
- Implement thermal_actions APIs based on ThermalPolicyActionBase
- Implement thermal_info APIs based on ThermalPolicyInfoBase
- Add thermal_policy.json
sujinmkang pushed a commit that referenced this pull request Jul 23, 2021
…Is (#6493) (#8217)

- Why I did it

The thermalctld daemon on the Pmon docker requires support from the thermal manager API
- How I did it
Cherry picked from : cfda77b
Removed the old function for detecting a faulty fan.
Removed the old function for detecting excess temperature.
Implement thermal_manager APIs based on ThermalManagerBase
Implement thermal_conditions APIs based on ThermalPolicyConditionBase
Implement thermal_actions APIs based on ThermalPolicyActionBase
Implement thermal_info APIs based on ThermalPolicyInfoBase
Add thermal_policy.json

- How to verify it
Check the fan speed during temperature changes.
Examine events that will occur after the temperature has exceeded the threshold.
Check for events that will occur after the fan is removed or the fan is not working properly.

- Which release branch to backport (provide reason below if selected)
 202012
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
…Is (sonic-net#6493)

- Removed the old function for detecting a faulty fan.
- Removed the old function for detecting excess temperature.
- Implement thermal_manager APIs based on ThermalManagerBase
- Implement thermal_conditions APIs based on ThermalPolicyConditionBase
- Implement thermal_actions APIs based on ThermalPolicyActionBase
- Implement thermal_info APIs based on ThermalPolicyInfoBase
- Add thermal_policy.json
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.

5 participants