1 Star 0 Fork 10

ZhouWeitao/leapp_sync

forked from anolis/leapp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
report-schema-v110.json 41.55 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
{
"$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.0.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
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/yunqi-zwt/leapp_sync.git
git@gitee.com:yunqi-zwt/leapp_sync.git
yunqi-zwt
leapp_sync
leapp_sync
master_anolis

搜索帮助

0d507c66 1850385 C8b1a773 1850385