blob: 0d23cd847ccb2671e24e10cc99875fe3d28ffd77 [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",
Marri Devender Rao385446b2023-04-14 00:16:35 -0500532 "system_vpd_correction",
533 "detected_issue_need_service"
Patrick Williams26919f02022-12-08 06:12:43 -0600534 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600535 },
536
Patrick Williams26919f02022-12-08 06:12:43 -0600537 "useInventoryLocCode": {
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500538 "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.",
539 "type": "boolean"
540 },
541
Patrick Williams26919f02022-12-08 06:12:43 -0600542 "calloutList": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500543 "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 -0600544 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600545 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600546 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600547 "properties": {
548 "Priority": { "$ref": "#/definitions/priority" },
549 "LocCode": { "$ref": "#/definitions/locationCode" },
550 "SymbolicFRU": { "$ref": "#/definitions/symbolicFRU" },
551 "SymbolicFRUTrusted": {
552 "$ref": "#/definitions/symbolicFRUTrusted"
553 },
554 "Procedure": { "$ref": "#/definitions/procedure" },
555 "UseInventoryLocCode": {
556 "$ref": "#/definitions/useInventoryLocCode"
557 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600558 },
559 "additionalProperties": false,
560 "required": ["Priority"],
561
Patrick Williams26919f02022-12-08 06:12:43 -0600562 "oneOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500563 {
Patrick Williams26919f02022-12-08 06:12:43 -0600564 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500565 { "required": ["LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600566 { "not": { "required": ["SymbolicFRU"] } },
567 { "not": { "required": ["SymbolicFRUTrusted"] } },
568 { "not": { "required": ["Procedure"] } },
569 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500570 ]
571 },
572 {
Patrick Williams26919f02022-12-08 06:12:43 -0600573 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500574 { "required": ["SymbolicFRU"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600575 { "not": { "required": ["SymbolicFRUTrusted"] } },
576 { "not": { "required": ["Procedure"] } },
577 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500578 ]
579 },
580
581 {
Patrick Williams26919f02022-12-08 06:12:43 -0600582 "allOf": [
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500583 { "required": ["SymbolicFRUTrusted", "LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600584 { "not": { "required": ["SymbolicFRU"] } },
585 { "not": { "required": ["Procedure"] } },
586 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500587 ]
588 },
589
590 {
Patrick Williams26919f02022-12-08 06:12:43 -0600591 "allOf": [
592 {
593 "required": [
594 "SymbolicFRUTrusted",
595 "UseInventoryLocCode"
596 ]
597 },
598 { "not": { "required": ["SymbolicFRU"] } },
599 { "not": { "required": ["Procedure"] } },
600 { "not": { "required": ["LocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500601 ]
602 },
603
604 {
Patrick Williams26919f02022-12-08 06:12:43 -0600605 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500606 { "required": ["Procedure"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600607 { "not": { "required": ["SymbolicFRU"] } },
608 { "not": { "required": ["SymbolicFRUTrusted"] } },
609 { "not": { "required": ["LocCode"] } },
610 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500611 ]
612 }
613 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600614 },
615 "minItems": 1,
616 "maxItems": 10,
617
Patrick Williams26919f02022-12-08 06:12:43 -0600618 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600619 {
620 "Priority": "high",
621 "LocCode": "P1"
622 },
623 {
624 "Priority": "medium",
625 "LocCode": "P2",
626 "SymbolicFRU": "PROCFRU"
627 },
628 {
629 "Priority": "low",
630 "Procedure": "SVCDOCS"
631 }
632 ]
633 },
634
Patrick Williams26919f02022-12-08 06:12:43 -0600635 "system": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600636 "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 -0500637 "type": "string",
638 "minLength": 1
Matt Spinler9e819c72020-02-12 16:44:16 -0600639 },
640
Patrick Williams26919f02022-12-08 06:12:43 -0600641 "callouts": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600642 "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.",
643 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600644 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600645 "type": "object",
646
Patrick Williams26919f02022-12-08 06:12:43 -0600647 "properties": {
648 "System": { "$ref": "#/definitions/system" },
649 "CalloutList": { "$ref": "#/definitions/calloutList" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600650 },
651 "required": ["CalloutList"],
652 "additionalProperties": false
653 },
654 "minItems": 1,
655 "maxItems": 10,
656
Patrick Williams26919f02022-12-08 06:12:43 -0600657 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600658 [
659 {
660 "System": "system1",
Patrick Williams26919f02022-12-08 06:12:43 -0600661 "CalloutList": [{ "Priority": "high", "LocCode": "P1" }]
Matt Spinler9e819c72020-02-12 16:44:16 -0600662 },
663 {
Patrick Williams26919f02022-12-08 06:12:43 -0600664 "CalloutList": [
665 { "Priority": "high", "Procedure": "NEXTLVL" }
666 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600667 }
668 ]
669 ]
670 },
671
Patrick Williams26919f02022-12-08 06:12:43 -0600672 "calloutsWithTheirADValues": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600673 "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.",
674 "type": "array",
675
Patrick Williams26919f02022-12-08 06:12:43 -0600676 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600677 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600678 "properties": {
679 "ADValue": { "$ref": "#/definitions/adValue" },
680 "Callouts": { "$ref": "#/definitions/callouts" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600681 },
682 "additionalProperties": false,
683 "required": ["ADValue", "Callouts"]
684 },
685 "minItems": 1,
Matt Spinler9e819c72020-02-12 16:44:16 -0600686
Patrick Williams26919f02022-12-08 06:12:43 -0600687 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600688 [
689 {
690 "ADValue": "0",
Patrick Williams26919f02022-12-08 06:12:43 -0600691 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600692 {
Patrick Williams26919f02022-12-08 06:12:43 -0600693 "CalloutList": [
694 { "Priority": "high", "LocCode": "P1" }
695 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600696 }
697 ]
698 },
699 {
700 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600701 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600702 {
Patrick Williams26919f02022-12-08 06:12:43 -0600703 "CalloutList": [
704 { "Priority": "high", "LocCode": "P2" }
705 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600706 }
707 ]
708 }
709 ]
710 ]
711 },
712
Patrick Williams26919f02022-12-08 06:12:43 -0600713 "calloutsUsingAD": {
Matt Spinler3d923312022-08-01 09:52:55 -0500714 "description": "This contains the callouts that can be specified based on a value in the AdditionalData property.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600715 "type": "object",
716
Patrick Williams26919f02022-12-08 06:12:43 -0600717 "properties": {
718 "ADName": { "$ref": "#/definitions/adName" },
719 "CalloutsWithTheirADValues": {
720 "$ref": "#/definitions/calloutsWithTheirADValues"
721 },
722 "CalloutsWhenNoADMatch": {
723 "$ref": "#/definitions/calloutsWhenNoADMatch"
724 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600725 },
726 "additionalProperties": false,
727 "required": ["ADName", "CalloutsWithTheirADValues"],
728
Patrick Williams26919f02022-12-08 06:12:43 -0600729 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600730 {
731 "ADName": "PROC_NUM",
Patrick Williams26919f02022-12-08 06:12:43 -0600732 "CalloutsWithTheirADValues": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600733 {
734 "ADValue": "0",
Patrick Williams26919f02022-12-08 06:12:43 -0600735 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600736 {
Patrick Williams26919f02022-12-08 06:12:43 -0600737 "CalloutList": [
738 { "Priority": "high", "LocCode": "P1" }
739 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600740 }
741 ]
742 },
743 {
744 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600745 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600746 {
Patrick Williams26919f02022-12-08 06:12:43 -0600747 "CalloutList": [
748 { "Priority": "high", "LocCode": "P2" }
749 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600750 }
751 ]
752 }
753 ]
754 }
755 ]
Matt Spinler3d923312022-08-01 09:52:55 -0500756 },
757
Patrick Williams26919f02022-12-08 06:12:43 -0600758 "calloutsWhenNoADMatch": {
Matt Spinler3d923312022-08-01 09:52:55 -0500759 "description": "This contains the callouts to use when a match in the 'CalloutsWithTheirADValues array isn't found.",
760 "$ref": "#/definitions/callouts"
Matt Spinlerf22b4a12022-12-15 11:20:35 -0600761 },
762
763 "numLines": {
764 "description": "The number of lines of the journal to capture.",
765 "type": "integer",
766 "minimum": 1,
767 "maximum": 100
768 },
769
770 "syslogID": {
771 "description": "SYSLOG_IDENTIFIER value from the journal whose entries to capture.",
772 "type": "string",
773 "minLength": 1
774 },
775
776 "journalSection": {
777 "type": "object",
778 "properties": {
779 "SyslogID": { "$ref": "#/definitions/syslogID" },
780 "NumLines": { "$ref": "#/definitions/numLines" }
781 },
782 "additionalProperties": false,
783 "required": ["SyslogID", "NumLines"]
784 },
785
786 "journalSectionList": {
787 "description": "Describes which syslog IDs and how many journal lines to capture",
788 "type": "array",
789 "items": {
790 "$ref": "#/definitions/journalSection"
791 },
792 "minItems": 1,
793 "uniqueItems": true,
794 "examples": [
795 {
796 "Sections": [
797 {
798 "SyslogID": "phosphor-bmc-state-manager",
799 "NumLines": 20
800 }
801 ]
802 }
803 ]
804 },
805
806 "journalCapture": {
807 "description": "Allows a PEL to capture journal data in UserData sections.",
808 "type": "object",
809 "properties": {
810 "NumLines": { "$ref": "#/definitions/numLines" },
811 "Sections": { "$ref": "#/definitions/journalSectionList" }
812 },
813 "oneOf": [
814 {
815 "required": ["NumLines"]
816 },
817 {
818 "required": ["Sections"]
819 }
820 ],
821 "additionalProperties": false,
822 "examples": [
823 {
824 "JournalCapture": {
825 "NumLines": 30
826 }
827 },
828 {
829 "JournalCapture": {
830 "Sections": [
831 {
832 "SyslogID": "phosphor-bmc-state-manager",
833 "NumLines": 20
834 },
835 {
836 "SyslogID": "phosphor-log-manager",
837 "NumLines": 15
838 }
839 ]
840 }
841 }
842 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600843 }
Matt Spinler10f3d932019-09-26 16:24:14 -0500844 }
845}