summaryrefslogtreecommitdiff
path: root/redfish-core/include/registries
diff options
context:
space:
mode:
authorChalapathi Venkataramashetty <chalapathix.venkataramashetty@intel.com>2021-05-17 07:42:57 +0300
committerEd Tanous <ed@tanous.net>2021-09-30 18:35:09 +0300
commit567e3ab77c0770da7def4352808e2744aa13369e (patch)
tree860f920447274819490953ebe571e657b1447c85 /redfish-core/include/registries
parent68452cb09d5b9b87df48217750d4ad7eb387aedc (diff)
downloadbmcweb-567e3ab77c0770da7def4352808e2744aa13369e.tar.xz
Add message registry entry for FirmwareResiliencyError
Add an event log in redfish when firmware update failed due to FirmwareResiliencyError. The existing message entries BMCFirmwareResiliencyError(for BMC update failures) and BIOSFirmwareResiliencyError(for BIOS update failures) are not useful for the new platform. The new platform's CPLD report common error code for BMC, PCH or CPLD firmware update failures. Hence a common message entry is required to capture the firmware update failure events. This event is Implemented in the following review. https://gerrit.openbmc-project.xyz/c/openbmc/pfr-manager/+/43281 Tested: Redfish Service Validator passed for this change. Update BMC firmware with mismatched SVN POST: https://<BMC_IP>/redfish/v1/UpdateService/ with <BMC_Update_Capsule> binary file After BMC reboots check for Event log in Redfish Command: GET: https://<BMC_IP>/redfish/v1/Systems/system/LogServices/ EventLog/Entries Response: { "@odata.id": "/redfish/v1/Systems/system/LogServices/ EventLog/Entries/1621435142_1", "@odata.type": "#LogEntry.v1_4_0.LogEntry", "Created": "2021-05-19T14:39:02+00:00", "EntryType": "Event", "Id": "1621435142_1", "Message": "Firmware resiliency error. Error reason: Firmware update failed(MinorCode:0x02).", "MessageArgs": [ "Firmware update failed(MinorCode:0x02)" ], "MessageId": "OpenBMC.0.1.FirmwareResiliencyError", "Name": "System Event Log Entry", "Severity": "Critical" }, Signed-off-by: Chalapathi Venkataramashetty <chalapathix.venkataramashetty@intel.com> Change-Id: Id13a29ecc160b8e9e1c0b926f6caf882fa746567
Diffstat (limited to 'redfish-core/include/registries')
-rw-r--r--redfish-core/include/registries/openbmc_message_registry.hpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
index ba32c11e3a..6cf503f77e 100644
--- a/redfish-core/include/registries/openbmc_message_registry.hpp
+++ b/redfish-core/include/registries/openbmc_message_registry.hpp
@@ -29,7 +29,7 @@ const Header header = {
"0.2.0",
"OpenBMC",
};
-constexpr std::array<MessageEntry, 187> registry = {
+constexpr std::array<MessageEntry, 188> registry = {
MessageEntry{
"ADDDCCorrectable",
{
@@ -488,6 +488,18 @@ constexpr std::array<MessageEntry, 187> registry = {
{"string"},
"None.",
}},
+ MessageEntry{"FirmwareResiliencyError",
+ {
+ "Indicates firmware encountered resilience error.",
+ "Firmware resiliency error. Error reason: %1.",
+ "Critical",
+ "Critical",
+ 1,
+ {
+ "string",
+ },
+ "None.",
+ }},
MessageEntry{"FirmwareUpdateCompleted",
{
"Indicates a firmware update has completed successfully.",