SMC: add events for Satellite Management Controllers
Add events to report issues with attached SMCs, such as
heartbeat failures or inability to communicate. This is
reported as a generic event (SMCFailed), which is most
likely useful enough for external reporting and fault isolation,
but includes a field for additional debug data of the failure
type.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic0cc09135d1b8301f98e1df5b6b6e9180929c811
diff --git a/yaml/xyz/openbmc_project/State/SMC.events.yaml b/yaml/xyz/openbmc_project/State/SMC.events.yaml
new file mode 100644
index 0000000..64155aa
--- /dev/null
+++ b/yaml/xyz/openbmc_project/State/SMC.events.yaml
@@ -0,0 +1,35 @@
+version: 1.0.0
+
+errors:
+ - name: SMCFailed
+ severity: error
+ metadata:
+ - name: Identifier
+ type: object_path
+ primary: true
+ description: The name or identifier of the SMC.
+ - name: FailureType
+ type: string
+ description: An [optional] identifier of the failure type.
+ en:
+ description:
+ A Satellite Management Controller (SMC) has been detected in
+ failure state.
+ message:
+ The Satellite Management Controller '{Identifier}' is in a failure
+ state.
+ errno: EHOSTUNREACH
+
+events:
+ - name: SMCRestored
+ metadata:
+ - name: Identifier
+ type: object_path
+ primary: true
+ description: The name or identifier of the SMC.
+ en:
+ description:
+ The Satellite Management Controller (SMC) status is restored.
+ message:
+ The Satellite Management Controller '{Identifier}' is in a
+ restored state.