blob: d105b3d30e2112b15935e6ce003d35e663677a7a [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
Patrick Williams26919f02022-12-08 06:12:43 -060058 "Callouts": { "$ref": "#/definitions/callouts" }
Matt Spinler10f3d932019-09-26 16:24:14 -050059 },
60
Matt Spinler23970b02022-02-25 16:34:46 -060061 "required": ["Name", "SRC", "Documentation"],
Matt Spinler9e819c72020-02-12 16:44:16 -060062 "additionalProperties": false,
63
Patrick Williams26919f02022-12-08 06:12:43 -060064 "not": {
Matt Spinler9e819c72020-02-12 16:44:16 -060065 "required": ["CalloutsUsingAD", "Callouts"]
Matt Spinler23970b02022-02-25 16:34:46 -060066 },
67
Patrick Williams26919f02022-12-08 06:12:43 -060068 "oneOf": [
Matt Spinler23970b02022-02-25 16:34:46 -060069 {
70 "required": ["Subsystem"]
71 },
72 {
73 "required": ["PossibleSubsystems"]
74 }
75 ]
Matt Spinler10f3d932019-09-26 16:24:14 -050076 }
77 },
78
Patrick Williams26919f02022-12-08 06:12:43 -060079 "errorName": {
Matt Spinler10f3d932019-09-26 16:24:14 -050080 "description": "The 'Message' property of an OpenBMC event log",
81 "type": "string"
82 },
83
Patrick Williams26919f02022-12-08 06:12:43 -060084 "componentID": {
Matt Spinler10f3d932019-09-26 16:24:14 -050085 "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.",
86 "type": "string",
87 "pattern": "^0x[0-9a-fA-F]{2}00$"
88 },
89
Patrick Williams26919f02022-12-08 06:12:43 -060090 "src": {
Matt Spinler10f3d932019-09-26 16:24:14 -050091 "description": "Contains fields describing the primary SRC embedded in the PEL",
92 "type": "object",
93
Patrick Williams26919f02022-12-08 06:12:43 -060094 "properties": {
95 "Type": { "$ref": "#/definitions/srcType" },
Matt Spinler10f3d932019-09-26 16:24:14 -050096
Patrick Williams26919f02022-12-08 06:12:43 -060097 "ReasonCode": { "$ref": "#/definitions/reasonCode" },
Matt Spinler10f3d932019-09-26 16:24:14 -050098
Patrick Williams26919f02022-12-08 06:12:43 -060099 "SymptomIDFields": { "$ref": "#/definitions/symptomID" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500100
Patrick Williams26919f02022-12-08 06:12:43 -0600101 "Words6To9": { "$ref": "#/definitions/srcWords6To9" }
Matt Spinler10f3d932019-09-26 16:24:14 -0500102 },
103
104 "required": ["ReasonCode", "Words6To9"],
105 "additionalProperties": false
106 },
107
Patrick Williams26919f02022-12-08 06:12:43 -0600108 "documentation": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500109 "description": "This contains event documentation that will be used by tools and parsers.",
110 "type": "object",
111
Patrick Williams26919f02022-12-08 06:12:43 -0600112 "properties": {
113 "Message": { "$ref": "#/definitions/docMessage" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500114
Patrick Williams26919f02022-12-08 06:12:43 -0600115 "MessageArgSources": {
116 "$ref": "#/definitions/docMessageArgSources"
117 },
Matt Spinler10f3d932019-09-26 16:24:14 -0500118
Patrick Williams26919f02022-12-08 06:12:43 -0600119 "Description": { "$ref": "#/definitions/docDescription" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500120
Patrick Williams26919f02022-12-08 06:12:43 -0600121 "Notes": { "$ref": "#/definitions/docNotes" }
Matt Spinler10f3d932019-09-26 16:24:14 -0500122 },
123 "additionalProperties": false,
124 "required": ["Message", "Description"]
125 },
126
Patrick Williams26919f02022-12-08 06:12:43 -0600127 "srcType": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500128 "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.",
129 "type": "string",
130 "enum": ["BD", "11"]
131 },
132
Patrick Williams26919f02022-12-08 06:12:43 -0600133 "docNotes": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500134 "description": "Any notes/comments about the error. An array of strings for manual line wrapping. Optional.",
135 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600136 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500137 "description": "Notes",
138 "type": "string"
139 }
140 },
141
Patrick Williams26919f02022-12-08 06:12:43 -0600142 "reasonCode": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500143 "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.",
144 "type": "string",
145 "pattern": "^0x[0-9a-fA-F]{4}$",
146
Patrick Williams26919f02022-12-08 06:12:43 -0600147 "examples": ["0x3355"]
148 },
149
150 "subsystem": {
151 "description": "PEL subsystem enumeration. See the PEL spec for more detailed definitions.",
152 "type": "string",
153 "enum": [
154 "processor",
155 "processor_fru",
156 "processor_chip",
157 "processor_unit",
158 "processor_bus",
159
160 "memory",
161 "memory_ctlr",
162 "memory_bus",
163 "memory_dimm",
164 "memory_fru",
165 "external_cache",
166
167 "io",
168 "io_hub",
169 "io_bridge",
170 "io_bus",
171 "io_processor",
172 "io_hub_other",
173 "phb",
174
175 "io_adapter",
176 "io_adapter_comm",
177 "io_device",
178 "io_device_dasd",
179 "io_external_general",
180 "io_external_workstation",
181 "io_storage_mezz",
182
183 "cec_hardware",
184 "cec_sp_a",
185 "cec_sp_b",
186 "cec_node_controller",
187 "cec_vpd",
188 "cec_i2c",
189 "cec_chip_iface",
190 "cec_clocks",
191 "cec_op_panel",
192 "cec_tod",
193 "cec_storage_device",
194 "cec_sp_hyp_iface",
195 "cec_service_network",
196 "cec_sp_hostboot_iface",
197
198 "power",
199 "power_supply",
200 "power_control_hw",
201 "power_fans",
202 "power_sequencer",
203
204 "others",
205 "other_hmc",
206 "other_test_tool",
207 "other_media",
208 "other_multiple_subsystems",
209 "other_na",
210 "other_info_src",
211
212 "surv_hyp_lost_sp",
213 "surv_sp_lost_hyp",
214 "surv_sp_lost_hmc",
215 "surv_hmc_lost_lpar",
216 "surv_hmc_lost_bpa",
217 "surv_hmc_lost_hmc",
218
219 "platform_firmware",
220 "bmc_firmware",
221 "hyp_firmware",
222 "partition_firmware",
223 "slic_firmware",
224 "spcn_firmware",
225 "bulk_power_firmware_side_a",
226 "hmc_code_firmware",
227 "bulk_power_firmware_side_b",
228 "virtual_sp",
229 "hostboot",
230 "occ",
231
232 "software",
233 "os_software",
234 "xpf_software",
235 "app_software",
236
237 "ext_env",
238 "input_power_source",
239 "ambient_temp",
240 "user_error",
241 "corrosion"
Matt Spinler10f3d932019-09-26 16:24:14 -0500242 ]
243 },
244
Patrick Williams26919f02022-12-08 06:12:43 -0600245 "possibleSubsystems": {
Matt Spinler23970b02022-02-25 16:34:46 -0600246 "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.",
247 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600248 "items": {
Matt Spinler23970b02022-02-25 16:34:46 -0600249 "$ref": "#/definitions/subsystem"
250 },
251 "minItems": 1,
252 "uniqueItems": true
253 },
254
Patrick Williams26919f02022-12-08 06:12:43 -0600255 "systemAndSeverity": {
Matt Spinler17952d92020-04-10 13:50:31 -0500256 "description": "A severity entry that has an optional system type qualifier. Used when the severity needs to be based on the system type.",
257 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600258 "properties": {
Matt Spinler17952d92020-04-10 13:50:31 -0500259 "System": { "$ref": "#/definitions/system" },
260 "SevValue": { "$ref": "#/definitions/severityTypes" }
261 },
262 "additionalProperties": false,
263 "required": ["SevValue"]
264 },
265
Patrick Williams26919f02022-12-08 06:12:43 -0600266 "severity": {
Matt Spinler17952d92020-04-10 13:50:31 -0500267 "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 -0600268 "oneOf": [
Matt Spinler17952d92020-04-10 13:50:31 -0500269 {
270 "$ref": "#/definitions/severityTypes"
271 },
272 {
273 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600274 "items": {
Matt Spinler17952d92020-04-10 13:50:31 -0500275 "$ref": "#/definitions/systemAndSeverity"
276 },
277 "minItems": 1,
278 "uniqueItems": true
279 }
280 ],
281
Patrick Williams26919f02022-12-08 06:12:43 -0600282 "examples": [
Matt Spinler17952d92020-04-10 13:50:31 -0500283 "unrecoverable",
284
285 [
286 {
287 "System": "systemA",
288 "SevValue": "predictive"
289 },
290 {
291 "SevValue": "unrecoverable"
292 }
293 ]
294 ]
Matt Spinler17952d92020-04-10 13:50:31 -0500295 },
296
Patrick Williams26919f02022-12-08 06:12:43 -0600297 "severityTypes": {
Matt Spinler17952d92020-04-10 13:50:31 -0500298 "description": "PEL severity enumeration. See the PEL spec for more detailed definitions.",
Matt Spinler10f3d932019-09-26 16:24:14 -0500299 "type": "string",
300
Patrick Williams26919f02022-12-08 06:12:43 -0600301 "enum": [
302 "non_error",
Matt Spinler10f3d932019-09-26 16:24:14 -0500303
Patrick Williams26919f02022-12-08 06:12:43 -0600304 "recovered",
Matt Spinler10f3d932019-09-26 16:24:14 -0500305
Patrick Williams26919f02022-12-08 06:12:43 -0600306 "predictive",
307 "predictive_degraded_perf",
308 "predictive_reboot",
309 "predictive_reboot_degraded",
310 "predictive_redundancy_loss",
Matt Spinler10f3d932019-09-26 16:24:14 -0500311
Patrick Williams26919f02022-12-08 06:12:43 -0600312 "unrecoverable",
313 "unrecoverable_degraded_perf",
314 "unrecoverable_redundancy_loss",
315 "unrecoverable_redundancy_loss_perf",
316 "unrecoverable_loss_of_function",
Matt Spinler10f3d932019-09-26 16:24:14 -0500317
Patrick Williams26919f02022-12-08 06:12:43 -0600318 "critical",
319 "critical_system_term",
320 "critical_imminent_failure",
321 "critical_partition_term",
322 "critical_partition_imminent_failure",
Matt Spinler10f3d932019-09-26 16:24:14 -0500323
Patrick Williams26919f02022-12-08 06:12:43 -0600324 "diagnostic_error",
325 "diagnostic_error_incorrect_results",
Matt Spinler10f3d932019-09-26 16:24:14 -0500326
Patrick Williams26919f02022-12-08 06:12:43 -0600327 "symptom_recovered",
328 "symptom_predictive",
329 "symptom_unrecoverable",
330 "symptom_critical",
331 "symptom_diag_err"
332 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500333 },
334
Patrick Williams26919f02022-12-08 06:12:43 -0600335 "mfgSeverity": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500336 "description": "The PEL severity to use in manufacturing reporting mode",
337 "$ref": "#/definitions/severity"
338 },
339
Patrick Williams26919f02022-12-08 06:12:43 -0600340 "eventScope": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500341 "description": "The event scope PEL field. Optional and defaults to entire_platform",
342 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600343 "enum": [
344 "entire_platform",
345 "single_partition",
346 "multiple_partitions",
347 "possibly_multiple_platforms"
348 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500349 },
350
Patrick Williams26919f02022-12-08 06:12:43 -0600351 "eventType": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500352 "description": "The event type PEL field. Optional and defaults to na",
353 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600354 "enum": [
355 "na",
356 "misc_information_only",
357 "tracing_event",
358 "dump_notification",
359 "env_normal"
360 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500361 },
362
Patrick Williams26919f02022-12-08 06:12:43 -0600363 "actionFlags": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500364 "description": "The action flags Private Header PEL field",
365 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600366 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500367 "description": "List of action flags",
368 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600369 "enum": [
370 "service_action",
371 "hidden",
372 "report",
373 "dont_report",
374 "call_home",
375 "isolation_incomplete",
376 "termination"
377 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500378 }
379 },
380
Patrick Williams26919f02022-12-08 06:12:43 -0600381 "mfgActionFlags": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500382 "description": "The PEL action flags to use in manufacturing reporting mode",
383 "$ref": "#/definitions/actionFlags"
384 },
385
Patrick Williams26919f02022-12-08 06:12:43 -0600386 "docDescription": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500387 "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 -0500388 "type": "string",
389 "minLength": 8
Matt Spinler10f3d932019-09-26 16:24:14 -0500390 },
391
Patrick Williams26919f02022-12-08 06:12:43 -0600392 "docMessage": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500393 "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.",
394 "type": "string",
Matt Spinler88b35412022-06-22 11:00:04 -0500395 "minLength": 8,
Matt Spinler10f3d932019-09-26 16:24:14 -0500396 "examples": [
Patrick Williams26919f02022-12-08 06:12:43 -0600397 { "Message": "The code update from level %1 to %2 failed" }
Matt Spinler10f3d932019-09-26 16:24:14 -0500398 ]
399 },
400
Patrick Williams26919f02022-12-08 06:12:43 -0600401 "docMessageArgSources": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500402 "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.",
403 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600404 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500405 "type": "string",
406 "enum": ["SRCWord6", "SRCWord7", "SRCWord8", "SRCWord9"]
407 },
408 "additionalItems": false
409 },
410
Patrick Williams26919f02022-12-08 06:12:43 -0600411 "symptomID": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500412 "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).",
413 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600414 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500415 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600416 "enum": [
417 "SRCWord3",
418 "SRCWord4",
419 "SRCWord5",
420 "SRCWord6",
421 "SRCWord7",
422 "SRCWord8",
423 "SRCWord9"
424 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500425 },
426 "minItems": 1,
427 "maxItems": 8,
428 "uniqueItems": true,
429
Patrick Williams26919f02022-12-08 06:12:43 -0600430 "examples": [["SRCWord3", "SRCWord6"]]
Matt Spinler10f3d932019-09-26 16:24:14 -0500431 },
432
Patrick Williams26919f02022-12-08 06:12:43 -0600433 "srcWords6To9": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500434 "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.",
435 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600436 "patternProperties": {
437 "^[6-9]$": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500438 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600439 "properties": {
440 "Description": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500441 "description": "What the value in the field represents.",
442 "type": "string"
443 },
Patrick Williams26919f02022-12-08 06:12:43 -0600444 "AdditionalDataPropSource": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500445 "description": "Which AdditionalData property key to get the data from.",
446 "type": "string"
447 }
448 },
449
450 "additionalProperties": false
451 },
452
Patrick Williams26919f02022-12-08 06:12:43 -0600453 "examples": {
454 "SRCWords6To9": {
455 "6": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500456 "Description": "Failing PSU number",
457 "AdditionalDataPropSource": "PSU_NUM"
458 }
459 }
460 }
461 },
462 "additionalProperties": false
Matt Spinler9e819c72020-02-12 16:44:16 -0600463 },
Matt Spinler10f3d932019-09-26 16:24:14 -0500464
Patrick Williams26919f02022-12-08 06:12:43 -0600465 "adName": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600466 "description": "The name of the AdditionalData entry to use to index into the callout tables.",
467 "type": "string"
468 },
469
Patrick Williams26919f02022-12-08 06:12:43 -0600470 "adValue": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600471 "description": "The value for the AdditionalData entry specified by ADName that indexes into the callout tables.",
472 "type": "string"
473 },
474
Patrick Williams26919f02022-12-08 06:12:43 -0600475 "locationCode": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600476 "description": "A location code - the segment after the 'UTMS-' prefix. (e.g. P1-C2)",
477 "type": "string"
478 },
479
Patrick Williams26919f02022-12-08 06:12:43 -0600480 "priority": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600481 "description": "The callout priority. See the PEL spec for priority definitions.",
482 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600483 "enum": [
484 "high",
485 "medium",
486 "low",
487 "medium_group_a",
488 "medium_group_b",
489 "medium_group_c"
490 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600491 },
492
Patrick Williams26919f02022-12-08 06:12:43 -0600493 "symbolicFRU": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500494 "description": "The symbolic FRU callout.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600495 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600496 "enum": [
497 "service_docs",
498 "pwrsply",
499 "air_mover",
500 "pgood_part",
501 "usb_pgood",
502 "ambient_temp",
503 "ambient_temp_back",
504 "ambient_perf_loss",
505 "ac_module",
506 "fan_cable",
507 "cable_continued",
508 "altitude",
509 "pcie_hot_plug",
510 "overtemp"
511 ]
Matt Spinlerd4086652020-04-08 15:36:22 -0500512 },
513
Patrick Williams26919f02022-12-08 06:12:43 -0600514 "symbolicFRUTrusted": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500515 "description": "The symbolic FRU callout with a trusted location code. (Can light LEDs).",
516 "ref": "#/definitions/symbolicFRU"
Matt Spinler9e819c72020-02-12 16:44:16 -0600517 },
518
Patrick Williams26919f02022-12-08 06:12:43 -0600519 "procedure": {
Matt Spinler578e0702020-03-13 09:40:43 -0500520 "description": "The maintenance procedure callout.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600521 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600522 "enum": [
523 "bmc_code",
524 "next_level_support",
525 "sbe_code",
526 "fsi_path",
527 "power_overcurrent",
528 "find_sue_root_cause"
529 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600530 },
531
Patrick Williams26919f02022-12-08 06:12:43 -0600532 "useInventoryLocCode": {
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500533 "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.",
534 "type": "boolean"
535 },
536
Patrick Williams26919f02022-12-08 06:12:43 -0600537 "calloutList": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500538 "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 -0600539 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600540 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600541 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600542 "properties": {
543 "Priority": { "$ref": "#/definitions/priority" },
544 "LocCode": { "$ref": "#/definitions/locationCode" },
545 "SymbolicFRU": { "$ref": "#/definitions/symbolicFRU" },
546 "SymbolicFRUTrusted": {
547 "$ref": "#/definitions/symbolicFRUTrusted"
548 },
549 "Procedure": { "$ref": "#/definitions/procedure" },
550 "UseInventoryLocCode": {
551 "$ref": "#/definitions/useInventoryLocCode"
552 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600553 },
554 "additionalProperties": false,
555 "required": ["Priority"],
556
Patrick Williams26919f02022-12-08 06:12:43 -0600557 "oneOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500558 {
Patrick Williams26919f02022-12-08 06:12:43 -0600559 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500560 { "required": ["LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600561 { "not": { "required": ["SymbolicFRU"] } },
562 { "not": { "required": ["SymbolicFRUTrusted"] } },
563 { "not": { "required": ["Procedure"] } },
564 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500565 ]
566 },
567 {
Patrick Williams26919f02022-12-08 06:12:43 -0600568 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500569 { "required": ["SymbolicFRU"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600570 { "not": { "required": ["SymbolicFRUTrusted"] } },
571 { "not": { "required": ["Procedure"] } },
572 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500573 ]
574 },
575
576 {
Patrick Williams26919f02022-12-08 06:12:43 -0600577 "allOf": [
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500578 { "required": ["SymbolicFRUTrusted", "LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600579 { "not": { "required": ["SymbolicFRU"] } },
580 { "not": { "required": ["Procedure"] } },
581 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500582 ]
583 },
584
585 {
Patrick Williams26919f02022-12-08 06:12:43 -0600586 "allOf": [
587 {
588 "required": [
589 "SymbolicFRUTrusted",
590 "UseInventoryLocCode"
591 ]
592 },
593 { "not": { "required": ["SymbolicFRU"] } },
594 { "not": { "required": ["Procedure"] } },
595 { "not": { "required": ["LocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500596 ]
597 },
598
599 {
Patrick Williams26919f02022-12-08 06:12:43 -0600600 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500601 { "required": ["Procedure"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600602 { "not": { "required": ["SymbolicFRU"] } },
603 { "not": { "required": ["SymbolicFRUTrusted"] } },
604 { "not": { "required": ["LocCode"] } },
605 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500606 ]
607 }
608 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600609 },
610 "minItems": 1,
611 "maxItems": 10,
612
Patrick Williams26919f02022-12-08 06:12:43 -0600613 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600614 {
615 "Priority": "high",
616 "LocCode": "P1"
617 },
618 {
619 "Priority": "medium",
620 "LocCode": "P2",
621 "SymbolicFRU": "PROCFRU"
622 },
623 {
624 "Priority": "low",
625 "Procedure": "SVCDOCS"
626 }
627 ]
628 },
629
Patrick Williams26919f02022-12-08 06:12:43 -0600630 "system": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600631 "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 -0500632 "type": "string",
633 "minLength": 1
Matt Spinler9e819c72020-02-12 16:44:16 -0600634 },
635
Patrick Williams26919f02022-12-08 06:12:43 -0600636 "callouts": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600637 "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.",
638 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600639 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600640 "type": "object",
641
Patrick Williams26919f02022-12-08 06:12:43 -0600642 "properties": {
643 "System": { "$ref": "#/definitions/system" },
644 "CalloutList": { "$ref": "#/definitions/calloutList" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600645 },
646 "required": ["CalloutList"],
647 "additionalProperties": false
648 },
649 "minItems": 1,
650 "maxItems": 10,
651
Patrick Williams26919f02022-12-08 06:12:43 -0600652 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600653 [
654 {
655 "System": "system1",
Patrick Williams26919f02022-12-08 06:12:43 -0600656 "CalloutList": [{ "Priority": "high", "LocCode": "P1" }]
Matt Spinler9e819c72020-02-12 16:44:16 -0600657 },
658 {
Patrick Williams26919f02022-12-08 06:12:43 -0600659 "CalloutList": [
660 { "Priority": "high", "Procedure": "NEXTLVL" }
661 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600662 }
663 ]
664 ]
665 },
666
Patrick Williams26919f02022-12-08 06:12:43 -0600667 "calloutsWithTheirADValues": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600668 "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.",
669 "type": "array",
670
Patrick Williams26919f02022-12-08 06:12:43 -0600671 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600672 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600673 "properties": {
674 "ADValue": { "$ref": "#/definitions/adValue" },
675 "Callouts": { "$ref": "#/definitions/callouts" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600676 },
677 "additionalProperties": false,
678 "required": ["ADValue", "Callouts"]
679 },
680 "minItems": 1,
Matt Spinler9e819c72020-02-12 16:44:16 -0600681
Patrick Williams26919f02022-12-08 06:12:43 -0600682 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600683 [
684 {
685 "ADValue": "0",
Patrick Williams26919f02022-12-08 06:12:43 -0600686 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600687 {
Patrick Williams26919f02022-12-08 06:12:43 -0600688 "CalloutList": [
689 { "Priority": "high", "LocCode": "P1" }
690 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600691 }
692 ]
693 },
694 {
695 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600696 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600697 {
Patrick Williams26919f02022-12-08 06:12:43 -0600698 "CalloutList": [
699 { "Priority": "high", "LocCode": "P2" }
700 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600701 }
702 ]
703 }
704 ]
705 ]
706 },
707
Patrick Williams26919f02022-12-08 06:12:43 -0600708 "calloutsUsingAD": {
Matt Spinler3d923312022-08-01 09:52:55 -0500709 "description": "This contains the callouts that can be specified based on a value in the AdditionalData property.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600710 "type": "object",
711
Patrick Williams26919f02022-12-08 06:12:43 -0600712 "properties": {
713 "ADName": { "$ref": "#/definitions/adName" },
714 "CalloutsWithTheirADValues": {
715 "$ref": "#/definitions/calloutsWithTheirADValues"
716 },
717 "CalloutsWhenNoADMatch": {
718 "$ref": "#/definitions/calloutsWhenNoADMatch"
719 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600720 },
721 "additionalProperties": false,
722 "required": ["ADName", "CalloutsWithTheirADValues"],
723
Patrick Williams26919f02022-12-08 06:12:43 -0600724 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600725 {
726 "ADName": "PROC_NUM",
Patrick Williams26919f02022-12-08 06:12:43 -0600727 "CalloutsWithTheirADValues": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600728 {
729 "ADValue": "0",
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": "P1" }
734 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600735 }
736 ]
737 },
738 {
739 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600740 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600741 {
Patrick Williams26919f02022-12-08 06:12:43 -0600742 "CalloutList": [
743 { "Priority": "high", "LocCode": "P2" }
744 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600745 }
746 ]
747 }
748 ]
749 }
750 ]
Matt Spinler3d923312022-08-01 09:52:55 -0500751 },
752
Patrick Williams26919f02022-12-08 06:12:43 -0600753 "calloutsWhenNoADMatch": {
Matt Spinler3d923312022-08-01 09:52:55 -0500754 "description": "This contains the callouts to use when a match in the 'CalloutsWithTheirADValues array isn't found.",
755 "$ref": "#/definitions/callouts"
Matt Spinler9e819c72020-02-12 16:44:16 -0600756 }
Matt Spinler10f3d932019-09-26 16:24:14 -0500757 }
758}