pldm: Add sensor scan retry in rde_fan_sensor
When all minibmc reboot, rded tries to do the minibmc discovery
and retrieve all the dictionaries from the minibmc which keeps rded
very busy and not able to serve any Redfish request during this
period (the requests timeout). So in this period when rde_fan_sensor
tries to send queries, they fail causing rde_fan_sensor to give up
and not scan sensors on the minibmc.
This change adds a way to retry the sensor scan. Additionally,
with this fix the 180 seconds sleep to during the rde_fan_sensor
startup (which was a workaround to avoid the same problem at bootup)
is also not needed anymore.
Fusion-Link: https://fusion2.corp.google.com/592c26eb-b013-35f8-8af9-7ffd77131c9b
Tested: Verified in the rde_fan_sensor logs, that sensor rescan happens
when the issue occurs and that rde_fan_sensor proceed to
function as expected.
Google-Bug-Id: 352833159
Change-Id: I641abbac62238820bace1f3ee14f94e4bedb7fad
Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
2 files changed