blob: 2391feafd3dffe5a9fe23b86a442070de876202b [file] [log] [blame]
Matt Spinler10f3d932019-09-26 16:24:14 -05001{
2 "title": "PEL message registry schema",
3 "$id": "http://github.com/openbmc/phosphor-logging/extensions/openpower-pels/registry/schema/schema.json",
4 "description": "This schema describes JSON used for creating PELs from OpenBMC event logs.",
5 "type": "object",
6
Patrick Williams26919f02022-12-08 06:12:43 -06007 "properties": {
8 "PELs": {
Matt Spinler10f3d932019-09-26 16:24:14 -05009 "title": "This is an array of entries that specify PEL fields for event logs",
10 "$ref": "#/definitions/pels"
11 }
12 },
13
14 "additionalProperties": false,
15 "minItems": 1,
16 "uniqueItems": true,
17
Patrick Williams26919f02022-12-08 06:12:43 -060018 "definitions": {
19 "pels": {
Matt Spinler10f3d932019-09-26 16:24:14 -050020 "description": "Each entry in this array is for converting an event log to a PEL",
21 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -060022 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -050023 "description": "The schema for a single event log registry entry",
24 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -060025 "properties": {
26 "Name": { "$ref": "#/definitions/errorName" },
Matt Spinler10f3d932019-09-26 16:24:14 -050027
Patrick Williams26919f02022-12-08 06:12:43 -060028 "SRC": { "$ref": "#/definitions/src" },
Matt Spinler10f3d932019-09-26 16:24:14 -050029
Patrick Williams26919f02022-12-08 06:12:43 -060030 "Subsystem": { "$ref": "#/definitions/subsystem" },
Matt Spinler10f3d932019-09-26 16:24:14 -050031
Patrick Williams26919f02022-12-08 06:12:43 -060032 "PossibleSubsystems": {
33 "$ref": "#/definitions/possibleSubsystems"
34 },
Matt Spinler23970b02022-02-25 16:34:46 -060035
Patrick Williams26919f02022-12-08 06:12:43 -060036 "Severity": { "$ref": "#/definitions/severity" },
Matt Spinler10f3d932019-09-26 16:24:14 -050037
Patrick Williams26919f02022-12-08 06:12:43 -060038 "MfgSeverity": { "$ref": "#/definitions/mfgSeverity" },
Matt Spinler10f3d932019-09-26 16:24:14 -050039
Patrick Williams26919f02022-12-08 06:12:43 -060040 "EventScope": { "$ref": "#/definitions/eventScope" },
Matt Spinler10f3d932019-09-26 16:24:14 -050041
Patrick Williams26919f02022-12-08 06:12:43 -060042 "EventType": { "$ref": "#/definitions/eventType" },
Matt Spinler10f3d932019-09-26 16:24:14 -050043
Patrick Williams26919f02022-12-08 06:12:43 -060044 "ActionFlags": { "$ref": "#/definitions/actionFlags" },
Matt Spinler10f3d932019-09-26 16:24:14 -050045
Patrick Williams26919f02022-12-08 06:12:43 -060046 "MfgActionFlags": {
47 "$ref": "#/definitions/mfgActionFlags"
48 },
Matt Spinler10f3d932019-09-26 16:24:14 -050049
Patrick Williams26919f02022-12-08 06:12:43 -060050 "Documentation": { "$ref": "#/definitions/documentation" },
Matt Spinler10f3d932019-09-26 16:24:14 -050051
Patrick Williams26919f02022-12-08 06:12:43 -060052 "ComponentID": { "$ref": "#/definitions/componentID" },
Matt Spinler9e819c72020-02-12 16:44:16 -060053
Patrick Williams26919f02022-12-08 06:12:43 -060054 "CalloutsUsingAD": {
55 "$ref": "#/definitions/calloutsUsingAD"
56 },
Matt Spinler9e819c72020-02-12 16:44:16 -060057
Matt Spinlerf22b4a12022-12-15 11:20:35 -060058 "Callouts": { "$ref": "#/definitions/callouts" },
59
60 "JournalCapture": { "$ref": "#/definitions/journalCapture" }
Matt Spinler10f3d932019-09-26 16:24:14 -050061 },
62
Matt Spinler23970b02022-02-25 16:34:46 -060063 "required": ["Name", "SRC", "Documentation"],
Matt Spinler9e819c72020-02-12 16:44:16 -060064 "additionalProperties": false,
65
Patrick Williams26919f02022-12-08 06:12:43 -060066 "not": {
Matt Spinler9e819c72020-02-12 16:44:16 -060067 "required": ["CalloutsUsingAD", "Callouts"]
Matt Spinler23970b02022-02-25 16:34:46 -060068 },
69
Patrick Williams26919f02022-12-08 06:12:43 -060070 "oneOf": [
Matt Spinler23970b02022-02-25 16:34:46 -060071 {
72 "required": ["Subsystem"]
73 },
74 {
75 "required": ["PossibleSubsystems"]
76 }
77 ]
Matt Spinler10f3d932019-09-26 16:24:14 -050078 }
79 },
80
Patrick Williams26919f02022-12-08 06:12:43 -060081 "errorName": {
Matt Spinler10f3d932019-09-26 16:24:14 -050082 "description": "The 'Message' property of an OpenBMC event log",
83 "type": "string"
84 },
85
Patrick Williams26919f02022-12-08 06:12:43 -060086 "componentID": {
Matt Spinler10f3d932019-09-26 16:24:14 -050087 "description": "The component ID of the PEL creator, in the form 0xYY00. For BD SRCs, this is optional and if not present the component ID will be taken from the upper byte of the reason code.",
88 "type": "string",
Matt Spinlera6c4ba72023-05-24 13:11:49 -050089 "pattern": "^0x[0-9A-F]{2}00$"
Matt Spinler10f3d932019-09-26 16:24:14 -050090 },
91
Patrick Williams26919f02022-12-08 06:12:43 -060092 "src": {
Matt Spinler10f3d932019-09-26 16:24:14 -050093 "description": "Contains fields describing the primary SRC embedded in the PEL",
94 "type": "object",
95
Patrick Williams26919f02022-12-08 06:12:43 -060096 "properties": {
97 "Type": { "$ref": "#/definitions/srcType" },
Matt Spinler10f3d932019-09-26 16:24:14 -050098
Patrick Williams26919f02022-12-08 06:12:43 -060099 "ReasonCode": { "$ref": "#/definitions/reasonCode" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500100
Patrick Williams26919f02022-12-08 06:12:43 -0600101 "SymptomIDFields": { "$ref": "#/definitions/symptomID" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500102
Matt Spinler3fe93e92023-04-14 14:06:59 -0500103 "Words6To9": { "$ref": "#/definitions/srcWords6To9" },
104
Matt Spinlerda5b76b2023-06-01 15:56:57 -0500105 "DeconfigFlag": { "$ref": "#/definitions/deconfigFlag" },
106
107 "CheckstopFlag": { "$ref": "#/definitions/checkstopFlag" }
Matt Spinler10f3d932019-09-26 16:24:14 -0500108 },
109
110 "required": ["ReasonCode", "Words6To9"],
111 "additionalProperties": false
112 },
113
Patrick Williams26919f02022-12-08 06:12:43 -0600114 "documentation": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500115 "description": "This contains event documentation that will be used by tools and parsers.",
116 "type": "object",
117
Patrick Williams26919f02022-12-08 06:12:43 -0600118 "properties": {
119 "Message": { "$ref": "#/definitions/docMessage" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500120
Patrick Williams26919f02022-12-08 06:12:43 -0600121 "MessageArgSources": {
122 "$ref": "#/definitions/docMessageArgSources"
123 },
Matt Spinler10f3d932019-09-26 16:24:14 -0500124
Patrick Williams26919f02022-12-08 06:12:43 -0600125 "Description": { "$ref": "#/definitions/docDescription" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500126
Patrick Williams26919f02022-12-08 06:12:43 -0600127 "Notes": { "$ref": "#/definitions/docNotes" }
Matt Spinler10f3d932019-09-26 16:24:14 -0500128 },
129 "additionalProperties": false,
130 "required": ["Message", "Description"]
131 },
132
Patrick Williams26919f02022-12-08 06:12:43 -0600133 "srcType": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500134 "description": "The first byte of the SRC ASCII string. Optional and defaults to BD. The '11' SRC is only to be used for events related to power.",
135 "type": "string",
136 "enum": ["BD", "11"]
137 },
138
Matt Spinler3fe93e92023-04-14 14:06:59 -0500139 "deconfigFlag": {
140 "description": "If true, will set bit 6 in hex data word 5, which means 'one or more resources are deconfigured'.",
141 "type": "boolean"
142 },
143
Matt Spinlerda5b76b2023-06-01 15:56:57 -0500144 "checkstopFlag": {
145 "description": "Indicates the SRC is for a hardware checkstop.",
146 "type": "boolean"
147 },
148
Patrick Williams26919f02022-12-08 06:12:43 -0600149 "docNotes": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500150 "description": "Any notes/comments about the error. An array of strings for manual line wrapping. Optional.",
151 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600152 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500153 "description": "Notes",
154 "type": "string"
155 }
156 },
157
Patrick Williams26919f02022-12-08 06:12:43 -0600158 "reasonCode": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500159 "description": "String representation of the 2 byte reason code, like 0xABCD. The reason code is the 2nd half of the 8 character SRC ASCII String field, such as B1FFABCD.",
160 "type": "string",
Matt Spinlera6c4ba72023-05-24 13:11:49 -0500161 "pattern": "^0x[0-9A-F]{4}$",
Matt Spinler10f3d932019-09-26 16:24:14 -0500162
Patrick Williams26919f02022-12-08 06:12:43 -0600163 "examples": ["0x3355"]
164 },
165
166 "subsystem": {
167 "description": "PEL subsystem enumeration. See the PEL spec for more detailed definitions.",
168 "type": "string",
169 "enum": [
170 "processor",
171 "processor_fru",
172 "processor_chip",
173 "processor_unit",
174 "processor_bus",
175
176 "memory",
177 "memory_ctlr",
178 "memory_bus",
179 "memory_dimm",
180 "memory_fru",
181 "external_cache",
182
183 "io",
184 "io_hub",
185 "io_bridge",
186 "io_bus",
187 "io_processor",
188 "io_hub_other",
189 "phb",
190
191 "io_adapter",
192 "io_adapter_comm",
193 "io_device",
194 "io_device_dasd",
195 "io_external_general",
196 "io_external_workstation",
197 "io_storage_mezz",
198
199 "cec_hardware",
200 "cec_sp_a",
201 "cec_sp_b",
202 "cec_node_controller",
203 "cec_vpd",
204 "cec_i2c",
205 "cec_chip_iface",
206 "cec_clocks",
207 "cec_op_panel",
208 "cec_tod",
209 "cec_storage_device",
210 "cec_sp_hyp_iface",
211 "cec_service_network",
212 "cec_sp_hostboot_iface",
213
214 "power",
215 "power_supply",
216 "power_control_hw",
217 "power_fans",
218 "power_sequencer",
219
220 "others",
221 "other_hmc",
222 "other_test_tool",
223 "other_media",
224 "other_multiple_subsystems",
225 "other_na",
226 "other_info_src",
227
228 "surv_hyp_lost_sp",
229 "surv_sp_lost_hyp",
230 "surv_sp_lost_hmc",
231 "surv_hmc_lost_lpar",
232 "surv_hmc_lost_bpa",
233 "surv_hmc_lost_hmc",
234
235 "platform_firmware",
236 "bmc_firmware",
237 "hyp_firmware",
238 "partition_firmware",
239 "slic_firmware",
240 "spcn_firmware",
241 "bulk_power_firmware_side_a",
242 "hmc_code_firmware",
243 "bulk_power_firmware_side_b",
244 "virtual_sp",
245 "hostboot",
246 "occ",
247
248 "software",
249 "os_software",
250 "xpf_software",
251 "app_software",
252
253 "ext_env",
254 "input_power_source",
255 "ambient_temp",
256 "user_error",
257 "corrosion"
Matt Spinler10f3d932019-09-26 16:24:14 -0500258 ]
259 },
260
Patrick Williams26919f02022-12-08 06:12:43 -0600261 "possibleSubsystems": {
Matt Spinler23970b02022-02-25 16:34:46 -0600262 "description": "Required when the PEL creator uses PEL_SUBSYSTEM in the AdditionalData property to pass in the subsystem. Used by scripts that generate documentation to build all possible SRC ASCII strings for this error.",
263 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600264 "items": {
Matt Spinler23970b02022-02-25 16:34:46 -0600265 "$ref": "#/definitions/subsystem"
266 },
267 "minItems": 1,
268 "uniqueItems": true
269 },
270
Patrick Williams26919f02022-12-08 06:12:43 -0600271 "systemAndSeverity": {
Matt Spinler17952d92020-04-10 13:50:31 -0500272 "description": "A severity entry that has an optional system type qualifier. Used when the severity needs to be based on the system type.",
273 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600274 "properties": {
Matt Spinler17952d92020-04-10 13:50:31 -0500275 "System": { "$ref": "#/definitions/system" },
276 "SevValue": { "$ref": "#/definitions/severityTypes" }
277 },
278 "additionalProperties": false,
279 "required": ["SevValue"]
280 },
281
Patrick Williams26919f02022-12-08 06:12:43 -0600282 "severity": {
Matt Spinler17952d92020-04-10 13:50:31 -0500283 "description": "PEL severity field. Optional. If not provided, it will use the event log severity. It can either be an enum of the severity value, or an array of them that is based on system type, where an entry without a system type acts as the catch all.",
Patrick Williams26919f02022-12-08 06:12:43 -0600284 "oneOf": [
Matt Spinler17952d92020-04-10 13:50:31 -0500285 {
286 "$ref": "#/definitions/severityTypes"
287 },
288 {
289 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600290 "items": {
Matt Spinler17952d92020-04-10 13:50:31 -0500291 "$ref": "#/definitions/systemAndSeverity"
292 },
293 "minItems": 1,
294 "uniqueItems": true
295 }
296 ],
297
Patrick Williams26919f02022-12-08 06:12:43 -0600298 "examples": [
Matt Spinler17952d92020-04-10 13:50:31 -0500299 "unrecoverable",
300
301 [
302 {
303 "System": "systemA",
304 "SevValue": "predictive"
305 },
306 {
307 "SevValue": "unrecoverable"
308 }
309 ]
310 ]
Matt Spinler17952d92020-04-10 13:50:31 -0500311 },
312
Patrick Williams26919f02022-12-08 06:12:43 -0600313 "severityTypes": {
Matt Spinler17952d92020-04-10 13:50:31 -0500314 "description": "PEL severity enumeration. See the PEL spec for more detailed definitions.",
Matt Spinler10f3d932019-09-26 16:24:14 -0500315 "type": "string",
316
Patrick Williams26919f02022-12-08 06:12:43 -0600317 "enum": [
318 "non_error",
Matt Spinler10f3d932019-09-26 16:24:14 -0500319
Patrick Williams26919f02022-12-08 06:12:43 -0600320 "recovered",
Matt Spinler10f3d932019-09-26 16:24:14 -0500321
Patrick Williams26919f02022-12-08 06:12:43 -0600322 "predictive",
323 "predictive_degraded_perf",
324 "predictive_reboot",
325 "predictive_reboot_degraded",
326 "predictive_redundancy_loss",
Matt Spinler10f3d932019-09-26 16:24:14 -0500327
Patrick Williams26919f02022-12-08 06:12:43 -0600328 "unrecoverable",
329 "unrecoverable_degraded_perf",
330 "unrecoverable_redundancy_loss",
331 "unrecoverable_redundancy_loss_perf",
332 "unrecoverable_loss_of_function",
Matt Spinler10f3d932019-09-26 16:24:14 -0500333
Patrick Williams26919f02022-12-08 06:12:43 -0600334 "critical",
335 "critical_system_term",
336 "critical_imminent_failure",
337 "critical_partition_term",
338 "critical_partition_imminent_failure",
Matt Spinler10f3d932019-09-26 16:24:14 -0500339
Patrick Williams26919f02022-12-08 06:12:43 -0600340 "diagnostic_error",
341 "diagnostic_error_incorrect_results",
Matt Spinler10f3d932019-09-26 16:24:14 -0500342
Patrick Williams26919f02022-12-08 06:12:43 -0600343 "symptom_recovered",
344 "symptom_predictive",
345 "symptom_unrecoverable",
346 "symptom_critical",
347 "symptom_diag_err"
348 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500349 },
350
Patrick Williams26919f02022-12-08 06:12:43 -0600351 "mfgSeverity": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500352 "description": "The PEL severity to use in manufacturing reporting mode",
353 "$ref": "#/definitions/severity"
354 },
355
Patrick Williams26919f02022-12-08 06:12:43 -0600356 "eventScope": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500357 "description": "The event scope PEL field. Optional and defaults to entire_platform",
358 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600359 "enum": [
360 "entire_platform",
361 "single_partition",
362 "multiple_partitions",
363 "possibly_multiple_platforms"
364 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500365 },
366
Patrick Williams26919f02022-12-08 06:12:43 -0600367 "eventType": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500368 "description": "The event type PEL field. Optional and defaults to na",
369 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600370 "enum": [
371 "na",
372 "misc_information_only",
373 "tracing_event",
374 "dump_notification",
375 "env_normal"
376 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500377 },
378
Patrick Williams26919f02022-12-08 06:12:43 -0600379 "actionFlags": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500380 "description": "The action flags Private Header PEL field",
381 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600382 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500383 "description": "List of action flags",
384 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600385 "enum": [
386 "service_action",
387 "hidden",
388 "report",
389 "dont_report",
390 "call_home",
391 "isolation_incomplete",
harsh-agarwal199727162024-09-23 09:28:05 -0500392 "termination",
393 "heartbeat_call_home"
Patrick Williams26919f02022-12-08 06:12:43 -0600394 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500395 }
396 },
397
Patrick Williams26919f02022-12-08 06:12:43 -0600398 "mfgActionFlags": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500399 "description": "The PEL action flags to use in manufacturing reporting mode",
400 "$ref": "#/definitions/actionFlags"
401 },
402
Patrick Williams26919f02022-12-08 06:12:43 -0600403 "docDescription": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500404 "description": "This is a higher level description of the error. It is required by the Redfish schema to generate a Redfish message entry, but is not used in Redfish or PEL output.",
Matt Spinler88b35412022-06-22 11:00:04 -0500405 "type": "string",
406 "minLength": 8
Matt Spinler10f3d932019-09-26 16:24:14 -0500407 },
408
Patrick Williams26919f02022-12-08 06:12:43 -0600409 "docMessage": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500410 "description": "The error message. This will show up in parsed PELs, and in the Redfish event logs. It can contain placeholders for numeric values using %1, %2, etc, that come from the SRC words 6-9 as defined by the MessageArgSources property.",
411 "type": "string",
Matt Spinler88b35412022-06-22 11:00:04 -0500412 "minLength": 8,
Matt Spinler10f3d932019-09-26 16:24:14 -0500413 "examples": [
Patrick Williams26919f02022-12-08 06:12:43 -0600414 { "Message": "The code update from level %1 to %2 failed" }
Matt Spinler10f3d932019-09-26 16:24:14 -0500415 ]
416 },
417
Patrick Williams26919f02022-12-08 06:12:43 -0600418 "docMessageArgSources": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500419 "description": "The SRC word 6-9 to use as the source of the numeric arguments that will be substituted into any placeholder in the Message field. Only required if there are arguments to substitute.",
420 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600421 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500422 "type": "string",
423 "enum": ["SRCWord6", "SRCWord7", "SRCWord8", "SRCWord9"]
424 },
425 "additionalItems": false
426 },
427
Patrick Williams26919f02022-12-08 06:12:43 -0600428 "symptomID": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500429 "description": "Defines a custom Symptom ID, to be appended to the ASCII string word and separated by underscores. The maximum size of the Symptom ID field is 80 characters. The default is ASCIISTRING_SRCWord3 (e.g. B1103500_12345678).",
430 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600431 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500432 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600433 "enum": [
434 "SRCWord3",
435 "SRCWord4",
436 "SRCWord5",
437 "SRCWord6",
438 "SRCWord7",
439 "SRCWord8",
440 "SRCWord9"
441 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500442 },
443 "minItems": 1,
444 "maxItems": 8,
445 "uniqueItems": true,
446
Patrick Williams26919f02022-12-08 06:12:43 -0600447 "examples": [["SRCWord3", "SRCWord6"]]
Matt Spinler10f3d932019-09-26 16:24:14 -0500448 },
449
Patrick Williams26919f02022-12-08 06:12:43 -0600450 "srcWords6To9": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500451 "description": "This details what the user defined SRC hex words (6-9) mean, and which AdditionalData properties to get them from. These will be shown in the PEL parser output. Must be present, but can be empty.",
452 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600453 "patternProperties": {
454 "^[6-9]$": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500455 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600456 "properties": {
457 "Description": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500458 "description": "What the value in the field represents.",
459 "type": "string"
460 },
Patrick Williams26919f02022-12-08 06:12:43 -0600461 "AdditionalDataPropSource": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500462 "description": "Which AdditionalData property key to get the data from.",
463 "type": "string"
464 }
465 },
466
467 "additionalProperties": false
468 },
469
Patrick Williams26919f02022-12-08 06:12:43 -0600470 "examples": {
471 "SRCWords6To9": {
472 "6": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500473 "Description": "Failing PSU number",
474 "AdditionalDataPropSource": "PSU_NUM"
475 }
476 }
477 }
478 },
479 "additionalProperties": false
Matt Spinler9e819c72020-02-12 16:44:16 -0600480 },
Matt Spinler10f3d932019-09-26 16:24:14 -0500481
Patrick Williams26919f02022-12-08 06:12:43 -0600482 "adName": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600483 "description": "The name of the AdditionalData entry to use to index into the callout tables.",
484 "type": "string"
485 },
486
Patrick Williams26919f02022-12-08 06:12:43 -0600487 "adValue": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600488 "description": "The value for the AdditionalData entry specified by ADName that indexes into the callout tables.",
489 "type": "string"
490 },
491
Patrick Williams26919f02022-12-08 06:12:43 -0600492 "locationCode": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600493 "description": "A location code - the segment after the 'UTMS-' prefix. (e.g. P1-C2)",
494 "type": "string"
495 },
496
Patrick Williams26919f02022-12-08 06:12:43 -0600497 "priority": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600498 "description": "The callout priority. See the PEL spec for priority definitions.",
499 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600500 "enum": [
501 "high",
502 "medium",
503 "low",
504 "medium_group_a",
505 "medium_group_b",
506 "medium_group_c"
507 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600508 },
509
Patrick Williams26919f02022-12-08 06:12:43 -0600510 "symbolicFRU": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500511 "description": "The symbolic FRU callout.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600512 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600513 "enum": [
514 "service_docs",
515 "pwrsply",
516 "air_mover",
517 "pgood_part",
518 "usb_pgood",
519 "ambient_temp",
520 "ambient_temp_back",
521 "ambient_perf_loss",
522 "ac_module",
523 "fan_cable",
524 "cable_continued",
525 "altitude",
526 "pcie_hot_plug",
Jim Wright9b779e42022-12-16 17:50:23 -0600527 "overtemp",
528 "memory_dimm"
Patrick Williams26919f02022-12-08 06:12:43 -0600529 ]
Matt Spinlerd4086652020-04-08 15:36:22 -0500530 },
531
Patrick Williams26919f02022-12-08 06:12:43 -0600532 "symbolicFRUTrusted": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500533 "description": "The symbolic FRU callout with a trusted location code. (Can light LEDs).",
534 "ref": "#/definitions/symbolicFRU"
Matt Spinler9e819c72020-02-12 16:44:16 -0600535 },
536
Patrick Williams26919f02022-12-08 06:12:43 -0600537 "procedure": {
Matt Spinler2edce4e2024-01-17 11:13:51 -0600538 "description": "The maintenance procedure callout. List of available procedures is at https://github.com/ibm-openbmc/openpower-pel-parsers/blob/master/modules/calloutparsers/ocallouts/ocallouts.py ",
539 "type": "string"
Matt Spinler9e819c72020-02-12 16:44:16 -0600540 },
541
Patrick Williams26919f02022-12-08 06:12:43 -0600542 "useInventoryLocCode": {
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500543 "description": "Used along with SymbolicFRUTrusted to specify that the location code to use with the symbolic FRU is to be taken from the passed in CALLOUT_INVENTORY_PATH callout rather than being specified with LocCode.",
544 "type": "boolean"
545 },
546
Patrick Williams26919f02022-12-08 06:12:43 -0600547 "calloutList": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500548 "description": "The list of FRU callouts to add to a PEL. If just LocCode is specified, it is a normal hardware FRU callout. If Procedure is specified, it is a procedure callout. If SymbolicFRU or SymbolicFRUTrusted are specified, it is a Symbolic FRU callout. SymbolicFRUTrusted also requires LocCode.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600549 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600550 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600551 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600552 "properties": {
553 "Priority": { "$ref": "#/definitions/priority" },
554 "LocCode": { "$ref": "#/definitions/locationCode" },
555 "SymbolicFRU": { "$ref": "#/definitions/symbolicFRU" },
556 "SymbolicFRUTrusted": {
557 "$ref": "#/definitions/symbolicFRUTrusted"
558 },
559 "Procedure": { "$ref": "#/definitions/procedure" },
560 "UseInventoryLocCode": {
561 "$ref": "#/definitions/useInventoryLocCode"
562 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600563 },
564 "additionalProperties": false,
565 "required": ["Priority"],
566
Patrick Williams26919f02022-12-08 06:12:43 -0600567 "oneOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500568 {
Patrick Williams26919f02022-12-08 06:12:43 -0600569 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500570 { "required": ["LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600571 { "not": { "required": ["SymbolicFRU"] } },
572 { "not": { "required": ["SymbolicFRUTrusted"] } },
573 { "not": { "required": ["Procedure"] } },
574 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500575 ]
576 },
577 {
Patrick Williams26919f02022-12-08 06:12:43 -0600578 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500579 { "required": ["SymbolicFRU"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600580 { "not": { "required": ["SymbolicFRUTrusted"] } },
581 { "not": { "required": ["Procedure"] } },
582 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500583 ]
584 },
585
586 {
Patrick Williams26919f02022-12-08 06:12:43 -0600587 "allOf": [
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500588 { "required": ["SymbolicFRUTrusted", "LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600589 { "not": { "required": ["SymbolicFRU"] } },
590 { "not": { "required": ["Procedure"] } },
591 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500592 ]
593 },
594
595 {
Patrick Williams26919f02022-12-08 06:12:43 -0600596 "allOf": [
597 {
598 "required": [
599 "SymbolicFRUTrusted",
600 "UseInventoryLocCode"
601 ]
602 },
603 { "not": { "required": ["SymbolicFRU"] } },
604 { "not": { "required": ["Procedure"] } },
605 { "not": { "required": ["LocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500606 ]
607 },
608
609 {
Patrick Williams26919f02022-12-08 06:12:43 -0600610 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500611 { "required": ["Procedure"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600612 { "not": { "required": ["SymbolicFRU"] } },
613 { "not": { "required": ["SymbolicFRUTrusted"] } },
614 { "not": { "required": ["LocCode"] } },
615 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500616 ]
617 }
618 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600619 },
620 "minItems": 1,
621 "maxItems": 10,
622
Patrick Williams26919f02022-12-08 06:12:43 -0600623 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600624 {
625 "Priority": "high",
626 "LocCode": "P1"
627 },
628 {
629 "Priority": "medium",
630 "LocCode": "P2",
631 "SymbolicFRU": "PROCFRU"
632 },
633 {
634 "Priority": "low",
635 "Procedure": "SVCDOCS"
636 }
637 ]
638 },
639
Patrick Williams26919f02022-12-08 06:12:43 -0600640 "system": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600641 "description": "The system type string, as specified by entity manger. It is used to index into different sections of the JSON.",
Matt Spinler17952d92020-04-10 13:50:31 -0500642 "type": "string",
643 "minLength": 1
Matt Spinler9e819c72020-02-12 16:44:16 -0600644 },
645
Arya K Padman15370292024-05-14 01:48:22 -0500646 "systems": {
647 "description": "The Systems key can be defined and can be used to keep the name of the systems as an array of string if the systems possess same callout list.",
648 "type": "array",
649 "items": {
650 "type": "string"
651 },
652 "minItems": 1
653 },
654
Patrick Williams26919f02022-12-08 06:12:43 -0600655 "callouts": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600656 "description": "This contains callouts that can vary based on system type. Each entry contains an optional System property and a required CalloutList property. If the System property is left out it indicates that the CalloutList callouts are valid for every system type, unless there is another Callouts entry that has a matching System property, in which case that entry is valid.",
657 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600658 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600659 "type": "object",
660
Patrick Williams26919f02022-12-08 06:12:43 -0600661 "properties": {
662 "System": { "$ref": "#/definitions/system" },
Arya K Padman15370292024-05-14 01:48:22 -0500663 "Systems": { "$ref": "#/definitions/systems" },
Patrick Williams26919f02022-12-08 06:12:43 -0600664 "CalloutList": { "$ref": "#/definitions/calloutList" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600665 },
Matt Spinler9e819c72020-02-12 16:44:16 -0600666 "additionalProperties": false
667 },
Arya K Padman15370292024-05-14 01:48:22 -0500668 "anyOf": [
669 {
670 "required": ["System", "CalloutList"]
671 },
672 {
673 "required": ["Systems", "CalloutList"]
674 },
675 {
676 "required": ["CalloutList"]
677 }
678 ],
Matt Spinler9e819c72020-02-12 16:44:16 -0600679 "minItems": 1,
680 "maxItems": 10,
681
Patrick Williams26919f02022-12-08 06:12:43 -0600682 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600683 [
684 {
685 "System": "system1",
Patrick Williams26919f02022-12-08 06:12:43 -0600686 "CalloutList": [{ "Priority": "high", "LocCode": "P1" }]
Matt Spinler9e819c72020-02-12 16:44:16 -0600687 },
688 {
Arya K Padman15370292024-05-14 01:48:22 -0500689 "Systems": ["system1", "system2"],
690 "CalloutList": [{ "Priority": "low", "LocCode": "P2" }]
691 },
692 {
Patrick Williams26919f02022-12-08 06:12:43 -0600693 "CalloutList": [
694 { "Priority": "high", "Procedure": "NEXTLVL" }
695 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600696 }
697 ]
698 ]
699 },
700
Patrick Williams26919f02022-12-08 06:12:43 -0600701 "calloutsWithTheirADValues": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600702 "description": "This contains callouts along with the AdditionalData value used to select an entry into the callout list. The AdditionalData entry was specified by ADName in the CalloutsUsingAD parent entry.",
703 "type": "array",
704
Patrick Williams26919f02022-12-08 06:12:43 -0600705 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600706 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600707 "properties": {
708 "ADValue": { "$ref": "#/definitions/adValue" },
709 "Callouts": { "$ref": "#/definitions/callouts" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600710 },
711 "additionalProperties": false,
712 "required": ["ADValue", "Callouts"]
713 },
714 "minItems": 1,
Matt Spinler9e819c72020-02-12 16:44:16 -0600715
Patrick Williams26919f02022-12-08 06:12:43 -0600716 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600717 [
718 {
719 "ADValue": "0",
Patrick Williams26919f02022-12-08 06:12:43 -0600720 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600721 {
Patrick Williams26919f02022-12-08 06:12:43 -0600722 "CalloutList": [
723 { "Priority": "high", "LocCode": "P1" }
724 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600725 }
726 ]
727 },
728 {
729 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600730 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600731 {
Patrick Williams26919f02022-12-08 06:12:43 -0600732 "CalloutList": [
733 { "Priority": "high", "LocCode": "P2" }
734 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600735 }
736 ]
737 }
738 ]
739 ]
740 },
741
Patrick Williams26919f02022-12-08 06:12:43 -0600742 "calloutsUsingAD": {
Matt Spinler3d923312022-08-01 09:52:55 -0500743 "description": "This contains the callouts that can be specified based on a value in the AdditionalData property.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600744 "type": "object",
745
Patrick Williams26919f02022-12-08 06:12:43 -0600746 "properties": {
747 "ADName": { "$ref": "#/definitions/adName" },
748 "CalloutsWithTheirADValues": {
749 "$ref": "#/definitions/calloutsWithTheirADValues"
750 },
751 "CalloutsWhenNoADMatch": {
752 "$ref": "#/definitions/calloutsWhenNoADMatch"
753 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600754 },
755 "additionalProperties": false,
756 "required": ["ADName", "CalloutsWithTheirADValues"],
757
Patrick Williams26919f02022-12-08 06:12:43 -0600758 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600759 {
760 "ADName": "PROC_NUM",
Patrick Williams26919f02022-12-08 06:12:43 -0600761 "CalloutsWithTheirADValues": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600762 {
763 "ADValue": "0",
Patrick Williams26919f02022-12-08 06:12:43 -0600764 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600765 {
Patrick Williams26919f02022-12-08 06:12:43 -0600766 "CalloutList": [
767 { "Priority": "high", "LocCode": "P1" }
768 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600769 }
770 ]
771 },
772 {
773 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600774 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600775 {
Patrick Williams26919f02022-12-08 06:12:43 -0600776 "CalloutList": [
777 { "Priority": "high", "LocCode": "P2" }
778 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600779 }
780 ]
781 }
782 ]
783 }
784 ]
Matt Spinler3d923312022-08-01 09:52:55 -0500785 },
786
Patrick Williams26919f02022-12-08 06:12:43 -0600787 "calloutsWhenNoADMatch": {
Matt Spinler3d923312022-08-01 09:52:55 -0500788 "description": "This contains the callouts to use when a match in the 'CalloutsWithTheirADValues array isn't found.",
789 "$ref": "#/definitions/callouts"
Matt Spinlerf22b4a12022-12-15 11:20:35 -0600790 },
791
792 "numLines": {
793 "description": "The number of lines of the journal to capture.",
794 "type": "integer",
795 "minimum": 1,
796 "maximum": 100
797 },
798
799 "syslogID": {
800 "description": "SYSLOG_IDENTIFIER value from the journal whose entries to capture.",
801 "type": "string",
802 "minLength": 1
803 },
804
805 "journalSection": {
806 "type": "object",
807 "properties": {
808 "SyslogID": { "$ref": "#/definitions/syslogID" },
809 "NumLines": { "$ref": "#/definitions/numLines" }
810 },
811 "additionalProperties": false,
812 "required": ["SyslogID", "NumLines"]
813 },
814
815 "journalSectionList": {
816 "description": "Describes which syslog IDs and how many journal lines to capture",
817 "type": "array",
818 "items": {
819 "$ref": "#/definitions/journalSection"
820 },
821 "minItems": 1,
822 "uniqueItems": true,
823 "examples": [
824 {
825 "Sections": [
826 {
827 "SyslogID": "phosphor-bmc-state-manager",
828 "NumLines": 20
829 }
830 ]
831 }
832 ]
833 },
834
835 "journalCapture": {
836 "description": "Allows a PEL to capture journal data in UserData sections.",
837 "type": "object",
838 "properties": {
839 "NumLines": { "$ref": "#/definitions/numLines" },
840 "Sections": { "$ref": "#/definitions/journalSectionList" }
841 },
842 "oneOf": [
843 {
844 "required": ["NumLines"]
845 },
846 {
847 "required": ["Sections"]
848 }
849 ],
850 "additionalProperties": false,
851 "examples": [
852 {
853 "JournalCapture": {
854 "NumLines": 30
855 }
856 },
857 {
858 "JournalCapture": {
859 "Sections": [
860 {
861 "SyslogID": "phosphor-bmc-state-manager",
862 "NumLines": 20
863 },
864 {
865 "SyslogID": "phosphor-log-manager",
866 "NumLines": 15
867 }
868 ]
869 }
870 }
871 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600872 }
Matt Spinler10f3d932019-09-26 16:24:14 -0500873 }
874}