Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle timeout when getting PowerSystemInputs (#28)
When phosphor-chassis-state-manager starts, it makes a D-Bus call to get the Status property of the PowerSystemInputs interface. This property indicates whether the power supplies are receiving adequate input power. This D-Bus call can fail due to a timeout. This occurs when the BMC is heavily loaded, such as when the BMC is rebooted while the chassis is powered on. If this D-Bus call fails, initially assume the power supply input power is good. Rely on a PropertiesChanged event for notification if the input power state changes. Without this commit, a timeout causes the application to exit and the BMC to go into the Quiesced state. Signed-off-by: Shawn McCarney <[email protected]> Change-Id: I6ad10484a5a9768f2db13b70fb675dd50db4ffda Signed-off-by: Shawn McCarney <[email protected]>
- Loading branch information