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] Read PSU fan max/min speed per PSU #8563

Merged

Conversation

Junchao-Mellanox
Copy link
Collaborator

@Junchao-Mellanox Junchao-Mellanox commented Aug 24, 2021

Why I did it

New PSU could install different type of fan, so fan max/min speed should be read per PSU

How I did it

The existing implementation read PSU max/min fan speed from a common file, change it to read from per PSU file

How to verify it

Manual test

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)

@Junchao-Mellanox
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

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

@liat-grozovik liat-grozovik requested review from sujinmkang and removed request for sujinmkang August 26, 2021 07:20
@qiluo-msft qiluo-msft merged commit ed64eb9 into sonic-net:master Aug 26, 2021
qiluo-msft pushed a commit that referenced this pull request Aug 27, 2021
#### Why I did it
New PSU could install different type of fan, so fan max/min speed should be read per PSU

#### How I did it
The existing implementation read PSU max/min fan speed from a common file, change it to read from per PSU file

#### How to verify it
Manual test
@Junchao-Mellanox
Copy link
Collaborator Author

Hi @qiluo-msft , could you please help cherry-picked this PR to 202106 as well as 201911 branch? Thanks!

@qiluo-msft
Copy link
Collaborator

@abdosi to cherry-pick to 201911
@judyjoseph to cherry-pick to 202106

judyjoseph pushed a commit that referenced this pull request Sep 2, 2021
#### Why I did it
New PSU could install different type of fan, so fan max/min speed should be read per PSU

#### How I did it
The existing implementation read PSU max/min fan speed from a common file, change it to read from per PSU file

#### How to verify it
Manual test
Junchao-Mellanox added a commit to Junchao-Mellanox/sonic-buildimage that referenced this pull request Sep 10, 2021
New PSU could install different type of fan, so fan max/min speed should be read per PSU

The existing implementation read PSU max/min fan speed from a common file, change it to read from per PSU file

Manual test

Conflicts:
	platform/mellanox/mlnx-platform-api/sonic_platform/fan.py
@Junchao-Mellanox
Copy link
Collaborator Author

No clean cherry-pick for 201911, created another PR: #8728

liat-grozovik pushed a commit to sonic-net/sonic-mgmt that referenced this pull request Sep 12, 2021
Align with PR sonic-net/sonic-buildimage#8563

- How did you do it?
Read PSU fan max/min speed per PSU

- How did you verify/test it?
Manually run test case test_platform_info::test_show_platform_fanstatus_mocked

- Any platform specific information?
Mellanox
abdosi pushed a commit that referenced this pull request Sep 13, 2021
New PSU could install different type of fan, so fan max/min speed should be read per PSU
@Junchao-Mellanox Junchao-Mellanox deleted the update-psu-fan-max-min branch September 14, 2021 05:37
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
Align with PR sonic-net/sonic-buildimage#8563

- How did you do it?
Read PSU fan max/min speed per PSU

- How did you verify/test it?
Manually run test case test_platform_info::test_show_platform_fanstatus_mocked

- Any platform specific information?
Mellanox
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