PSUEvent:Fix for ConfigureError deassert eventlog
Issue: Deasserted event - ConfigureError deassert, cannot generated
when mismatch PSU is removed.
Fix: Provided fix to get "ConfigureError deassert" event log.
Tested:
1. Removed one of 1600W PSU, which server holding 2 PSU's drawing 1600W and
Inserted mismatch PSU which is 2130W.
2. Then removed 2130W PSU and inserted 1600W PSU.
3. Verified the eventlog generated on Redfish
Get: https://<BMC-IP>/redfish/v1/Systems/system/LogServices/
EventLog/Entries
Response:
{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/
Entries/483",
"@odata.type": "#LogEntry.v1_4_0.LogEntry",
"Created": "1970-01-01T00:08:03+00:00",
"EntryType": "Event",
"Id": "483",
"Message": "",
"MessageArgs": [
"PSU2"
],
"MessageId": "OpenBMC.0.1.PowerSupplyConfigurationErrorRecovered",
"Name": "System Event Log Entry",
"Severity": ""
}
Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Change-Id: Ie70b4e5520c61f45915b5bfb22a77942818c690b
diff --git a/src/PSUEvent.cpp b/src/PSUEvent.cpp
index beb5755..b75a494 100644
--- a/src/PSUEvent.cpp
+++ b/src/PSUEvent.cpp
@@ -88,7 +88,9 @@
{"FanFault",
{"OpenBMC.0.1.PowerSupplyFanFailed",
"OpenBMC.0.1.PowerSupplyFanRecovered"}},
- {"ConfigureError", {"OpenBMC.0.1.PowerSupplyConfigurationError", ""}}};
+ {"ConfigureError",
+ {"OpenBMC.0.1.PowerSupplyConfigurationError",
+ "OpenBMC.0.1.PowerSupplyConfigurationErrorRecovered"}}};
PSUSubEvent::PSUSubEvent(
std::shared_ptr<sdbusplus::asio::dbus_interface> eventInterface,