blob: 2c1602f3b840aaae1ad40cc06498bc03bf7e4244 [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",
Priyanga Ramasamy134e1e12022-12-02 07:03:39 -0600529 "find_sue_root_cause",
530 "system_vpd_correction"
Patrick Williams26919f02022-12-08 06:12:43 -0600531 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600532 },
533
Patrick Williams26919f02022-12-08 06:12:43 -0600534 "useInventoryLocCode": {
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500535 "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.",
536 "type": "boolean"
537 },
538
Patrick Williams26919f02022-12-08 06:12:43 -0600539 "calloutList": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500540 "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 -0600541 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600542 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600543 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600544 "properties": {
545 "Priority": { "$ref": "#/definitions/priority" },
546 "LocCode": { "$ref": "#/definitions/locationCode" },
547 "SymbolicFRU": { "$ref": "#/definitions/symbolicFRU" },
548 "SymbolicFRUTrusted": {
549 "$ref": "#/definitions/symbolicFRUTrusted"
550 },
551 "Procedure": { "$ref": "#/definitions/procedure" },
552 "UseInventoryLocCode": {
553 "$ref": "#/definitions/useInventoryLocCode"
554 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600555 },
556 "additionalProperties": false,
557 "required": ["Priority"],
558
Patrick Williams26919f02022-12-08 06:12:43 -0600559 "oneOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500560 {
Patrick Williams26919f02022-12-08 06:12:43 -0600561 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500562 { "required": ["LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600563 { "not": { "required": ["SymbolicFRU"] } },
564 { "not": { "required": ["SymbolicFRUTrusted"] } },
565 { "not": { "required": ["Procedure"] } },
566 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500567 ]
568 },
569 {
Patrick Williams26919f02022-12-08 06:12:43 -0600570 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500571 { "required": ["SymbolicFRU"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600572 { "not": { "required": ["SymbolicFRUTrusted"] } },
573 { "not": { "required": ["Procedure"] } },
574 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500575 ]
576 },
577
578 {
Patrick Williams26919f02022-12-08 06:12:43 -0600579 "allOf": [
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500580 { "required": ["SymbolicFRUTrusted", "LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600581 { "not": { "required": ["SymbolicFRU"] } },
582 { "not": { "required": ["Procedure"] } },
583 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500584 ]
585 },
586
587 {
Patrick Williams26919f02022-12-08 06:12:43 -0600588 "allOf": [
589 {
590 "required": [
591 "SymbolicFRUTrusted",
592 "UseInventoryLocCode"
593 ]
594 },
595 { "not": { "required": ["SymbolicFRU"] } },
596 { "not": { "required": ["Procedure"] } },
597 { "not": { "required": ["LocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500598 ]
599 },
600
601 {
Patrick Williams26919f02022-12-08 06:12:43 -0600602 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500603 { "required": ["Procedure"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600604 { "not": { "required": ["SymbolicFRU"] } },
605 { "not": { "required": ["SymbolicFRUTrusted"] } },
606 { "not": { "required": ["LocCode"] } },
607 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500608 ]
609 }
610 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600611 },
612 "minItems": 1,
613 "maxItems": 10,
614
Patrick Williams26919f02022-12-08 06:12:43 -0600615 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600616 {
617 "Priority": "high",
618 "LocCode": "P1"
619 },
620 {
621 "Priority": "medium",
622 "LocCode": "P2",
623 "SymbolicFRU": "PROCFRU"
624 },
625 {
626 "Priority": "low",
627 "Procedure": "SVCDOCS"
628 }
629 ]
630 },
631
Patrick Williams26919f02022-12-08 06:12:43 -0600632 "system": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600633 "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 -0500634 "type": "string",
635 "minLength": 1
Matt Spinler9e819c72020-02-12 16:44:16 -0600636 },
637
Patrick Williams26919f02022-12-08 06:12:43 -0600638 "callouts": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600639 "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.",
640 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600641 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600642 "type": "object",
643
Patrick Williams26919f02022-12-08 06:12:43 -0600644 "properties": {
645 "System": { "$ref": "#/definitions/system" },
646 "CalloutList": { "$ref": "#/definitions/calloutList" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600647 },
648 "required": ["CalloutList"],
649 "additionalProperties": false
650 },
651 "minItems": 1,
652 "maxItems": 10,
653
Patrick Williams26919f02022-12-08 06:12:43 -0600654 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600655 [
656 {
657 "System": "system1",
Patrick Williams26919f02022-12-08 06:12:43 -0600658 "CalloutList": [{ "Priority": "high", "LocCode": "P1" }]
Matt Spinler9e819c72020-02-12 16:44:16 -0600659 },
660 {
Patrick Williams26919f02022-12-08 06:12:43 -0600661 "CalloutList": [
662 { "Priority": "high", "Procedure": "NEXTLVL" }
663 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600664 }
665 ]
666 ]
667 },
668
Patrick Williams26919f02022-12-08 06:12:43 -0600669 "calloutsWithTheirADValues": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600670 "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.",
671 "type": "array",
672
Patrick Williams26919f02022-12-08 06:12:43 -0600673 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600674 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600675 "properties": {
676 "ADValue": { "$ref": "#/definitions/adValue" },
677 "Callouts": { "$ref": "#/definitions/callouts" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600678 },
679 "additionalProperties": false,
680 "required": ["ADValue", "Callouts"]
681 },
682 "minItems": 1,
Matt Spinler9e819c72020-02-12 16:44:16 -0600683
Patrick Williams26919f02022-12-08 06:12:43 -0600684 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600685 [
686 {
687 "ADValue": "0",
Patrick Williams26919f02022-12-08 06:12:43 -0600688 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600689 {
Patrick Williams26919f02022-12-08 06:12:43 -0600690 "CalloutList": [
691 { "Priority": "high", "LocCode": "P1" }
692 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600693 }
694 ]
695 },
696 {
697 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600698 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600699 {
Patrick Williams26919f02022-12-08 06:12:43 -0600700 "CalloutList": [
701 { "Priority": "high", "LocCode": "P2" }
702 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600703 }
704 ]
705 }
706 ]
707 ]
708 },
709
Patrick Williams26919f02022-12-08 06:12:43 -0600710 "calloutsUsingAD": {
Matt Spinler3d923312022-08-01 09:52:55 -0500711 "description": "This contains the callouts that can be specified based on a value in the AdditionalData property.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600712 "type": "object",
713
Patrick Williams26919f02022-12-08 06:12:43 -0600714 "properties": {
715 "ADName": { "$ref": "#/definitions/adName" },
716 "CalloutsWithTheirADValues": {
717 "$ref": "#/definitions/calloutsWithTheirADValues"
718 },
719 "CalloutsWhenNoADMatch": {
720 "$ref": "#/definitions/calloutsWhenNoADMatch"
721 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600722 },
723 "additionalProperties": false,
724 "required": ["ADName", "CalloutsWithTheirADValues"],
725
Patrick Williams26919f02022-12-08 06:12:43 -0600726 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600727 {
728 "ADName": "PROC_NUM",
Patrick Williams26919f02022-12-08 06:12:43 -0600729 "CalloutsWithTheirADValues": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600730 {
731 "ADValue": "0",
Patrick Williams26919f02022-12-08 06:12:43 -0600732 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600733 {
Patrick Williams26919f02022-12-08 06:12:43 -0600734 "CalloutList": [
735 { "Priority": "high", "LocCode": "P1" }
736 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600737 }
738 ]
739 },
740 {
741 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600742 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600743 {
Patrick Williams26919f02022-12-08 06:12:43 -0600744 "CalloutList": [
745 { "Priority": "high", "LocCode": "P2" }
746 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600747 }
748 ]
749 }
750 ]
751 }
752 ]
Matt Spinler3d923312022-08-01 09:52:55 -0500753 },
754
Patrick Williams26919f02022-12-08 06:12:43 -0600755 "calloutsWhenNoADMatch": {
Matt Spinler3d923312022-08-01 09:52:55 -0500756 "description": "This contains the callouts to use when a match in the 'CalloutsWithTheirADValues array isn't found.",
757 "$ref": "#/definitions/callouts"
Matt Spinler9e819c72020-02-12 16:44:16 -0600758 }
Matt Spinler10f3d932019-09-26 16:24:14 -0500759 }
760}