2016-08-30 19:11:44 +00:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"epoch": {
|
|
|
|
"description": "Scrub epoch",
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"inconsistents": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"object": {
|
|
|
|
"description": "Identify a Ceph object",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nspace": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"locator": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"version": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0
|
|
|
|
},
|
|
|
|
"snap": {
|
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"enum": [ "head", "snapdir" ]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"nspace",
|
|
|
|
"locator",
|
|
|
|
"version",
|
|
|
|
"snap"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"selected_object_info": {
|
2018-03-16 06:59:52 +00:00
|
|
|
"type": "object",
|
|
|
|
"description": "Selected object information",
|
|
|
|
"additionalProperties": true
|
2016-08-30 19:11:44 +00:00
|
|
|
},
|
|
|
|
"union_shard_errors": {
|
|
|
|
"description": "Union of all shard errors",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"enum": [
|
|
|
|
"missing",
|
|
|
|
"stat_error",
|
|
|
|
"read_error",
|
2018-03-16 04:50:30 +00:00
|
|
|
"data_digest_mismatch_info",
|
|
|
|
"omap_digest_mismatch_info",
|
|
|
|
"size_mismatch_info",
|
2016-08-30 19:11:44 +00:00
|
|
|
"ec_hash_error",
|
|
|
|
"ec_size_error",
|
2018-03-16 00:09:43 +00:00
|
|
|
"info_missing",
|
|
|
|
"info_corrupted",
|
2018-03-16 04:50:30 +00:00
|
|
|
"obj_size_info_mismatch",
|
2018-03-15 21:29:54 +00:00
|
|
|
"snapset_missing",
|
|
|
|
"snapset_corrupted",
|
2018-03-14 23:07:01 +00:00
|
|
|
"hinfo_missing",
|
|
|
|
"hinfo_corrupted"
|
2016-08-30 19:11:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"minItems": 0,
|
|
|
|
"uniqueItems": true
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"description": "Errors related to the analysis of this object",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"enum": [
|
|
|
|
"object_info_inconsistency",
|
|
|
|
"data_digest_mismatch",
|
|
|
|
"omap_digest_mismatch",
|
|
|
|
"size_mismatch",
|
|
|
|
"attr_value_mismatch",
|
2018-02-15 00:56:39 +00:00
|
|
|
"attr_name_mismatch",
|
2018-03-14 23:07:01 +00:00
|
|
|
"snapset_inconsistency",
|
2019-08-09 20:07:22 +00:00
|
|
|
"hinfo_inconsistency",
|
|
|
|
"size_too_large"
|
2016-08-30 19:11:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"minItems": 0,
|
|
|
|
"uniqueItems": true
|
|
|
|
},
|
|
|
|
"shards": {
|
|
|
|
"description": "All found or expected shards",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"description": "Information about a particular shard of object",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"object_info": {
|
2018-03-16 06:59:52 +00:00
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"description": "Object information",
|
|
|
|
"additionalProperties": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"snapset": {
|
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"description": "Snap set information",
|
|
|
|
"additionalProperties": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"hashinfo": {
|
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"description": "Erasure code hash information",
|
|
|
|
"additionalProperties": true
|
|
|
|
}
|
|
|
|
]
|
2016-08-30 19:11:44 +00:00
|
|
|
},
|
|
|
|
"shard": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"osd": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2017-07-06 02:14:36 +00:00
|
|
|
"primary": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2016-08-30 19:11:44 +00:00
|
|
|
"size": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"omap_digest": {
|
|
|
|
"description": "Hex representation (e.g. 0x1abd1234)",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"data_digest": {
|
|
|
|
"description": "Hex representation (e.g. 0x1abd1234)",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"description": "Errors with this shard",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"enum": [
|
|
|
|
"missing",
|
|
|
|
"stat_error",
|
|
|
|
"read_error",
|
2018-03-16 04:50:30 +00:00
|
|
|
"data_digest_mismatch_info",
|
|
|
|
"omap_digest_mismatch_info",
|
|
|
|
"size_mismatch_info",
|
2016-08-30 19:11:44 +00:00
|
|
|
"ec_hash_error",
|
|
|
|
"ec_size_error",
|
2018-03-16 00:09:43 +00:00
|
|
|
"info_missing",
|
|
|
|
"info_corrupted",
|
2018-03-16 04:50:30 +00:00
|
|
|
"obj_size_info_mismatch",
|
2018-03-15 21:29:54 +00:00
|
|
|
"snapset_missing",
|
|
|
|
"snapset_corrupted",
|
2018-03-14 23:07:01 +00:00
|
|
|
"hinfo_missing",
|
|
|
|
"hinfo_corrupted"
|
2016-08-30 19:11:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"minItems": 0,
|
|
|
|
"uniqueItems": true
|
|
|
|
},
|
|
|
|
"attrs": {
|
|
|
|
"description": "If any shard's attr error is set then all attrs are here",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"description": "Information about a particular shard of object",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"value": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"Base64": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"value",
|
|
|
|
"Base64"
|
|
|
|
],
|
2018-03-16 06:59:52 +00:00
|
|
|
"additionalProperties": false
|
2016-08-30 19:11:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2018-03-16 06:59:52 +00:00
|
|
|
"additionalProperties": false,
|
2016-08-30 19:11:44 +00:00
|
|
|
"required": [
|
|
|
|
"osd",
|
2017-07-06 02:14:36 +00:00
|
|
|
"primary",
|
2016-08-30 19:11:44 +00:00
|
|
|
"errors"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"object",
|
|
|
|
"union_shard_errors",
|
|
|
|
"errors",
|
|
|
|
"shards"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"epoch",
|
|
|
|
"inconsistents"
|
|
|
|
]
|
|
|
|
}
|