blob: 11885e549d9d6cf3f5388ef4b064eb519423860d [file] [log] [blame]
Matt Spinler10f3d932019-09-26 16:24:14 -05001{
2 "title": "PEL message registry schema",
3 "$id": "http://github.com/openbmc/phosphor-logging/extensions/openpower-pels/registry/schema/schema.json",
4 "description": "This schema describes JSON used for creating PELs from OpenBMC event logs.",
5 "type": "object",
6
Patrick Williams26919f02022-12-08 06:12:43 -06007 "properties": {
8 "PELs": {
Matt Spinler10f3d932019-09-26 16:24:14 -05009 "title": "This is an array of entries that specify PEL fields for event logs",
10 "$ref": "#/definitions/pels"
11 }
12 },
13
14 "additionalProperties": false,
15 "minItems": 1,
16 "uniqueItems": true,
17
Patrick Williams26919f02022-12-08 06:12:43 -060018 "definitions": {
19 "pels": {
Matt Spinler10f3d932019-09-26 16:24:14 -050020 "description": "Each entry in this array is for converting an event log to a PEL",
21 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -060022 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -050023 "description": "The schema for a single event log registry entry",
24 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -060025 "properties": {
26 "Name": { "$ref": "#/definitions/errorName" },
Matt Spinler10f3d932019-09-26 16:24:14 -050027
Patrick Williams26919f02022-12-08 06:12:43 -060028 "SRC": { "$ref": "#/definitions/src" },
Matt Spinler10f3d932019-09-26 16:24:14 -050029
Patrick Williams26919f02022-12-08 06:12:43 -060030 "Subsystem": { "$ref": "#/definitions/subsystem" },
Matt Spinler10f3d932019-09-26 16:24:14 -050031
Patrick Williams26919f02022-12-08 06:12:43 -060032 "PossibleSubsystems": {
33 "$ref": "#/definitions/possibleSubsystems"
34 },
Matt Spinler23970b02022-02-25 16:34:46 -060035
Patrick Williams26919f02022-12-08 06:12:43 -060036 "Severity": { "$ref": "#/definitions/severity" },
Matt Spinler10f3d932019-09-26 16:24:14 -050037
Patrick Williams26919f02022-12-08 06:12:43 -060038 "MfgSeverity": { "$ref": "#/definitions/mfgSeverity" },
Matt Spinler10f3d932019-09-26 16:24:14 -050039
Patrick Williams26919f02022-12-08 06:12:43 -060040 "EventScope": { "$ref": "#/definitions/eventScope" },
Matt Spinler10f3d932019-09-26 16:24:14 -050041
Patrick Williams26919f02022-12-08 06:12:43 -060042 "EventType": { "$ref": "#/definitions/eventType" },
Matt Spinler10f3d932019-09-26 16:24:14 -050043
Patrick Williams26919f02022-12-08 06:12:43 -060044 "ActionFlags": { "$ref": "#/definitions/actionFlags" },
Matt Spinler10f3d932019-09-26 16:24:14 -050045
Patrick Williams26919f02022-12-08 06:12:43 -060046 "MfgActionFlags": {
47 "$ref": "#/definitions/mfgActionFlags"
48 },
Matt Spinler10f3d932019-09-26 16:24:14 -050049
Patrick Williams26919f02022-12-08 06:12:43 -060050 "Documentation": { "$ref": "#/definitions/documentation" },
Matt Spinler10f3d932019-09-26 16:24:14 -050051
Patrick Williams26919f02022-12-08 06:12:43 -060052 "ComponentID": { "$ref": "#/definitions/componentID" },
Matt Spinler9e819c72020-02-12 16:44:16 -060053
Patrick Williams26919f02022-12-08 06:12:43 -060054 "CalloutsUsingAD": {
55 "$ref": "#/definitions/calloutsUsingAD"
56 },
Matt Spinler9e819c72020-02-12 16:44:16 -060057
Matt Spinlerf22b4a12022-12-15 11:20:35 -060058 "Callouts": { "$ref": "#/definitions/callouts" },
59
60 "JournalCapture": { "$ref": "#/definitions/journalCapture" }
Matt Spinler10f3d932019-09-26 16:24:14 -050061 },
62
Matt Spinler23970b02022-02-25 16:34:46 -060063 "required": ["Name", "SRC", "Documentation"],
Matt Spinler9e819c72020-02-12 16:44:16 -060064 "additionalProperties": false,
65
Patrick Williams26919f02022-12-08 06:12:43 -060066 "not": {
Matt Spinler9e819c72020-02-12 16:44:16 -060067 "required": ["CalloutsUsingAD", "Callouts"]
Matt Spinler23970b02022-02-25 16:34:46 -060068 },
69
Patrick Williams26919f02022-12-08 06:12:43 -060070 "oneOf": [
Matt Spinler23970b02022-02-25 16:34:46 -060071 {
72 "required": ["Subsystem"]
73 },
74 {
75 "required": ["PossibleSubsystems"]
76 }
77 ]
Matt Spinler10f3d932019-09-26 16:24:14 -050078 }
79 },
80
Patrick Williams26919f02022-12-08 06:12:43 -060081 "errorName": {
Matt Spinler10f3d932019-09-26 16:24:14 -050082 "description": "The 'Message' property of an OpenBMC event log",
83 "type": "string"
84 },
85
Patrick Williams26919f02022-12-08 06:12:43 -060086 "componentID": {
Matt Spinler10f3d932019-09-26 16:24:14 -050087 "description": "The component ID of the PEL creator, in the form 0xYY00. For BD SRCs, this is optional and if not present the component ID will be taken from the upper byte of the reason code.",
88 "type": "string",
Matt Spinlera6c4ba72023-05-24 13:11:49 -050089 "pattern": "^0x[0-9A-F]{2}00$"
Matt Spinler10f3d932019-09-26 16:24:14 -050090 },
91
Patrick Williams26919f02022-12-08 06:12:43 -060092 "src": {
Matt Spinler10f3d932019-09-26 16:24:14 -050093 "description": "Contains fields describing the primary SRC embedded in the PEL",
94 "type": "object",
95
Patrick Williams26919f02022-12-08 06:12:43 -060096 "properties": {
97 "Type": { "$ref": "#/definitions/srcType" },
Matt Spinler10f3d932019-09-26 16:24:14 -050098
Patrick Williams26919f02022-12-08 06:12:43 -060099 "ReasonCode": { "$ref": "#/definitions/reasonCode" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500100
Patrick Williams26919f02022-12-08 06:12:43 -0600101 "SymptomIDFields": { "$ref": "#/definitions/symptomID" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500102
Matt Spinler3fe93e92023-04-14 14:06:59 -0500103 "Words6To9": { "$ref": "#/definitions/srcWords6To9" },
104
105 "DeconfigFlag": { "$ref": "#/definitions/deconfigFlag" }
Matt Spinler10f3d932019-09-26 16:24:14 -0500106 },
107
108 "required": ["ReasonCode", "Words6To9"],
109 "additionalProperties": false
110 },
111
Patrick Williams26919f02022-12-08 06:12:43 -0600112 "documentation": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500113 "description": "This contains event documentation that will be used by tools and parsers.",
114 "type": "object",
115
Patrick Williams26919f02022-12-08 06:12:43 -0600116 "properties": {
117 "Message": { "$ref": "#/definitions/docMessage" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500118
Patrick Williams26919f02022-12-08 06:12:43 -0600119 "MessageArgSources": {
120 "$ref": "#/definitions/docMessageArgSources"
121 },
Matt Spinler10f3d932019-09-26 16:24:14 -0500122
Patrick Williams26919f02022-12-08 06:12:43 -0600123 "Description": { "$ref": "#/definitions/docDescription" },
Matt Spinler10f3d932019-09-26 16:24:14 -0500124
Patrick Williams26919f02022-12-08 06:12:43 -0600125 "Notes": { "$ref": "#/definitions/docNotes" }
Matt Spinler10f3d932019-09-26 16:24:14 -0500126 },
127 "additionalProperties": false,
128 "required": ["Message", "Description"]
129 },
130
Patrick Williams26919f02022-12-08 06:12:43 -0600131 "srcType": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500132 "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.",
133 "type": "string",
134 "enum": ["BD", "11"]
135 },
136
Matt Spinler3fe93e92023-04-14 14:06:59 -0500137 "deconfigFlag": {
138 "description": "If true, will set bit 6 in hex data word 5, which means 'one or more resources are deconfigured'.",
139 "type": "boolean"
140 },
141
Patrick Williams26919f02022-12-08 06:12:43 -0600142 "docNotes": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500143 "description": "Any notes/comments about the error. An array of strings for manual line wrapping. Optional.",
144 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600145 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500146 "description": "Notes",
147 "type": "string"
148 }
149 },
150
Patrick Williams26919f02022-12-08 06:12:43 -0600151 "reasonCode": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500152 "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.",
153 "type": "string",
Matt Spinlera6c4ba72023-05-24 13:11:49 -0500154 "pattern": "^0x[0-9A-F]{4}$",
Matt Spinler10f3d932019-09-26 16:24:14 -0500155
Patrick Williams26919f02022-12-08 06:12:43 -0600156 "examples": ["0x3355"]
157 },
158
159 "subsystem": {
160 "description": "PEL subsystem enumeration. See the PEL spec for more detailed definitions.",
161 "type": "string",
162 "enum": [
163 "processor",
164 "processor_fru",
165 "processor_chip",
166 "processor_unit",
167 "processor_bus",
168
169 "memory",
170 "memory_ctlr",
171 "memory_bus",
172 "memory_dimm",
173 "memory_fru",
174 "external_cache",
175
176 "io",
177 "io_hub",
178 "io_bridge",
179 "io_bus",
180 "io_processor",
181 "io_hub_other",
182 "phb",
183
184 "io_adapter",
185 "io_adapter_comm",
186 "io_device",
187 "io_device_dasd",
188 "io_external_general",
189 "io_external_workstation",
190 "io_storage_mezz",
191
192 "cec_hardware",
193 "cec_sp_a",
194 "cec_sp_b",
195 "cec_node_controller",
196 "cec_vpd",
197 "cec_i2c",
198 "cec_chip_iface",
199 "cec_clocks",
200 "cec_op_panel",
201 "cec_tod",
202 "cec_storage_device",
203 "cec_sp_hyp_iface",
204 "cec_service_network",
205 "cec_sp_hostboot_iface",
206
207 "power",
208 "power_supply",
209 "power_control_hw",
210 "power_fans",
211 "power_sequencer",
212
213 "others",
214 "other_hmc",
215 "other_test_tool",
216 "other_media",
217 "other_multiple_subsystems",
218 "other_na",
219 "other_info_src",
220
221 "surv_hyp_lost_sp",
222 "surv_sp_lost_hyp",
223 "surv_sp_lost_hmc",
224 "surv_hmc_lost_lpar",
225 "surv_hmc_lost_bpa",
226 "surv_hmc_lost_hmc",
227
228 "platform_firmware",
229 "bmc_firmware",
230 "hyp_firmware",
231 "partition_firmware",
232 "slic_firmware",
233 "spcn_firmware",
234 "bulk_power_firmware_side_a",
235 "hmc_code_firmware",
236 "bulk_power_firmware_side_b",
237 "virtual_sp",
238 "hostboot",
239 "occ",
240
241 "software",
242 "os_software",
243 "xpf_software",
244 "app_software",
245
246 "ext_env",
247 "input_power_source",
248 "ambient_temp",
249 "user_error",
250 "corrosion"
Matt Spinler10f3d932019-09-26 16:24:14 -0500251 ]
252 },
253
Patrick Williams26919f02022-12-08 06:12:43 -0600254 "possibleSubsystems": {
Matt Spinler23970b02022-02-25 16:34:46 -0600255 "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.",
256 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600257 "items": {
Matt Spinler23970b02022-02-25 16:34:46 -0600258 "$ref": "#/definitions/subsystem"
259 },
260 "minItems": 1,
261 "uniqueItems": true
262 },
263
Patrick Williams26919f02022-12-08 06:12:43 -0600264 "systemAndSeverity": {
Matt Spinler17952d92020-04-10 13:50:31 -0500265 "description": "A severity entry that has an optional system type qualifier. Used when the severity needs to be based on the system type.",
266 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600267 "properties": {
Matt Spinler17952d92020-04-10 13:50:31 -0500268 "System": { "$ref": "#/definitions/system" },
269 "SevValue": { "$ref": "#/definitions/severityTypes" }
270 },
271 "additionalProperties": false,
272 "required": ["SevValue"]
273 },
274
Patrick Williams26919f02022-12-08 06:12:43 -0600275 "severity": {
Matt Spinler17952d92020-04-10 13:50:31 -0500276 "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 -0600277 "oneOf": [
Matt Spinler17952d92020-04-10 13:50:31 -0500278 {
279 "$ref": "#/definitions/severityTypes"
280 },
281 {
282 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600283 "items": {
Matt Spinler17952d92020-04-10 13:50:31 -0500284 "$ref": "#/definitions/systemAndSeverity"
285 },
286 "minItems": 1,
287 "uniqueItems": true
288 }
289 ],
290
Patrick Williams26919f02022-12-08 06:12:43 -0600291 "examples": [
Matt Spinler17952d92020-04-10 13:50:31 -0500292 "unrecoverable",
293
294 [
295 {
296 "System": "systemA",
297 "SevValue": "predictive"
298 },
299 {
300 "SevValue": "unrecoverable"
301 }
302 ]
303 ]
Matt Spinler17952d92020-04-10 13:50:31 -0500304 },
305
Patrick Williams26919f02022-12-08 06:12:43 -0600306 "severityTypes": {
Matt Spinler17952d92020-04-10 13:50:31 -0500307 "description": "PEL severity enumeration. See the PEL spec for more detailed definitions.",
Matt Spinler10f3d932019-09-26 16:24:14 -0500308 "type": "string",
309
Patrick Williams26919f02022-12-08 06:12:43 -0600310 "enum": [
311 "non_error",
Matt Spinler10f3d932019-09-26 16:24:14 -0500312
Patrick Williams26919f02022-12-08 06:12:43 -0600313 "recovered",
Matt Spinler10f3d932019-09-26 16:24:14 -0500314
Patrick Williams26919f02022-12-08 06:12:43 -0600315 "predictive",
316 "predictive_degraded_perf",
317 "predictive_reboot",
318 "predictive_reboot_degraded",
319 "predictive_redundancy_loss",
Matt Spinler10f3d932019-09-26 16:24:14 -0500320
Patrick Williams26919f02022-12-08 06:12:43 -0600321 "unrecoverable",
322 "unrecoverable_degraded_perf",
323 "unrecoverable_redundancy_loss",
324 "unrecoverable_redundancy_loss_perf",
325 "unrecoverable_loss_of_function",
Matt Spinler10f3d932019-09-26 16:24:14 -0500326
Patrick Williams26919f02022-12-08 06:12:43 -0600327 "critical",
328 "critical_system_term",
329 "critical_imminent_failure",
330 "critical_partition_term",
331 "critical_partition_imminent_failure",
Matt Spinler10f3d932019-09-26 16:24:14 -0500332
Patrick Williams26919f02022-12-08 06:12:43 -0600333 "diagnostic_error",
334 "diagnostic_error_incorrect_results",
Matt Spinler10f3d932019-09-26 16:24:14 -0500335
Patrick Williams26919f02022-12-08 06:12:43 -0600336 "symptom_recovered",
337 "symptom_predictive",
338 "symptom_unrecoverable",
339 "symptom_critical",
340 "symptom_diag_err"
341 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500342 },
343
Patrick Williams26919f02022-12-08 06:12:43 -0600344 "mfgSeverity": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500345 "description": "The PEL severity to use in manufacturing reporting mode",
346 "$ref": "#/definitions/severity"
347 },
348
Patrick Williams26919f02022-12-08 06:12:43 -0600349 "eventScope": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500350 "description": "The event scope PEL field. Optional and defaults to entire_platform",
351 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600352 "enum": [
353 "entire_platform",
354 "single_partition",
355 "multiple_partitions",
356 "possibly_multiple_platforms"
357 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500358 },
359
Patrick Williams26919f02022-12-08 06:12:43 -0600360 "eventType": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500361 "description": "The event type PEL field. Optional and defaults to na",
362 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600363 "enum": [
364 "na",
365 "misc_information_only",
366 "tracing_event",
367 "dump_notification",
368 "env_normal"
369 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500370 },
371
Patrick Williams26919f02022-12-08 06:12:43 -0600372 "actionFlags": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500373 "description": "The action flags Private Header PEL field",
374 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600375 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500376 "description": "List of action flags",
377 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600378 "enum": [
379 "service_action",
380 "hidden",
381 "report",
382 "dont_report",
383 "call_home",
384 "isolation_incomplete",
385 "termination"
386 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500387 }
388 },
389
Patrick Williams26919f02022-12-08 06:12:43 -0600390 "mfgActionFlags": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500391 "description": "The PEL action flags to use in manufacturing reporting mode",
392 "$ref": "#/definitions/actionFlags"
393 },
394
Patrick Williams26919f02022-12-08 06:12:43 -0600395 "docDescription": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500396 "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 -0500397 "type": "string",
398 "minLength": 8
Matt Spinler10f3d932019-09-26 16:24:14 -0500399 },
400
Patrick Williams26919f02022-12-08 06:12:43 -0600401 "docMessage": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500402 "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.",
403 "type": "string",
Matt Spinler88b35412022-06-22 11:00:04 -0500404 "minLength": 8,
Matt Spinler10f3d932019-09-26 16:24:14 -0500405 "examples": [
Patrick Williams26919f02022-12-08 06:12:43 -0600406 { "Message": "The code update from level %1 to %2 failed" }
Matt Spinler10f3d932019-09-26 16:24:14 -0500407 ]
408 },
409
Patrick Williams26919f02022-12-08 06:12:43 -0600410 "docMessageArgSources": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500411 "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.",
412 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600413 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500414 "type": "string",
415 "enum": ["SRCWord6", "SRCWord7", "SRCWord8", "SRCWord9"]
416 },
417 "additionalItems": false
418 },
419
Patrick Williams26919f02022-12-08 06:12:43 -0600420 "symptomID": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500421 "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).",
422 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600423 "items": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500424 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600425 "enum": [
426 "SRCWord3",
427 "SRCWord4",
428 "SRCWord5",
429 "SRCWord6",
430 "SRCWord7",
431 "SRCWord8",
432 "SRCWord9"
433 ]
Matt Spinler10f3d932019-09-26 16:24:14 -0500434 },
435 "minItems": 1,
436 "maxItems": 8,
437 "uniqueItems": true,
438
Patrick Williams26919f02022-12-08 06:12:43 -0600439 "examples": [["SRCWord3", "SRCWord6"]]
Matt Spinler10f3d932019-09-26 16:24:14 -0500440 },
441
Patrick Williams26919f02022-12-08 06:12:43 -0600442 "srcWords6To9": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500443 "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.",
444 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600445 "patternProperties": {
446 "^[6-9]$": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500447 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600448 "properties": {
449 "Description": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500450 "description": "What the value in the field represents.",
451 "type": "string"
452 },
Patrick Williams26919f02022-12-08 06:12:43 -0600453 "AdditionalDataPropSource": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500454 "description": "Which AdditionalData property key to get the data from.",
455 "type": "string"
456 }
457 },
458
459 "additionalProperties": false
460 },
461
Patrick Williams26919f02022-12-08 06:12:43 -0600462 "examples": {
463 "SRCWords6To9": {
464 "6": {
Matt Spinler10f3d932019-09-26 16:24:14 -0500465 "Description": "Failing PSU number",
466 "AdditionalDataPropSource": "PSU_NUM"
467 }
468 }
469 }
470 },
471 "additionalProperties": false
Matt Spinler9e819c72020-02-12 16:44:16 -0600472 },
Matt Spinler10f3d932019-09-26 16:24:14 -0500473
Patrick Williams26919f02022-12-08 06:12:43 -0600474 "adName": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600475 "description": "The name of the AdditionalData entry to use to index into the callout tables.",
476 "type": "string"
477 },
478
Patrick Williams26919f02022-12-08 06:12:43 -0600479 "adValue": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600480 "description": "The value for the AdditionalData entry specified by ADName that indexes into the callout tables.",
481 "type": "string"
482 },
483
Patrick Williams26919f02022-12-08 06:12:43 -0600484 "locationCode": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600485 "description": "A location code - the segment after the 'UTMS-' prefix. (e.g. P1-C2)",
486 "type": "string"
487 },
488
Patrick Williams26919f02022-12-08 06:12:43 -0600489 "priority": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600490 "description": "The callout priority. See the PEL spec for priority definitions.",
491 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600492 "enum": [
493 "high",
494 "medium",
495 "low",
496 "medium_group_a",
497 "medium_group_b",
498 "medium_group_c"
499 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600500 },
501
Patrick Williams26919f02022-12-08 06:12:43 -0600502 "symbolicFRU": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500503 "description": "The symbolic FRU callout.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600504 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600505 "enum": [
506 "service_docs",
507 "pwrsply",
508 "air_mover",
509 "pgood_part",
510 "usb_pgood",
511 "ambient_temp",
512 "ambient_temp_back",
513 "ambient_perf_loss",
514 "ac_module",
515 "fan_cable",
516 "cable_continued",
517 "altitude",
518 "pcie_hot_plug",
Jim Wright9b779e42022-12-16 17:50:23 -0600519 "overtemp",
520 "memory_dimm"
Patrick Williams26919f02022-12-08 06:12:43 -0600521 ]
Matt Spinlerd4086652020-04-08 15:36:22 -0500522 },
523
Patrick Williams26919f02022-12-08 06:12:43 -0600524 "symbolicFRUTrusted": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500525 "description": "The symbolic FRU callout with a trusted location code. (Can light LEDs).",
526 "ref": "#/definitions/symbolicFRU"
Matt Spinler9e819c72020-02-12 16:44:16 -0600527 },
528
Patrick Williams26919f02022-12-08 06:12:43 -0600529 "procedure": {
Matt Spinler578e0702020-03-13 09:40:43 -0500530 "description": "The maintenance procedure callout.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600531 "type": "string",
Patrick Williams26919f02022-12-08 06:12:43 -0600532 "enum": [
533 "bmc_code",
534 "next_level_support",
535 "sbe_code",
536 "fsi_path",
537 "power_overcurrent",
Priyanga Ramasamy134e1e12022-12-02 07:03:39 -0600538 "find_sue_root_cause",
Marri Devender Rao385446b2023-04-14 00:16:35 -0500539 "system_vpd_correction",
540 "detected_issue_need_service"
Patrick Williams26919f02022-12-08 06:12:43 -0600541 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600542 },
543
Patrick Williams26919f02022-12-08 06:12:43 -0600544 "useInventoryLocCode": {
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500545 "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.",
546 "type": "boolean"
547 },
548
Patrick Williams26919f02022-12-08 06:12:43 -0600549 "calloutList": {
Matt Spinlerd4086652020-04-08 15:36:22 -0500550 "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 -0600551 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600552 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600553 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600554 "properties": {
555 "Priority": { "$ref": "#/definitions/priority" },
556 "LocCode": { "$ref": "#/definitions/locationCode" },
557 "SymbolicFRU": { "$ref": "#/definitions/symbolicFRU" },
558 "SymbolicFRUTrusted": {
559 "$ref": "#/definitions/symbolicFRUTrusted"
560 },
561 "Procedure": { "$ref": "#/definitions/procedure" },
562 "UseInventoryLocCode": {
563 "$ref": "#/definitions/useInventoryLocCode"
564 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600565 },
566 "additionalProperties": false,
567 "required": ["Priority"],
568
Patrick Williams26919f02022-12-08 06:12:43 -0600569 "oneOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500570 {
Patrick Williams26919f02022-12-08 06:12:43 -0600571 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500572 { "required": ["LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600573 { "not": { "required": ["SymbolicFRU"] } },
574 { "not": { "required": ["SymbolicFRUTrusted"] } },
575 { "not": { "required": ["Procedure"] } },
576 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500577 ]
578 },
579 {
Patrick Williams26919f02022-12-08 06:12:43 -0600580 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500581 { "required": ["SymbolicFRU"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600582 { "not": { "required": ["SymbolicFRUTrusted"] } },
583 { "not": { "required": ["Procedure"] } },
584 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500585 ]
586 },
587
588 {
Patrick Williams26919f02022-12-08 06:12:43 -0600589 "allOf": [
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500590 { "required": ["SymbolicFRUTrusted", "LocCode"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600591 { "not": { "required": ["SymbolicFRU"] } },
592 { "not": { "required": ["Procedure"] } },
593 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerf00f9d02020-10-23 09:14:22 -0500594 ]
595 },
596
597 {
Patrick Williams26919f02022-12-08 06:12:43 -0600598 "allOf": [
599 {
600 "required": [
601 "SymbolicFRUTrusted",
602 "UseInventoryLocCode"
603 ]
604 },
605 { "not": { "required": ["SymbolicFRU"] } },
606 { "not": { "required": ["Procedure"] } },
607 { "not": { "required": ["LocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500608 ]
609 },
610
611 {
Patrick Williams26919f02022-12-08 06:12:43 -0600612 "allOf": [
Matt Spinlerd4086652020-04-08 15:36:22 -0500613 { "required": ["Procedure"] },
Patrick Williams26919f02022-12-08 06:12:43 -0600614 { "not": { "required": ["SymbolicFRU"] } },
615 { "not": { "required": ["SymbolicFRUTrusted"] } },
616 { "not": { "required": ["LocCode"] } },
617 { "not": { "required": ["UseInventoryLocCode"] } }
Matt Spinlerd4086652020-04-08 15:36:22 -0500618 ]
619 }
620 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600621 },
622 "minItems": 1,
623 "maxItems": 10,
624
Patrick Williams26919f02022-12-08 06:12:43 -0600625 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600626 {
627 "Priority": "high",
628 "LocCode": "P1"
629 },
630 {
631 "Priority": "medium",
632 "LocCode": "P2",
633 "SymbolicFRU": "PROCFRU"
634 },
635 {
636 "Priority": "low",
637 "Procedure": "SVCDOCS"
638 }
639 ]
640 },
641
Patrick Williams26919f02022-12-08 06:12:43 -0600642 "system": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600643 "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 -0500644 "type": "string",
645 "minLength": 1
Matt Spinler9e819c72020-02-12 16:44:16 -0600646 },
647
Patrick Williams26919f02022-12-08 06:12:43 -0600648 "callouts": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600649 "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.",
650 "type": "array",
Patrick Williams26919f02022-12-08 06:12:43 -0600651 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600652 "type": "object",
653
Patrick Williams26919f02022-12-08 06:12:43 -0600654 "properties": {
655 "System": { "$ref": "#/definitions/system" },
656 "CalloutList": { "$ref": "#/definitions/calloutList" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600657 },
658 "required": ["CalloutList"],
659 "additionalProperties": false
660 },
661 "minItems": 1,
662 "maxItems": 10,
663
Patrick Williams26919f02022-12-08 06:12:43 -0600664 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600665 [
666 {
667 "System": "system1",
Patrick Williams26919f02022-12-08 06:12:43 -0600668 "CalloutList": [{ "Priority": "high", "LocCode": "P1" }]
Matt Spinler9e819c72020-02-12 16:44:16 -0600669 },
670 {
Patrick Williams26919f02022-12-08 06:12:43 -0600671 "CalloutList": [
672 { "Priority": "high", "Procedure": "NEXTLVL" }
673 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600674 }
675 ]
676 ]
677 },
678
Patrick Williams26919f02022-12-08 06:12:43 -0600679 "calloutsWithTheirADValues": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600680 "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.",
681 "type": "array",
682
Patrick Williams26919f02022-12-08 06:12:43 -0600683 "items": {
Matt Spinler9e819c72020-02-12 16:44:16 -0600684 "type": "object",
Patrick Williams26919f02022-12-08 06:12:43 -0600685 "properties": {
686 "ADValue": { "$ref": "#/definitions/adValue" },
687 "Callouts": { "$ref": "#/definitions/callouts" }
Matt Spinler9e819c72020-02-12 16:44:16 -0600688 },
689 "additionalProperties": false,
690 "required": ["ADValue", "Callouts"]
691 },
692 "minItems": 1,
Matt Spinler9e819c72020-02-12 16:44:16 -0600693
Patrick Williams26919f02022-12-08 06:12:43 -0600694 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600695 [
696 {
697 "ADValue": "0",
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": "P1" }
702 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600703 }
704 ]
705 },
706 {
707 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600708 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600709 {
Patrick Williams26919f02022-12-08 06:12:43 -0600710 "CalloutList": [
711 { "Priority": "high", "LocCode": "P2" }
712 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600713 }
714 ]
715 }
716 ]
717 ]
718 },
719
Patrick Williams26919f02022-12-08 06:12:43 -0600720 "calloutsUsingAD": {
Matt Spinler3d923312022-08-01 09:52:55 -0500721 "description": "This contains the callouts that can be specified based on a value in the AdditionalData property.",
Matt Spinler9e819c72020-02-12 16:44:16 -0600722 "type": "object",
723
Patrick Williams26919f02022-12-08 06:12:43 -0600724 "properties": {
725 "ADName": { "$ref": "#/definitions/adName" },
726 "CalloutsWithTheirADValues": {
727 "$ref": "#/definitions/calloutsWithTheirADValues"
728 },
729 "CalloutsWhenNoADMatch": {
730 "$ref": "#/definitions/calloutsWhenNoADMatch"
731 }
Matt Spinler9e819c72020-02-12 16:44:16 -0600732 },
733 "additionalProperties": false,
734 "required": ["ADName", "CalloutsWithTheirADValues"],
735
Patrick Williams26919f02022-12-08 06:12:43 -0600736 "examples": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600737 {
738 "ADName": "PROC_NUM",
Patrick Williams26919f02022-12-08 06:12:43 -0600739 "CalloutsWithTheirADValues": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600740 {
741 "ADValue": "0",
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": "P1" }
746 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600747 }
748 ]
749 },
750 {
751 "ADValue": "1",
Patrick Williams26919f02022-12-08 06:12:43 -0600752 "Callouts": [
Matt Spinler9e819c72020-02-12 16:44:16 -0600753 {
Patrick Williams26919f02022-12-08 06:12:43 -0600754 "CalloutList": [
755 { "Priority": "high", "LocCode": "P2" }
756 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600757 }
758 ]
759 }
760 ]
761 }
762 ]
Matt Spinler3d923312022-08-01 09:52:55 -0500763 },
764
Patrick Williams26919f02022-12-08 06:12:43 -0600765 "calloutsWhenNoADMatch": {
Matt Spinler3d923312022-08-01 09:52:55 -0500766 "description": "This contains the callouts to use when a match in the 'CalloutsWithTheirADValues array isn't found.",
767 "$ref": "#/definitions/callouts"
Matt Spinlerf22b4a12022-12-15 11:20:35 -0600768 },
769
770 "numLines": {
771 "description": "The number of lines of the journal to capture.",
772 "type": "integer",
773 "minimum": 1,
774 "maximum": 100
775 },
776
777 "syslogID": {
778 "description": "SYSLOG_IDENTIFIER value from the journal whose entries to capture.",
779 "type": "string",
780 "minLength": 1
781 },
782
783 "journalSection": {
784 "type": "object",
785 "properties": {
786 "SyslogID": { "$ref": "#/definitions/syslogID" },
787 "NumLines": { "$ref": "#/definitions/numLines" }
788 },
789 "additionalProperties": false,
790 "required": ["SyslogID", "NumLines"]
791 },
792
793 "journalSectionList": {
794 "description": "Describes which syslog IDs and how many journal lines to capture",
795 "type": "array",
796 "items": {
797 "$ref": "#/definitions/journalSection"
798 },
799 "minItems": 1,
800 "uniqueItems": true,
801 "examples": [
802 {
803 "Sections": [
804 {
805 "SyslogID": "phosphor-bmc-state-manager",
806 "NumLines": 20
807 }
808 ]
809 }
810 ]
811 },
812
813 "journalCapture": {
814 "description": "Allows a PEL to capture journal data in UserData sections.",
815 "type": "object",
816 "properties": {
817 "NumLines": { "$ref": "#/definitions/numLines" },
818 "Sections": { "$ref": "#/definitions/journalSectionList" }
819 },
820 "oneOf": [
821 {
822 "required": ["NumLines"]
823 },
824 {
825 "required": ["Sections"]
826 }
827 ],
828 "additionalProperties": false,
829 "examples": [
830 {
831 "JournalCapture": {
832 "NumLines": 30
833 }
834 },
835 {
836 "JournalCapture": {
837 "Sections": [
838 {
839 "SyslogID": "phosphor-bmc-state-manager",
840 "NumLines": 20
841 },
842 {
843 "SyslogID": "phosphor-log-manager",
844 "NumLines": 15
845 }
846 ]
847 }
848 }
849 ]
Matt Spinler9e819c72020-02-12 16:44:16 -0600850 }
Matt Spinler10f3d932019-09-26 16:24:14 -0500851 }
852}