Add Power Unit Redundancy Log
Add Power Unit Redundancy Redfish Log.
Tested:
Tested:
When there are two PSU on the sytem, remove one AC cable on PSU. Then bellow
Redfish log will be created.
{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/
1568504619_1",
"@odata.type": "#LogEntry.v1_4_0.LogEntry",
"Created": "2019-09-14T23:43:39+00:00",
"EntryType": "Event",
"Id": "1568504619_1",
"Message": "Power Unit Nonredundant but has sufficient resource.",
"MessageArgs": [],
"MessageId": "OpenBMC.0.1.PowerUnitNonRedundantSufficient",
"Name": "System Event Log Entry",
"Severity": "Warning"
},
Plug in the AC cable again, the Redfish log will show
{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/
1568504628",
"@odata.type": "#LogEntry.v1_4_0.LogEntry",
"Created": "2019-09-14T23:43:48+00:00",
"EntryType": "Event",
"Id": "1568504628",
"Message": "Power Unit Redundancy regained.",
"MessageArgs": [],
"MessageId": "OpenBMC.0.1.PowerUnitRedundancyRegained",
"Name": "System Event Log Entry",
"Severity": "OK"
}
Signed-off-by: Cheng C Yang <cheng.c.yang@linux.intel.com>
Change-Id: I4f2d12e0dbc02f13062ea8e524b37248acf9c662
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
index 779a0a6..c3ec266 100644
--- a/redfish-core/include/registries/openbmc_message_registry.hpp
+++ b/redfish-core/include/registries/openbmc_message_registry.hpp
@@ -1205,6 +1205,98 @@
.resolution = "None.",
}},
MessageEntry{
+ "PowerUnitDegradedFromNonRedundant",
+ {
+ .description =
+ "Indicates that power unit is come back to redundant from"
+ "nonredundant but is still not in full redundancy mode.",
+ .message = "Power Unit degraded from nonredundant.",
+ .severity = "Warning",
+ .numberOfArgs = 0,
+ .paramTypes = {},
+ .resolution = "None.",
+ }},
+ MessageEntry{"PowerUnitDegradedFromRedundant",
+ {
+ .description =
+ "Indicates that power unit is degarded from full "
+ "redundancy mode.",
+ .message = "Power Unit degraded from redundant.",
+ .severity = "Warning",
+ .numberOfArgs = 0,
+ .paramTypes = {},
+ .resolution = "None.",
+ }},
+ MessageEntry{
+ "PowerUnitRedundancyDegraded",
+ {
+ .description =
+ "Indicates that power unit redundancy has been degraded.",
+ .message = "Power Unit Redundancy degraded.",
+ .severity = "Warning",
+ .numberOfArgs = 0,
+ .paramTypes = {},
+ .resolution = "None.",
+ }},
+ MessageEntry{
+ "PowerUnitNonRedundantFromInsufficient",
+ {
+ .description =
+ "Indicates that power unit is not in redundancy mode and get"
+ "sufficient power to support redundancy from insufficient"
+ "power.",
+ .message =
+ "Power Unit NonRedundant from insufficient to sufficient.",
+ .severity = "Warning",
+ .numberOfArgs = 0,
+ .paramTypes = {},
+ .resolution = "None.",
+ }},
+ MessageEntry{
+ "PowerUnitNonRedundantInsufficient",
+ {
+ .description = "Indicates that power unit do not have sufficient "
+ "power to support redundancy.",
+ .message = "Power Unit NonRedundant and has insufficient resource.",
+ .severity = "Error",
+ .numberOfArgs = 0,
+ .paramTypes = {},
+ .resolution = "None.",
+ }},
+ MessageEntry{"PowerUnitRedundancyLost",
+ {
+ .description =
+ "Indicates that power unit redundancy has been lost.",
+ .message = "Power Unit Redundancy lost.",
+ .severity = "Warning",
+ .numberOfArgs = 0,
+ .paramTypes = {},
+ .resolution = "None.",
+ }},
+ MessageEntry{
+ "PowerUnitRedundancyRegained",
+ {
+ .description =
+ "Indicates that power unit full redundancy has been regained.",
+ .message = "Power Unit Redundancy regained.",
+ .severity = "OK",
+ .numberOfArgs = 0,
+ .paramTypes = {},
+ .resolution = "None.",
+ }},
+ MessageEntry{
+ "PowerUnitNonRedundantSufficient",
+ {
+ .description =
+ "Indicates that power unit is not in redundancy mode but still"
+ "has sufficient power to support redundancy.",
+ .message = "Power Unit Nonredundant but has sufficient resource.",
+ .severity = "Warning",
+ .numberOfArgs = 0,
+ .paramTypes = {},
+ .resolution = "None.",
+ }},
+ MessageEntry{
"ResetButtonPressed",
{
.description = "Indicates that the reset button was pressed.",