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

[PSU power threshold] Fix logic error: compare the system power with the PSU's power threshold #367

Merged
merged 2 commits into from
Jul 7, 2023

Conversation

stephenxs
Copy link
Collaborator

@stephenxs stephenxs commented Jun 1, 2023

Description

Motivation and Context

Compare the system power instead of PSU power with the PSU's threshold.
On a system with more than one PSU, the power consumption will not distribute evenly on both PSUs, as a result, it gives a wrong message sometimes.
To fix the error, it should compare system power with the PSU's threshold.

How Has This Been Tested?

Unit test
Manual test
Regression test

Additional Information (Optional)

Check the system power instead of PSU power against a single PSU's threshold

Signed-off-by: Stephen Sun <stephens@nvidia.com>
Signed-off-by: Stephen Sun <stephens@nvidia.com>
@stephenxs stephenxs force-pushed the enhance-psu-threshold-check branch from 34c9d4a to 1dc878c Compare June 20, 2023 09:31
@stephenxs stephenxs changed the title Adjust the logic to check PSU power threshold [PSU power threshold] Fix logic error: compare the system power with the PSU's power Jul 2, 2023
@stephenxs stephenxs changed the title [PSU power threshold] Fix logic error: compare the system power with the PSU's power [PSU power threshold] Fix logic error: compare the system power with the PSU's power threshold Jul 2, 2023
@stephenxs stephenxs marked this pull request as ready for review July 2, 2023 03:48
@liat-grozovik
Copy link
Collaborator

@prgeor , @keboliu please help to review/merge

@prgeor prgeor merged commit 66f981d into sonic-net:master Jul 7, 2023
@prgeor prgeor added the psud label Jul 7, 2023
@stephenxs stephenxs deleted the enhance-psu-threshold-check branch July 10, 2023 01:20
@StormLiangMS
Copy link

@prgeor could you create ADO for this?

StormLiangMS pushed a commit that referenced this pull request Aug 14, 2023
…the PSU's power threshold (#367)

* Adjust the logic to check PSU power threshold

Check the system power instead of PSU power against a single PSU's threshold

Signed-off-by: Stephen Sun <stephens@nvidia.com>

* Log only once instead of logging per PSU

Signed-off-by: Stephen Sun <stephens@nvidia.com>

---------

Signed-off-by: Stephen Sun <stephens@nvidia.com>
StormLiangMS pushed a commit that referenced this pull request Aug 14, 2023
…the PSU's power threshold (#367)

* Adjust the logic to check PSU power threshold

Check the system power instead of PSU power against a single PSU's threshold

Signed-off-by: Stephen Sun <stephens@nvidia.com>

* Log only once instead of logging per PSU

Signed-off-by: Stephen Sun <stephens@nvidia.com>

---------

Signed-off-by: Stephen Sun <stephens@nvidia.com>
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