Skip to content

[Mellanox] Fan speed should not be 100% when PSU is powered off#9258

Merged
liat-grozovik merged 1 commit intosonic-net:masterfrom
Junchao-Mellanox:psu-policy
Nov 24, 2021
Merged

[Mellanox] Fan speed should not be 100% when PSU is powered off#9258
liat-grozovik merged 1 commit intosonic-net:masterfrom
Junchao-Mellanox:psu-policy

Conversation

@Junchao-Mellanox
Copy link
Collaborator

Why I did it

When PSU is powered off, the PSU is still on the switch and the air flow is still the same. In this case, it is not necessary to set FAN speed to 100%.

How I did it

When PSU is powered of, don't treat it as absent.

How to verify it

  1. Adjust existing unit test case
  2. Add new case in sonic-mgmt

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

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

@keboliu
Copy link
Collaborator

keboliu commented Nov 19, 2021

@sujinmkang could you please take a look when you have time?

@Junchao-Mellanox
Copy link
Collaborator Author

We can clean cherry-pick this to 202106/202012, we need separate PR for 201911.

@liat-grozovik liat-grozovik merged commit e79c715 into sonic-net:master Nov 24, 2021
@Junchao-Mellanox Junchao-Mellanox deleted the psu-policy branch November 25, 2021 02:18
@Junchao-Mellanox
Copy link
Collaborator Author

Hi @judyjoseph , could you please cherry-pick to 202106.
Hi @qiluo-msft , could you please cherry-pick to 202012.

Junchao-Mellanox added a commit to Junchao-Mellanox/sonic-buildimage that referenced this pull request Nov 25, 2021
…c-net#9258)

- Why I did it
When PSU is powered off, the PSU is still on the switch and the air flow is still the same. In this case, it is not necessary to set FAN speed to 100%.

- How I did it
When PSU is powered of, don't treat it as absent.

- How to verify it
Adjust existing unit test case
Add new case in sonic-mgmt
Conflicts:
	platform/mellanox/mlnx-platform-api/sonic_platform/thermal_infos.py
qiluo-msft pushed a commit that referenced this pull request Dec 1, 2021
- Why I did it
When PSU is powered off, the PSU is still on the switch and the air flow is still the same. In this case, it is not necessary to set FAN speed to 100%.

- How I did it
When PSU is powered of, don't treat it as absent.

- How to verify it
Adjust existing unit test case
Add new case in sonic-mgmt
judyjoseph pushed a commit that referenced this pull request Dec 1, 2021
- Why I did it
When PSU is powered off, the PSU is still on the switch and the air flow is still the same. In this case, it is not necessary to set FAN speed to 100%.

- How I did it
When PSU is powered of, don't treat it as absent.

- How to verify it
Adjust existing unit test case
Add new case in sonic-mgmt
abdosi pushed a commit that referenced this pull request Dec 8, 2021
… (#9380)

Backport #9258 to 201911

Why I did it
When PSU is powered off, the PSU is still on the switch and the air flow is still the same. In this case, it is not necessary to set FAN speed to 100%.

How I did it
When PSU is powered of, don't treat it as absent.

How to verify it
Adjust existing unit test case
Add new case in sonic-mgmt
Conflicts:
platform/mellanox/mlnx-platform-api/sonic_platform/thermal_infos.py
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