-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[PDDF] PSU fan status is always NOT OK while thermalctld is enabled #8129
Comments
@adyeung will take a look |
@seanwu-ec |
Understood. I appreciate that, @FuzailBrcm. |
Added the fix for this issue as part of |
Why I did it Some platforms need to run few steps before the PDDF service is actually started. * Adding pre_pddf_init script in the service file * Raising exception for get_target_speed() for PSU-fan in PDDF (#8129)
Description
PSU Fan status is always NOT OK while pmon's thermalctld is enabled. As below:
Suggestion for change
While it is PSU fan, PddfFan.get_target_speed() should raise NotImplementedError instead of returning 0.
https://github.com/Azure/sonic-buildimage/blob/4f2bc1fbeddc49af62c8f1acb748e251d043e792/platform/pddf/platform-api-pddf-base/sonic_platform_pddf_base/pddf_fan.py#L227
Otherwise, PSU fan will fail the over_speed check all the time while the real speed is much greater than 0%
https://github.com/Azure/sonic-platform-daemons/blob/2d2749ab77ea0cfb9b1a9a0a5c7eeffbde9daed8/sonic-thermalctld/scripts/thermalctld#L349
Steps to reproduce the issue:
python3 /usr/local/bin/thermalctld
)show platform fan
. You will see PSU Fan status is Not OK.Describe the results you received:
PSU fan status should be 'OK'
Describe the results you expected:
PSU fan status is 'Not OK'
Output of
show version
:The text was updated successfully, but these errors were encountered: