-
Notifications
You must be signed in to change notification settings - Fork 70
/
report-schema-v110.json
664 lines (664 loc) · 41.6 KB
/
report-schema-v110.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"title": "The (pre)upgrade report schema",
"description": "The root schema comprises the entire JSON document.",
"default": {},
"version": "1.1.0",
"examples": [
{
"leapp_run_id": "a91dccab-84e8-4a28-b28e-102b073200a9",
"entries": [
{
"hostname": "vagrant-leapp-20210113121507",
"severity": "info",
"tags": [
"repository"
],
"timeStamp": "2021-01-13T13:04:06.895402Z",
"title": "Excluded RHEL 8 repositories",
"detail": {
"external": [
{
"url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/package_manifest/codereadylinuxbuilder-repository.",
"title": "CodeReady Linux Builder repository"
}
]
},
"actor": "repositories_blacklist",
"summary": "The following repositories are not supported by Red Hat and are excluded from the list of repositories used during the upgrade.\n- codeready-builder-for-rhel-8-x86_64-rpms",
"audience": "sysadmin",
"flags": [
"failure"
],
"key": "a12013a95a6d305adc9f4f675186f89760af1a7e",
"id": "88e518df66f34e0097ef7b4a4121f50eb5bcf9e8b2c017d1d07dca5e22db65e5"
},
{
"hostname": "vagrant-leapp-20210113121507",
"severity": "high",
"title": "Packages not signed by Red Hat found on the system",
"timeStamp": "2021-01-13T13:04:20.582335Z",
"tags": [
"sanity"
],
"actor": "red_hat_signed_rpm_check",
"summary": "The following packages have not been signed by Red Hat and may be removed during the upgrade process in case Red Hat-signed packages to be removed during the upgrade depend on them:\n- cockpit-leapp\n- leapp\n- leapp-deps\n- leapp-repository\n- leapp-repository-deps\n- python2-leapp\n- snactor",
"audience": "sysadmin",
"key": "13f0791ae5f19f50e7d0d606fb6501f91b1efb2c",
"id": "181fd075531341d88f5bdd9c17a379faa483fe188f2d0bfc125c66de3fd9c03f"
},
{
"hostname": "vagrant-leapp-20210113121507",
"severity": "low",
"title": "Grep has incompatible changes in the next major version",
"timeStamp": "2021-01-13T13:04:21.087993Z",
"tags": [
"tools"
],
"detail": {
"related_resources": [
{
"scheme": "package",
"title": "grep"
}
],
"remediations": [
{
"type": "hint",
"context": "Please update your scripts to be compatible with the changes."
}
],
"external": [
{
"url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/package_manifest/codereadylinuxbuilder-repository.",
"title": "CodeReady Linux Builder repository"
}
]
},
"actor": "checkgrep",
"summary": "If a file contains data improperly encoded for the current locale, and this is discovered before any of the file's contents are output, grep now treats the file as binary.\nThe 'grep -P' no longer reports an error and exits when given invalid UTF-8 data. Instead, it considers the data to be non-matching.\nIn locales with multibyte character encodings other than UTF-8, grep -P now reports an error and exits instead of misbehaving.\nWhen searching binary data, grep now may treat non-text bytes as line terminators. This can boost performance significantly.\nThe 'grep -z' no longer automatically treats the byte '\\200' as binary data.\nContext no longer excludes selected lines omitted because of -m. For example, 'grep \"^\" -m1 -A1' now outputs the first two input lines, not just the first line.\n",
"audience": "sysadmin",
"key": "94665a499e2eeee35eca3e7093a7abe183384b16",
"id": "d8f145577982de8387eb7a6427320065182e32f68cd09a5c768c5f3359a6734e"
}
]
}
],
"required": [
"leapp_run_id",
"entries"
],
"properties": {
"leapp_run_id": {
"$id": "#/properties/leapp_run_id",
"type": "string",
"title": "The leapp_run_id schema",
"description": "Unique id of a leapp execution.",
"default": "",
"examples": [
"a91dccab-84e8-4a28-b28e-102b073200a9"
]
},
"entries": {
"$id": "#/properties/entries",
"type": "array",
"title": "The report entries schema",
"description": "A list of all report entries that comprise a report",
"default": [],
"examples": [
[
{
"hostname": "vagrant-leapp-20210113121507",
"severity": "info",
"tags": [
"repository"
],
"timeStamp": "2021-01-13T13:04:06.895402Z",
"title": "Excluded RHEL 8 repositories",
"detail": {
"external": [
{
"url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/package_manifest/codereadylinuxbuilder-repository.",
"title": "CodeReady Linux Builder repository"
}
]
},
"actor": "repositories_blacklist",
"summary": "The following repositories are not supported by Red Hat and are excluded from the list of repositories used during the upgrade.\n- codeready-builder-for-rhel-8-x86_64-rpms",
"audience": "sysadmin",
"flags": [
"failure"
],
"key": "a12013a95a6d305adc9f4f675186f89760af1a7e",
"id": "88e518df66f34e0097ef7b4a4121f50eb5bcf9e8b2c017d1d07dca5e22db65e5"
},
{
"hostname": "vagrant-leapp-20210113121507",
"severity": "high",
"title": "Packages not signed by Red Hat found on the system",
"timeStamp": "2021-01-13T13:04:20.582335Z",
"tags": [
"sanity"
],
"actor": "red_hat_signed_rpm_check",
"summary": "The following packages have not been signed by Red Hat and may be removed during the upgrade process in case Red Hat-signed packages to be removed during the upgrade depend on them:\n- cockpit-leapp\n- leapp\n- leapp-deps\n- leapp-repository\n- leapp-repository-deps\n- python2-leapp\n- snactor",
"audience": "sysadmin",
"key": "13f0791ae5f19f50e7d0d606fb6501f91b1efb2c",
"id": "181fd075531341d88f5bdd9c17a379faa483fe188f2d0bfc125c66de3fd9c03f"
}
]
],
"additionalItems": true,
"items": {
"$id": "#/properties/entries/items",
"anyOf": [
{
"$id": "#/properties/entries/items/anyOf/0",
"type": "object",
"title": "The first anyOf schema",
"description": "A report entry.",
"default": {},
"examples": [
{
"hostname": "vagrant-leapp-20210113121507",
"severity": "info",
"tags": [
"repository"
],
"timeStamp": "2021-01-13T13:04:06.895402Z",
"title": "Excluded RHEL 8 repositories",
"detail": {
"external": [
{
"url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/package_manifest/codereadylinuxbuilder-repository.",
"title": "CodeReady Linux Builder repository"
}
]
},
"actor": "repositories_blacklist",
"summary": "The following repositories are not supported by Red Hat and are excluded from the list of repositories used during the upgrade.\n- codeready-builder-for-rhel-8-x86_64-rpms",
"audience": "sysadmin",
"flags": [
"failure"
],
"key": "a12013a95a6d305adc9f4f675186f89760af1a7e",
"id": "88e518df66f34e0097ef7b4a4121f50eb5bcf9e8b2c017d1d07dca5e22db65e5"
}
],
"required": [
"hostname",
"severity",
"timeStamp",
"title",
"actor",
"summary",
"audience",
"id"
],
"properties": {
"hostname": {
"$id": "#/properties/entries/items/anyOf/0/properties/hostname",
"type": "string",
"title": "The hostname schema",
"description": "A hostname specified in a report entry.",
"default": "",
"examples": [
"vagrant-leapp-20210113121507"
]
},
"severity": {
"$id": "#/properties/entries/items/anyOf/0/properties/severity",
"type": "string",
"title": "The severity schema",
"description": "Report severity.",
"default": "info",
"enum": ["info", "low", "medium", "high"],
"examples": [
"info"
]
},
"tags": {
"$id": "#/properties/entries/items/anyOf/0/properties/tags",
"type": "array",
"title": "The tags schema",
"description": "Tags used for the report. May be merged with flags in the next version.",
"default": [],
"examples": [
[
"repository"
]
],
"additionalItems": true,
"items": {
"$id": "#/properties/entries/items/anyOf/0/properties/tags/items",
"anyOf": [
{
"$id": "#/properties/entries/items/anyOf/0/properties/tags/items/anyOf/0",
"type": "string",
"title": "The first anyOf schema",
"description": "A report tag.",
"default": "",
"examples": [
"repository"
]
}
]
}
},
"timeStamp": {
"$id": "#/properties/entries/items/anyOf/0/properties/timeStamp",
"type": "string",
"title": "The timeStamp schema",
"description": "Report entry timestamp.",
"default": "",
"examples": [
"2021-01-13T13:04:06.895402Z"
]
},
"title": {
"$id": "#/properties/entries/items/anyOf/0/properties/title",
"type": "string",
"title": "The title schema",
"description": "Report title.",
"default": "",
"examples": [
"Excluded RHEL 8 repositories"
]
},
"detail": {
"$id": "#/properties/entries/items/anyOf/0/properties/detail",
"type": "object",
"title": "The detail schema",
"description": "Additional information connected to the report (remediations, external links, related resources).",
"default": {},
"examples": [
{
"external": [
{
"url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/package_manifest/codereadylinuxbuilder-repository.",
"title": "CodeReady Linux Builder repository"
}
]
}
],
"anyOf": [
{ "required": [ "external" ] },
{ "required": [ "remediations" ] },
{ "required": [ "related_resources" ] }
],
"properties": {
"external": {
"$id": "#/properties/entries/items/anyOf/0/properties/detail/properties/external",
"type": "array",
"title": "The external links schema",
"description": "List of external links mentioned in the report entry.",
"default": [],
"examples": [
[
{
"url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/package_manifest/codereadylinuxbuilder-repository.",
"title": "CodeReady Linux Builder repository"
}
]
],
"additionalItems": true,
"items": {
"$id": "#/properties/entries/items/anyOf/0/properties/detail/properties/external/items",
"anyOf": [
{
"$id": "#/properties/entries/items/anyOf/0/properties/detail/properties/external/items/anyOf/0",
"type": "object",
"title": "The first external link",
"description": "An external link.",
"default": {},
"examples": [
{
"url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/package_manifest/codereadylinuxbuilder-repository.",
"title": "CodeReady Linux Builder repository"
}
],
"required": [
"url",
"title"
],
"properties": {
"url": {
"$id": "#/properties/entries/items/anyOf/0/properties/detail/properties/external/items/anyOf/0/properties/url",
"type": "string",
"title": "The url schema",
"description": "An external link url.",
"default": "",
"examples": [
"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/package_manifest/codereadylinuxbuilder-repository."
]
},
"title": {
"$id": "#/properties/entries/items/anyOf/0/properties/detail/properties/external/items/anyOf/0/properties/title",
"type": "string",
"title": "The title schema",
"description": "An external link title.",
"default": "",
"examples": [
"CodeReady Linux Builder repository"
]
}
},
"additionalProperties": true
}
]
}
},
"related_resources": {
"$id": "#/properties/detail/properties/related_resources",
"type": "array",
"title": "The related_resources schema",
"description": "A list of related resources.",
"default": [],
"examples": [
[
{
"scheme": "package",
"title": "grep"
}
]
],
"additionalItems": true,
"items": {
"$id": "#/properties/detail/properties/related_resources/items",
"anyOf": [
{
"$id": "#/properties/detail/properties/related_resources/items/anyOf/0",
"type": "object",
"title": "The first related resource",
"description": "A resource related to the report entry.",
"default": {},
"examples": [
{
"scheme": "package",
"title": "grep"
}
],
"required": [
"scheme",
"title"
],
"properties": {
"scheme": {
"$id": "#/properties/detail/properties/related_resources/items/anyOf/0/properties/scheme",
"type": "string",
"title": "The scheme schema",
"description": "A scheme (type) of the related resource.",
"default": "",
"examples": [
"package"
]
},
"title": {
"$id": "#/properties/detail/properties/related_resources/items/anyOf/0/properties/title",
"type": "string",
"title": "The title schema",
"description": "Title of the related resource.",
"default": "",
"examples": [
"grep"
]
}
},
"additionalProperties": true
}
]
}
},
"remediations": {
"$id": "#/properties/detail/properties/remediations",
"type": "array",
"title": "The remediations schema",
"description": "A list of remediations, describes what needs to be done to fix the problem.",
"default": [],
"examples": [
[
{
"type": "hint",
"context": "Please update your scripts to be compatible with the changes."
}
],
[
{
"type": "hint",
"context": "This is remediation with hint and the command."
},
{
"type": "command",
"context": [ "echo", "some text" ]
}
],
[
{
"type": "command",
"context": [ "echo", "some text", "2" ]
},
{
"type": "command",
"context": [ "echo", "2nd", "cmd" ]
}
],
[
{
"type": "hint",
"context": "The remediation with hint, command, and playbook."
},
{
"type": "command",
"context": [ "echo", "some text" ]
},
{
"type": "playbook",
"context": "/path/to/playbook"
}
],
[
{
"type": "playbook",
"context": "/path/to/playbook"
}
]
],
"additionalItems": true,
"items": {
"$id": "#/properties/detail/properties/remediations/items",
"anyOf": [
{
"$id": "#/properties/detail/properties/remediations/items/anyOf/0",
"type": "object",
"title": "The first remediation",
"description": "",
"default": {},
"examples": [
{
"type": "hint",
"context": "Please update your scripts to be compatible with the changes."
}
],
"required": [
"type",
"context"
],
"properties": {
"type": {
"$id": "#/properties/detail/properties/remediations/items/anyOf/0/properties/type",
"type": "string",
"title": "The type schema",
"description": "Type of remediation.",
"default": "",
"enum": ["hint", "playbook"],
"examples": [
"hint"
]
},
"context": {
"$id": "#/properties/detail/properties/remediations/items/anyOf/0/properties/context",
"type": "string",
"title": "The context schema",
"description": "The remediation itself.",
"default": "",
"examples": [
"Please update your scripts to be compatible with the changes."
]
}
},
"additionalProperties": true
},
{
"$id": "#/properties/detail/properties/remediations/items/anyOf/1",
"type": "object",
"title": "The first remediation",
"description": "",
"default": {},
"examples": [
{
"type": "command",
"context": [ "rm -rf /tmp/42" ]
}
],
"required": [
"type",
"context"
],
"properties": {
"type": {
"$id": "#/properties/detail/properties/remediations/items/anyOf/1/properties/type",
"type": "string",
"title": "The type schema",
"description": "Type of remediation.",
"default": "",
"enum": ["command"],
"examples": ["command"]
},
"context": {
"$id": "#/properties/detail/properties/remediations/items/anyOf/1/properties/context",
"type": "array",
"title": "The context schema",
"description": "List of remediation commands.",
"default": [],
"examples": [
[
"rm -rf /tmp/42"
]
],
"additionalItems": true,
"items": {
"$id": "#/properties/detail/properties/remediations/items/anyOf/1/properties/context/items",
"anyOf": [
{
"$id": "#/properties/detail/properties/remediations/items/anyOf/1/properties/context/items/anyOf/0",
"type": "string",
"title": "The remediation command schema",
"description": "The remediation in form of a command.",
"default": "",
"examples": [
"rm -rf /tmp/42"
]
}
]
}
}
},
"additionalProperties": true
}
]
}
}
},
"additionalProperties": true
},
"actor": {
"$id": "#/properties/entries/items/anyOf/0/properties/actor",
"type": "string",
"title": "The actor name schema",
"description": "Name of the actor that reported a problem.",
"default": "",
"examples": [
"repositories_blacklist"
]
},
"summary": {
"$id": "#/properties/entries/items/anyOf/0/properties/summary",
"type": "string",
"title": "The summary schema",
"description": "Details of the reported problem.",
"default": "",
"examples": [
"The following repositories are not supported by Red Hat and are excluded from the list of repositories used during the upgrade.\n- codeready-builder-for-rhel-8-x86_64-rpms"
]
},
"audience": {
"$id": "#/properties/entries/items/anyOf/0/properties/audience",
"type": "string",
"title": "The audience schema",
"description": "The key audience of the reported problem.",
"default": "",
"enum": ["sysadmin", "developer"],
"examples": [
"sysadmin"
]
},
"flags": {
"$id": "#/properties/entries/items/anyOf/0/properties/flags",
"type": "array",
"title": "Report flags schema",
"description": "List of flags, a flag is a predefined string",
"default": [],
"examples": [
[
"failure"
]
],
"additionalItems": true,
"items": {
"$id": "#/properties/entries/items/anyOf/0/properties/flags/items",
"anyOf": [
{
"$id": "#/properties/entries/items/anyOf/0/properties/flags/items/anyOf/0",
"type": "string",
"title": "The report flag schema",
"description": "A report flag can have a predefined value.",
"default": "",
"enum": ["failure", "inhibitor"],
"examples": [
"failure"
]
}
]
}
},
"key": {
"$id": "#/properties/entries/items/anyOf/0/properties/key",
"type": "string",
"title": "The key schema",
"description": "The stable unique report entry key.",
"default": "",
"examples": [
"a12013a95a6d305adc9f4f675186f89760af1a7e"
]
},
"id": {
"$id": "#/properties/entries/items/anyOf/0/properties/id",
"type": "string",
"title": "The id schema",
"description": "Unique id for the report entry. Not stable.",
"default": "",
"examples": [
"88e518df66f34e0097ef7b4a4121f50eb5bcf9e8b2c017d1d07dca5e22db65e5"
]
}
},
"additionalProperties": true
}
]
}
}
},
"additionalProperties": true
}