blob: ad9f079910b99206cd803c5400d1a13327f528e5 [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",
Jim Wright9b779e42022-12-16 17:50:23 -0600510 "overtemp",
511 "memory_dimm"
Patrick Williams26919f02022-12-08 06:12:43 -0600512 ]
Matt Spinlerd4086652020-04-08 15:36:22 -0500513 },
514
Patrick Williams26919f02022-12-08 06:12:43 -0600515 "symbolicFRUTrusted": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500516 "description": "The symbolic FRU callout with a trusted location code. (Can light LEDs).",
517 "ref": "#/definitions/symbolicFRU"
Matt Spinler9e819c72020-02-12 16:44:16 -0600518 },
519
Patrick Williams26919f02022-12-08 06:12:43 -0600520 "procedure": {
Matt Spinler578e0702020-03-13 09:40:43 -0500521 "description": "The maintenance procedure callout.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600522 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600523 "enum": [
524 "bmc_code",
525 "next_level_support",
526 "sbe_code",
527 "fsi_path",
528 "power_overcurrent",
529 "find_sue_root_cause"
530 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600531 },
532
Patrick Williams26919f02022-12-08 06:12:43 -0600533 "useInventoryLocCode": {
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500534 "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.",
535 "type": "boolean"
536 },
537
Patrick Williams26919f02022-12-08 06:12:43 -0600538 "calloutList": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500539 "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 -0600540 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600541 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600542 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600543 "properties": {
544 "Priority": { "$ref": "#/definitions/priority" },
545 "LocCode": { "$ref": "#/definitions/locationCode" },
546 "SymbolicFRU": { "$ref": "#/definitions/symbolicFRU" },
547 "SymbolicFRUTrusted": {
548 "$ref": "#/definitions/symbolicFRUTrusted"
549 },
550 "Procedure": { "$ref": "#/definitions/procedure" },
551 "UseInventoryLocCode": {
552 "$ref": "#/definitions/useInventoryLocCode"
553 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600554 },
555 "additionalProperties": false,
556 "required": ["Priority"],
557
Patrick Williams26919f02022-12-08 06:12:43 -0600558 "oneOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500559 {
Patrick Williams26919f02022-12-08 06:12:43 -0600560 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500561 { "required": ["LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600562 { "not": { "required": ["SymbolicFRU"] } },
563 { "not": { "required": ["SymbolicFRUTrusted"] } },
564 { "not": { "required": ["Procedure"] } },
565 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500566 ]
567 },
568 {
Patrick Williams26919f02022-12-08 06:12:43 -0600569 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500570 { "required": ["SymbolicFRU"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600571 { "not": { "required": ["SymbolicFRUTrusted"] } },
572 { "not": { "required": ["Procedure"] } },
573 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500574 ]
575 },
576
577 {
Patrick Williams26919f02022-12-08 06:12:43 -0600578 "allOf": [
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500579 { "required": ["SymbolicFRUTrusted", "LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600580 { "not": { "required": ["SymbolicFRU"] } },
581 { "not": { "required": ["Procedure"] } },
582 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500583 ]
584 },
585
586 {
Patrick Williams26919f02022-12-08 06:12:43 -0600587 "allOf": [
588 {
589 "required": [
590 "SymbolicFRUTrusted",
591 "UseInventoryLocCode"
592 ]
593 },
594 { "not": { "required": ["SymbolicFRU"] } },
595 { "not": { "required": ["Procedure"] } },
596 { "not": { "required": ["LocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500597 ]
598 },
599
600 {
Patrick Williams26919f02022-12-08 06:12:43 -0600601 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500602 { "required": ["Procedure"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600603 { "not": { "required": ["SymbolicFRU"] } },
604 { "not": { "required": ["SymbolicFRUTrusted"] } },
605 { "not": { "required": ["LocCode"] } },
606 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500607 ]
608 }
609 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600610 },
611 "minItems": 1,
612 "maxItems": 10,
613
Patrick Williams26919f02022-12-08 06:12:43 -0600614 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600615 {
616 "Priority": "high",
617 "LocCode": "P1"
618 },
619 {
620 "Priority": "medium",
621 "LocCode": "P2",
622 "SymbolicFRU": "PROCFRU"
623 },
624 {
625 "Priority": "low",
626 "Procedure": "SVCDOCS"
627 }
628 ]
629 },
630
Patrick Williams26919f02022-12-08 06:12:43 -0600631 "system": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600632 "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 -0500633 "type": "string",
634 "minLength": 1
Matt Spinler9e819c72020-02-12 16:44:16 -0600635 },
636
Patrick Williams26919f02022-12-08 06:12:43 -0600637 "callouts": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600638 "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.",
639 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600640 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600641 "type": "object",
642
Patrick Williams26919f02022-12-08 06:12:43 -0600643 "properties": {
644 "System": { "$ref": "#/definitions/system" },
645 "CalloutList": { "$ref": "#/definitions/calloutList" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600646 },
647 "required": ["CalloutList"],
648 "additionalProperties": false
649 },
650 "minItems": 1,
651 "maxItems": 10,
652
Patrick Williams26919f02022-12-08 06:12:43 -0600653 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600654 [
655 {
656 "System": "system1",
Patrick Williams26919f02022-12-08 06:12:43 -0600657 "CalloutList": [{ "Priority": "high", "LocCode": "P1" }]
Matt Spinler9e819c72020-02-12 16:44:16 -0600658 },
659 {
Patrick Williams26919f02022-12-08 06:12:43 -0600660 "CalloutList": [
661 { "Priority": "high", "Procedure": "NEXTLVL" }
662 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600663 }
664 ]
665 ]
666 },
667
Patrick Williams26919f02022-12-08 06:12:43 -0600668 "calloutsWithTheirADValues": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600669 "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.",
670 "type": "array",
671
Patrick Williams26919f02022-12-08 06:12:43 -0600672 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600673 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600674 "properties": {
675 "ADValue": { "$ref": "#/definitions/adValue" },
676 "Callouts": { "$ref": "#/definitions/callouts" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600677 },
678 "additionalProperties": false,
679 "required": ["ADValue", "Callouts"]
680 },
681 "minItems": 1,
Matt Spinler9e819c72020-02-12 16:44:16 -0600682
Patrick Williams26919f02022-12-08 06:12:43 -0600683 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600684 [
685 {
686 "ADValue": "0",
Patrick Williams26919f02022-12-08 06:12:43 -0600687 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600688 {
Patrick Williams26919f02022-12-08 06:12:43 -0600689 "CalloutList": [
690 { "Priority": "high", "LocCode": "P1" }
691 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600692 }
693 ]
694 },
695 {
696 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600697 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600698 {
Patrick Williams26919f02022-12-08 06:12:43 -0600699 "CalloutList": [
700 { "Priority": "high", "LocCode": "P2" }
701 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600702 }
703 ]
704 }
705 ]
706 ]
707 },
708
Patrick Williams26919f02022-12-08 06:12:43 -0600709 "calloutsUsingAD": {
Matt Spinler3d923312022-08-01 09:52:55 -0500710 "description": "This contains the callouts that can be specified based on a value in the AdditionalData property.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600711 "type": "object",
712
Patrick Williams26919f02022-12-08 06:12:43 -0600713 "properties": {
714 "ADName": { "$ref": "#/definitions/adName" },
715 "CalloutsWithTheirADValues": {
716 "$ref": "#/definitions/calloutsWithTheirADValues"
717 },
718 "CalloutsWhenNoADMatch": {
719 "$ref": "#/definitions/calloutsWhenNoADMatch"
720 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600721 },
722 "additionalProperties": false,
723 "required": ["ADName", "CalloutsWithTheirADValues"],
724
Patrick Williams26919f02022-12-08 06:12:43 -0600725 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600726 {
727 "ADName": "PROC_NUM",
Patrick Williams26919f02022-12-08 06:12:43 -0600728 "CalloutsWithTheirADValues": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600729 {
730 "ADValue": "0",
Patrick Williams26919f02022-12-08 06:12:43 -0600731 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600732 {
Patrick Williams26919f02022-12-08 06:12:43 -0600733 "CalloutList": [
734 { "Priority": "high", "LocCode": "P1" }
735 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600736 }
737 ]
738 },
739 {
740 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600741 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600742 {
Patrick Williams26919f02022-12-08 06:12:43 -0600743 "CalloutList": [
744 { "Priority": "high", "LocCode": "P2" }
745 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600746 }
747 ]
748 }
749 ]
750 }
751 ]
Matt Spinler3d923312022-08-01 09:52:55 -0500752 },
753
Patrick Williams26919f02022-12-08 06:12:43 -0600754 "calloutsWhenNoADMatch": {
Matt Spinler3d923312022-08-01 09:52:55 -0500755 "description": "This contains the callouts to use when a match in the 'CalloutsWithTheirADValues array isn't found.",
756 "$ref": "#/definitions/callouts"
Matt Spinler9e819c72020-02-12 16:44:16 -0600757 }
Matt Spinler10f3d932019-09-26 16:24:14 -0500758 }
759}