blob: 50066ee4b278a325df50a1e1f0bc2427934f0a5c [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",
89 "pattern": "^0x[0-9a-fA-F]{2}00$"
90 },
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
Patrick Williams26919f02022-12-08 06:12:43 -0600103 "Words6To9": { "$ref": "#/definitions/srcWords6To9" }
Matt Spinler10f3d932019-09-26 16:24:14 -0500104 },
105
106 "required": ["ReasonCode", "Words6To9"],
107 "additionalProperties": false
108 },
109
Patrick Williams26919f02022-12-08 06:12:43 -0600110 "documentation": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500111 "description": "This contains event documentation that will be used by tools and parsers.",
112 "type": "object",
113
Patrick Williams26919f02022-12-08 06:12:43 -0600114 "properties": {
115 "Message": { "$ref": "#/definitions/docMessage" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500116
Patrick Williams26919f02022-12-08 06:12:43 -0600117 "MessageArgSources": {
118 "$ref": "#/definitions/docMessageArgSources"
119 },
Matt Spinler10f3d932019-09-26 16:24:14 -0500120
Patrick Williams26919f02022-12-08 06:12:43 -0600121 "Description": { "$ref": "#/definitions/docDescription" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500122
Patrick Williams26919f02022-12-08 06:12:43 -0600123 "Notes": { "$ref": "#/definitions/docNotes" }
Matt Spinler10f3d932019-09-26 16:24:14 -0500124 },
125 "additionalProperties": false,
126 "required": ["Message", "Description"]
127 },
128
Patrick Williams26919f02022-12-08 06:12:43 -0600129 "srcType": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500130 "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.",
131 "type": "string",
132 "enum": ["BD", "11"]
133 },
134
Patrick Williams26919f02022-12-08 06:12:43 -0600135 "docNotes": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500136 "description": "Any notes/comments about the error. An array of strings for manual line wrapping. Optional.",
137 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600138 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500139 "description": "Notes",
140 "type": "string"
141 }
142 },
143
Patrick Williams26919f02022-12-08 06:12:43 -0600144 "reasonCode": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500145 "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.",
146 "type": "string",
147 "pattern": "^0x[0-9a-fA-F]{4}$",
148
Patrick Williams26919f02022-12-08 06:12:43 -0600149 "examples": ["0x3355"]
150 },
151
152 "subsystem": {
153 "description": "PEL subsystem enumeration. See the PEL spec for more detailed definitions.",
154 "type": "string",
155 "enum": [
156 "processor",
157 "processor_fru",
158 "processor_chip",
159 "processor_unit",
160 "processor_bus",
161
162 "memory",
163 "memory_ctlr",
164 "memory_bus",
165 "memory_dimm",
166 "memory_fru",
167 "external_cache",
168
169 "io",
170 "io_hub",
171 "io_bridge",
172 "io_bus",
173 "io_processor",
174 "io_hub_other",
175 "phb",
176
177 "io_adapter",
178 "io_adapter_comm",
179 "io_device",
180 "io_device_dasd",
181 "io_external_general",
182 "io_external_workstation",
183 "io_storage_mezz",
184
185 "cec_hardware",
186 "cec_sp_a",
187 "cec_sp_b",
188 "cec_node_controller",
189 "cec_vpd",
190 "cec_i2c",
191 "cec_chip_iface",
192 "cec_clocks",
193 "cec_op_panel",
194 "cec_tod",
195 "cec_storage_device",
196 "cec_sp_hyp_iface",
197 "cec_service_network",
198 "cec_sp_hostboot_iface",
199
200 "power",
201 "power_supply",
202 "power_control_hw",
203 "power_fans",
204 "power_sequencer",
205
206 "others",
207 "other_hmc",
208 "other_test_tool",
209 "other_media",
210 "other_multiple_subsystems",
211 "other_na",
212 "other_info_src",
213
214 "surv_hyp_lost_sp",
215 "surv_sp_lost_hyp",
216 "surv_sp_lost_hmc",
217 "surv_hmc_lost_lpar",
218 "surv_hmc_lost_bpa",
219 "surv_hmc_lost_hmc",
220
221 "platform_firmware",
222 "bmc_firmware",
223 "hyp_firmware",
224 "partition_firmware",
225 "slic_firmware",
226 "spcn_firmware",
227 "bulk_power_firmware_side_a",
228 "hmc_code_firmware",
229 "bulk_power_firmware_side_b",
230 "virtual_sp",
231 "hostboot",
232 "occ",
233
234 "software",
235 "os_software",
236 "xpf_software",
237 "app_software",
238
239 "ext_env",
240 "input_power_source",
241 "ambient_temp",
242 "user_error",
243 "corrosion"
Matt Spinler10f3d932019-09-26 16:24:14 -0500244 ]
245 },
246
Patrick Williams26919f02022-12-08 06:12:43 -0600247 "possibleSubsystems": {
Matt Spinler23970b02022-02-25 16:34:46 -0600248 "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.",
249 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600250 "items": {
Matt Spinler23970b02022-02-25 16:34:46 -0600251 "$ref": "#/definitions/subsystem"
252 },
253 "minItems": 1,
254 "uniqueItems": true
255 },
256
Patrick Williams26919f02022-12-08 06:12:43 -0600257 "systemAndSeverity": {
Matt Spinler17952d92020-04-10 13:50:31 -0500258 "description": "A severity entry that has an optional system type qualifier. Used when the severity needs to be based on the system type.",
259 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600260 "properties": {
Matt Spinler17952d92020-04-10 13:50:31 -0500261 "System": { "$ref": "#/definitions/system" },
262 "SevValue": { "$ref": "#/definitions/severityTypes" }
263 },
264 "additionalProperties": false,
265 "required": ["SevValue"]
266 },
267
Patrick Williams26919f02022-12-08 06:12:43 -0600268 "severity": {
Matt Spinler17952d92020-04-10 13:50:31 -0500269 "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 -0600270 "oneOf": [
Matt Spinler17952d92020-04-10 13:50:31 -0500271 {
272 "$ref": "#/definitions/severityTypes"
273 },
274 {
275 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600276 "items": {
Matt Spinler17952d92020-04-10 13:50:31 -0500277 "$ref": "#/definitions/systemAndSeverity"
278 },
279 "minItems": 1,
280 "uniqueItems": true
281 }
282 ],
283
Patrick Williams26919f02022-12-08 06:12:43 -0600284 "examples": [
Matt Spinler17952d92020-04-10 13:50:31 -0500285 "unrecoverable",
286
287 [
288 {
289 "System": "systemA",
290 "SevValue": "predictive"
291 },
292 {
293 "SevValue": "unrecoverable"
294 }
295 ]
296 ]
Matt Spinler17952d92020-04-10 13:50:31 -0500297 },
298
Patrick Williams26919f02022-12-08 06:12:43 -0600299 "severityTypes": {
Matt Spinler17952d92020-04-10 13:50:31 -0500300 "description": "PEL severity enumeration. See the PEL spec for more detailed definitions.",
Matt Spinler10f3d932019-09-26 16:24:14 -0500301 "type": "string",
302
Patrick Williams26919f02022-12-08 06:12:43 -0600303 "enum": [
304 "non_error",
Matt Spinler10f3d932019-09-26 16:24:14 -0500305
Patrick Williams26919f02022-12-08 06:12:43 -0600306 "recovered",
Matt Spinler10f3d932019-09-26 16:24:14 -0500307
Patrick Williams26919f02022-12-08 06:12:43 -0600308 "predictive",
309 "predictive_degraded_perf",
310 "predictive_reboot",
311 "predictive_reboot_degraded",
312 "predictive_redundancy_loss",
Matt Spinler10f3d932019-09-26 16:24:14 -0500313
Patrick Williams26919f02022-12-08 06:12:43 -0600314 "unrecoverable",
315 "unrecoverable_degraded_perf",
316 "unrecoverable_redundancy_loss",
317 "unrecoverable_redundancy_loss_perf",
318 "unrecoverable_loss_of_function",
Matt Spinler10f3d932019-09-26 16:24:14 -0500319
Patrick Williams26919f02022-12-08 06:12:43 -0600320 "critical",
321 "critical_system_term",
322 "critical_imminent_failure",
323 "critical_partition_term",
324 "critical_partition_imminent_failure",
Matt Spinler10f3d932019-09-26 16:24:14 -0500325
Patrick Williams26919f02022-12-08 06:12:43 -0600326 "diagnostic_error",
327 "diagnostic_error_incorrect_results",
Matt Spinler10f3d932019-09-26 16:24:14 -0500328
Patrick Williams26919f02022-12-08 06:12:43 -0600329 "symptom_recovered",
330 "symptom_predictive",
331 "symptom_unrecoverable",
332 "symptom_critical",
333 "symptom_diag_err"
334 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500335 },
336
Patrick Williams26919f02022-12-08 06:12:43 -0600337 "mfgSeverity": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500338 "description": "The PEL severity to use in manufacturing reporting mode",
339 "$ref": "#/definitions/severity"
340 },
341
Patrick Williams26919f02022-12-08 06:12:43 -0600342 "eventScope": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500343 "description": "The event scope PEL field. Optional and defaults to entire_platform",
344 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600345 "enum": [
346 "entire_platform",
347 "single_partition",
348 "multiple_partitions",
349 "possibly_multiple_platforms"
350 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500351 },
352
Patrick Williams26919f02022-12-08 06:12:43 -0600353 "eventType": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500354 "description": "The event type PEL field. Optional and defaults to na",
355 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600356 "enum": [
357 "na",
358 "misc_information_only",
359 "tracing_event",
360 "dump_notification",
361 "env_normal"
362 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500363 },
364
Patrick Williams26919f02022-12-08 06:12:43 -0600365 "actionFlags": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500366 "description": "The action flags Private Header PEL field",
367 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600368 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500369 "description": "List of action flags",
370 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600371 "enum": [
372 "service_action",
373 "hidden",
374 "report",
375 "dont_report",
376 "call_home",
377 "isolation_incomplete",
378 "termination"
379 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500380 }
381 },
382
Patrick Williams26919f02022-12-08 06:12:43 -0600383 "mfgActionFlags": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500384 "description": "The PEL action flags to use in manufacturing reporting mode",
385 "$ref": "#/definitions/actionFlags"
386 },
387
Patrick Williams26919f02022-12-08 06:12:43 -0600388 "docDescription": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500389 "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 -0500390 "type": "string",
391 "minLength": 8
Matt Spinler10f3d932019-09-26 16:24:14 -0500392 },
393
Patrick Williams26919f02022-12-08 06:12:43 -0600394 "docMessage": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500395 "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.",
396 "type": "string",
Matt Spinler88b35412022-06-22 11:00:04 -0500397 "minLength": 8,
Matt Spinler10f3d932019-09-26 16:24:14 -0500398 "examples": [
Patrick Williams26919f02022-12-08 06:12:43 -0600399 { "Message": "The code update from level %1 to %2 failed" }
Matt Spinler10f3d932019-09-26 16:24:14 -0500400 ]
401 },
402
Patrick Williams26919f02022-12-08 06:12:43 -0600403 "docMessageArgSources": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500404 "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.",
405 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600406 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500407 "type": "string",
408 "enum": ["SRCWord6", "SRCWord7", "SRCWord8", "SRCWord9"]
409 },
410 "additionalItems": false
411 },
412
Patrick Williams26919f02022-12-08 06:12:43 -0600413 "symptomID": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500414 "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).",
415 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600416 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500417 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600418 "enum": [
419 "SRCWord3",
420 "SRCWord4",
421 "SRCWord5",
422 "SRCWord6",
423 "SRCWord7",
424 "SRCWord8",
425 "SRCWord9"
426 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500427 },
428 "minItems": 1,
429 "maxItems": 8,
430 "uniqueItems": true,
431
Patrick Williams26919f02022-12-08 06:12:43 -0600432 "examples": [["SRCWord3", "SRCWord6"]]
Matt Spinler10f3d932019-09-26 16:24:14 -0500433 },
434
Patrick Williams26919f02022-12-08 06:12:43 -0600435 "srcWords6To9": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500436 "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.",
437 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600438 "patternProperties": {
439 "^[6-9]$": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500440 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600441 "properties": {
442 "Description": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500443 "description": "What the value in the field represents.",
444 "type": "string"
445 },
Patrick Williams26919f02022-12-08 06:12:43 -0600446 "AdditionalDataPropSource": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500447 "description": "Which AdditionalData property key to get the data from.",
448 "type": "string"
449 }
450 },
451
452 "additionalProperties": false
453 },
454
Patrick Williams26919f02022-12-08 06:12:43 -0600455 "examples": {
456 "SRCWords6To9": {
457 "6": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500458 "Description": "Failing PSU number",
459 "AdditionalDataPropSource": "PSU_NUM"
460 }
461 }
462 }
463 },
464 "additionalProperties": false
Matt Spinler9e819c72020-02-12 16:44:16 -0600465 },
Matt Spinler10f3d932019-09-26 16:24:14 -0500466
Patrick Williams26919f02022-12-08 06:12:43 -0600467 "adName": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600468 "description": "The name of the AdditionalData entry to use to index into the callout tables.",
469 "type": "string"
470 },
471
Patrick Williams26919f02022-12-08 06:12:43 -0600472 "adValue": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600473 "description": "The value for the AdditionalData entry specified by ADName that indexes into the callout tables.",
474 "type": "string"
475 },
476
Patrick Williams26919f02022-12-08 06:12:43 -0600477 "locationCode": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600478 "description": "A location code - the segment after the 'UTMS-' prefix. (e.g. P1-C2)",
479 "type": "string"
480 },
481
Patrick Williams26919f02022-12-08 06:12:43 -0600482 "priority": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600483 "description": "The callout priority. See the PEL spec for priority definitions.",
484 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600485 "enum": [
486 "high",
487 "medium",
488 "low",
489 "medium_group_a",
490 "medium_group_b",
491 "medium_group_c"
492 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600493 },
494
Patrick Williams26919f02022-12-08 06:12:43 -0600495 "symbolicFRU": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500496 "description": "The symbolic FRU callout.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600497 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600498 "enum": [
499 "service_docs",
500 "pwrsply",
501 "air_mover",
502 "pgood_part",
503 "usb_pgood",
504 "ambient_temp",
505 "ambient_temp_back",
506 "ambient_perf_loss",
507 "ac_module",
508 "fan_cable",
509 "cable_continued",
510 "altitude",
511 "pcie_hot_plug",
Jim Wright9b779e42022-12-16 17:50:23 -0600512 "overtemp",
513 "memory_dimm"
Patrick Williams26919f02022-12-08 06:12:43 -0600514 ]
Matt Spinlerd4086652020-04-08 15:36:22 -0500515 },
516
Patrick Williams26919f02022-12-08 06:12:43 -0600517 "symbolicFRUTrusted": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500518 "description": "The symbolic FRU callout with a trusted location code. (Can light LEDs).",
519 "ref": "#/definitions/symbolicFRU"
Matt Spinler9e819c72020-02-12 16:44:16 -0600520 },
521
Patrick Williams26919f02022-12-08 06:12:43 -0600522 "procedure": {
Matt Spinler578e0702020-03-13 09:40:43 -0500523 "description": "The maintenance procedure callout.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600524 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600525 "enum": [
526 "bmc_code",
527 "next_level_support",
528 "sbe_code",
529 "fsi_path",
530 "power_overcurrent",
Priyanga Ramasamy134e1e12022-12-02 07:03:39 -0600531 "find_sue_root_cause",
532 "system_vpd_correction"
Patrick Williams26919f02022-12-08 06:12:43 -0600533 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600534 },
535
Patrick Williams26919f02022-12-08 06:12:43 -0600536 "useInventoryLocCode": {
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500537 "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.",
538 "type": "boolean"
539 },
540
Patrick Williams26919f02022-12-08 06:12:43 -0600541 "calloutList": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500542 "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 -0600543 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600544 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600545 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600546 "properties": {
547 "Priority": { "$ref": "#/definitions/priority" },
548 "LocCode": { "$ref": "#/definitions/locationCode" },
549 "SymbolicFRU": { "$ref": "#/definitions/symbolicFRU" },
550 "SymbolicFRUTrusted": {
551 "$ref": "#/definitions/symbolicFRUTrusted"
552 },
553 "Procedure": { "$ref": "#/definitions/procedure" },
554 "UseInventoryLocCode": {
555 "$ref": "#/definitions/useInventoryLocCode"
556 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600557 },
558 "additionalProperties": false,
559 "required": ["Priority"],
560
Patrick Williams26919f02022-12-08 06:12:43 -0600561 "oneOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500562 {
Patrick Williams26919f02022-12-08 06:12:43 -0600563 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500564 { "required": ["LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600565 { "not": { "required": ["SymbolicFRU"] } },
566 { "not": { "required": ["SymbolicFRUTrusted"] } },
567 { "not": { "required": ["Procedure"] } },
568 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500569 ]
570 },
571 {
Patrick Williams26919f02022-12-08 06:12:43 -0600572 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500573 { "required": ["SymbolicFRU"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600574 { "not": { "required": ["SymbolicFRUTrusted"] } },
575 { "not": { "required": ["Procedure"] } },
576 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500577 ]
578 },
579
580 {
Patrick Williams26919f02022-12-08 06:12:43 -0600581 "allOf": [
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500582 { "required": ["SymbolicFRUTrusted", "LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600583 { "not": { "required": ["SymbolicFRU"] } },
584 { "not": { "required": ["Procedure"] } },
585 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500586 ]
587 },
588
589 {
Patrick Williams26919f02022-12-08 06:12:43 -0600590 "allOf": [
591 {
592 "required": [
593 "SymbolicFRUTrusted",
594 "UseInventoryLocCode"
595 ]
596 },
597 { "not": { "required": ["SymbolicFRU"] } },
598 { "not": { "required": ["Procedure"] } },
599 { "not": { "required": ["LocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500600 ]
601 },
602
603 {
Patrick Williams26919f02022-12-08 06:12:43 -0600604 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500605 { "required": ["Procedure"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600606 { "not": { "required": ["SymbolicFRU"] } },
607 { "not": { "required": ["SymbolicFRUTrusted"] } },
608 { "not": { "required": ["LocCode"] } },
609 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500610 ]
611 }
612 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600613 },
614 "minItems": 1,
615 "maxItems": 10,
616
Patrick Williams26919f02022-12-08 06:12:43 -0600617 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600618 {
619 "Priority": "high",
620 "LocCode": "P1"
621 },
622 {
623 "Priority": "medium",
624 "LocCode": "P2",
625 "SymbolicFRU": "PROCFRU"
626 },
627 {
628 "Priority": "low",
629 "Procedure": "SVCDOCS"
630 }
631 ]
632 },
633
Patrick Williams26919f02022-12-08 06:12:43 -0600634 "system": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600635 "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 -0500636 "type": "string",
637 "minLength": 1
Matt Spinler9e819c72020-02-12 16:44:16 -0600638 },
639
Patrick Williams26919f02022-12-08 06:12:43 -0600640 "callouts": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600641 "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.",
642 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600643 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600644 "type": "object",
645
Patrick Williams26919f02022-12-08 06:12:43 -0600646 "properties": {
647 "System": { "$ref": "#/definitions/system" },
648 "CalloutList": { "$ref": "#/definitions/calloutList" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600649 },
650 "required": ["CalloutList"],
651 "additionalProperties": false
652 },
653 "minItems": 1,
654 "maxItems": 10,
655
Patrick Williams26919f02022-12-08 06:12:43 -0600656 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600657 [
658 {
659 "System": "system1",
Patrick Williams26919f02022-12-08 06:12:43 -0600660 "CalloutList": [{ "Priority": "high", "LocCode": "P1" }]
Matt Spinler9e819c72020-02-12 16:44:16 -0600661 },
662 {
Patrick Williams26919f02022-12-08 06:12:43 -0600663 "CalloutList": [
664 { "Priority": "high", "Procedure": "NEXTLVL" }
665 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600666 }
667 ]
668 ]
669 },
670
Patrick Williams26919f02022-12-08 06:12:43 -0600671 "calloutsWithTheirADValues": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600672 "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.",
673 "type": "array",
674
Patrick Williams26919f02022-12-08 06:12:43 -0600675 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600676 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600677 "properties": {
678 "ADValue": { "$ref": "#/definitions/adValue" },
679 "Callouts": { "$ref": "#/definitions/callouts" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600680 },
681 "additionalProperties": false,
682 "required": ["ADValue", "Callouts"]
683 },
684 "minItems": 1,
Matt Spinler9e819c72020-02-12 16:44:16 -0600685
Patrick Williams26919f02022-12-08 06:12:43 -0600686 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600687 [
688 {
689 "ADValue": "0",
Patrick Williams26919f02022-12-08 06:12:43 -0600690 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600691 {
Patrick Williams26919f02022-12-08 06:12:43 -0600692 "CalloutList": [
693 { "Priority": "high", "LocCode": "P1" }
694 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600695 }
696 ]
697 },
698 {
699 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600700 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600701 {
Patrick Williams26919f02022-12-08 06:12:43 -0600702 "CalloutList": [
703 { "Priority": "high", "LocCode": "P2" }
704 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600705 }
706 ]
707 }
708 ]
709 ]
710 },
711
Patrick Williams26919f02022-12-08 06:12:43 -0600712 "calloutsUsingAD": {
Matt Spinler3d923312022-08-01 09:52:55 -0500713 "description": "This contains the callouts that can be specified based on a value in the AdditionalData property.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600714 "type": "object",
715
Patrick Williams26919f02022-12-08 06:12:43 -0600716 "properties": {
717 "ADName": { "$ref": "#/definitions/adName" },
718 "CalloutsWithTheirADValues": {
719 "$ref": "#/definitions/calloutsWithTheirADValues"
720 },
721 "CalloutsWhenNoADMatch": {
722 "$ref": "#/definitions/calloutsWhenNoADMatch"
723 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600724 },
725 "additionalProperties": false,
726 "required": ["ADName", "CalloutsWithTheirADValues"],
727
Patrick Williams26919f02022-12-08 06:12:43 -0600728 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600729 {
730 "ADName": "PROC_NUM",
Patrick Williams26919f02022-12-08 06:12:43 -0600731 "CalloutsWithTheirADValues": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600732 {
733 "ADValue": "0",
Patrick Williams26919f02022-12-08 06:12:43 -0600734 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600735 {
Patrick Williams26919f02022-12-08 06:12:43 -0600736 "CalloutList": [
737 { "Priority": "high", "LocCode": "P1" }
738 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600739 }
740 ]
741 },
742 {
743 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600744 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600745 {
Patrick Williams26919f02022-12-08 06:12:43 -0600746 "CalloutList": [
747 { "Priority": "high", "LocCode": "P2" }
748 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600749 }
750 ]
751 }
752 ]
753 }
754 ]
Matt Spinler3d923312022-08-01 09:52:55 -0500755 },
756
Patrick Williams26919f02022-12-08 06:12:43 -0600757 "calloutsWhenNoADMatch": {
Matt Spinler3d923312022-08-01 09:52:55 -0500758 "description": "This contains the callouts to use when a match in the 'CalloutsWithTheirADValues array isn't found.",
759 "$ref": "#/definitions/callouts"
Matt Spinlerf22b4a12022-12-15 11:20:35 -0600760 },
761
762 "numLines": {
763 "description": "The number of lines of the journal to capture.",
764 "type": "integer",
765 "minimum": 1,
766 "maximum": 100
767 },
768
769 "syslogID": {
770 "description": "SYSLOG_IDENTIFIER value from the journal whose entries to capture.",
771 "type": "string",
772 "minLength": 1
773 },
774
775 "journalSection": {
776 "type": "object",
777 "properties": {
778 "SyslogID": { "$ref": "#/definitions/syslogID" },
779 "NumLines": { "$ref": "#/definitions/numLines" }
780 },
781 "additionalProperties": false,
782 "required": ["SyslogID", "NumLines"]
783 },
784
785 "journalSectionList": {
786 "description": "Describes which syslog IDs and how many journal lines to capture",
787 "type": "array",
788 "items": {
789 "$ref": "#/definitions/journalSection"
790 },
791 "minItems": 1,
792 "uniqueItems": true,
793 "examples": [
794 {
795 "Sections": [
796 {
797 "SyslogID": "phosphor-bmc-state-manager",
798 "NumLines": 20
799 }
800 ]
801 }
802 ]
803 },
804
805 "journalCapture": {
806 "description": "Allows a PEL to capture journal data in UserData sections.",
807 "type": "object",
808 "properties": {
809 "NumLines": { "$ref": "#/definitions/numLines" },
810 "Sections": { "$ref": "#/definitions/journalSectionList" }
811 },
812 "oneOf": [
813 {
814 "required": ["NumLines"]
815 },
816 {
817 "required": ["Sections"]
818 }
819 ],
820 "additionalProperties": false,
821 "examples": [
822 {
823 "JournalCapture": {
824 "NumLines": 30
825 }
826 },
827 {
828 "JournalCapture": {
829 "Sections": [
830 {
831 "SyslogID": "phosphor-bmc-state-manager",
832 "NumLines": 20
833 },
834 {
835 "SyslogID": "phosphor-log-manager",
836 "NumLines": 15
837 }
838 ]
839 }
840 }
841 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600842 }
Matt Spinler10f3d932019-09-26 16:24:14 -0500843 }
844}