From a2ec6384deae62963cc9b1d4a08de00b3cc9c9f3 Mon Sep 17 00:00:00 2001 From: Chalapathi Venkataramashetty Date: Mon, 1 Jun 2020 13:44:04 +0000 Subject: openbmc_message_registry: update failure reason in FirmwareUpdateFailed Update the failure reason in FirmwareUpdateFailed redfish message entry. Tested: 1. Update the corrupted image so that fw update fails. POST: https:///redfish/v1/UpdateService/ with binary file Check event logs in redfish. Command: GET: https:///redfish/v1/Systems/system/LogServices/ EventLog/Entries Response: { "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/ Entries/1591111739", "@odata.type": "#LogEntry.v1_4_0.LogEntry", "Created": "2020-06-02T15:28:59+00:00", "EntryType": "Event", "Id": "1591111739", "Message": "BMC firmware update to version 00.59 started.", "MessageArgs": [ "BMC", "00.59", "" ], "MessageId": "OpenBMC.0.1.FirmwareUpdateStarted", "Name": "System Event Log Entry", "Severity": "OK" }, { "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/ Entries/1591111742", "@odata.type": "#LogEntry.v1_4_0.LogEntry", "Created": "2020-06-02T15:29:02+00:00", "EntryType": "Event", "Id": "1591111742", "Message": "BMC firmware update to version 00.59 failed: due to image verification error.", "MessageArgs": [ "BMC", "00.59", "due to image verification error" ], "MessageId": "OpenBMC.0.1.FirmwareUpdateFailed", "Name": "System Event Log Entry", "Severity": "Warning" }, Signed-off-by: Chalapathi Venkataramashetty Change-Id: I79e9509f129a3b87fb21e961e7b7bd78809ca1e2 --- redfish-core/include/registries/openbmc_message_registry.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp index 17b2070062..ec0f0685c7 100644 --- a/redfish-core/include/registries/openbmc_message_registry.hpp +++ b/redfish-core/include/registries/openbmc_message_registry.hpp @@ -418,10 +418,10 @@ constexpr std::array registry = { MessageEntry{"FirmwareUpdateFailed", { "Indicates a firmware update has failed.", - "%1 firmware update to version %2 failed.", + "%1 firmware update to version %2 failed: %3.", "Warning", - 2, - {"string", "string"}, + 3, + {"string", "string", "string"}, "None.", }}, MessageEntry{"FirmwareUpdateStarted", -- cgit v1.2.3