From 3fd08d685c484306752cb976e9c6788661f49b9c Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Tue, 22 Oct 2019 14:25:33 -0500 Subject: PEL: Add the 'Common' errors to the registry Add the xyz.openbmc_project.Common.Error.* errors from xyz/openbmc_project/Common.errors.yaml file in the phosphor-dbus-interfaces repository. It is possible that errors defined in these YAML files never have event logs created out of them, but instead are intended to just be returned on failed D-Bus operations, such as a method failure. Aside from searching the whole OpenBMC code base there is no way to know, so just define PELs for all of them to be safe. Signed-off-by: Matt Spinler Change-Id: I00ce1e9423c2b260f78d2d3d0aa8a495c3b13504 --- .../openpower-pels/registry/message_registry.json | 131 +++++++++++++++++++++ 1 file changed, 131 insertions(+) (limited to 'extensions/openpower-pels/registry') diff --git a/extensions/openpower-pels/registry/message_registry.json b/extensions/openpower-pels/registry/message_registry.json index e2f2ac2..7e278e3 100644 --- a/extensions/openpower-pels/registry/message_registry.json +++ b/extensions/openpower-pels/registry/message_registry.json @@ -1,6 +1,137 @@ { "PELs": [ + { + "Name": "xyz.openbmc_project.Common.Error.Timeout", + "Subsystem": "bmc_firmware", + "SRC": + { + "ReasonCode": "0x1001", + "Words6To9": + { + "6": + { + "Description": "Timeout in ms", + "AdditionalDataPropSource": "TIMEOUT_IN_MSEC" + } + } + }, + + "Documentation": + { + "Description": "This is a generic timeout error", + "Message": "An operation timed out", + "Notes": [ + "The journal should contain more information" + ] + } + }, + + { + "Name": "xyz.openbmc_project.Common.Error.InternalFailure", + "Subsystem": "bmc_firmware", + + "SRC": + { + "ReasonCode": "0x1002", + "Words6To9": + { + } + }, + + "Documentation": + { + "Description": "BMC code had a generic internal failure", + "Message": "An application had an internal failure", + "Notes": [ + "The journal should contain more information" + ] + } + }, + + { + "Name": "xyz.openbmc_project.Common.Error.InvalidArgument", + "Subsystem": "user_error", + + "SRC": + { + "ReasonCode": "0x1003", + "Words6To9": + { + } + }, + + "Documentation": + { + "Description": "BMC code was given an invalid argument", + "Message": "Code was given an invalid argument", + "Notes": [ + "The journal should contain more information" + ] + } + }, + { + "Name": "xyz.openbmc_project.Common.Error.InsufficientPermission", + "Subsystem": "user_error", + + "SRC": + { + "ReasonCode": "0x1004", + "Words6To9": + { + } + }, + + "Documentation": + { + "Description": "An operation failed due to insufficient permission", + "Message": "An operation failed due to unsufficient permission", + "Notes": [ + "The journal should contain more information" + ] + } + }, + + { + "Name": "xyz.openbmc_project.Common.Error.NotAllowed", + "Subsystem": "user_error", + + "SRC": + { + "ReasonCode": "0x1005", + "Words6To9": + { + } + }, + + "Documentation": + { + "Description": "An operation failed because it isn't allowed", + "Message": "An operation failed becuase it isn't allowed", + "Notes": [ + "The journal should contain more information" + ] + } + }, + + { + "Name": "xyz.openbmc_project.Common.Error.NoCACertificate", + "Subsystem": "user_error", + + "SRC": + { + "ReasonCode": "0x1006", + "Words6To9": + { + } + }, + + "Documentation": + { + "Description": "The server's CA certificate has not been provided", + "Message": "The server's CA certificate has not been provided" + } + } ] } -- cgit v1.2.1