Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / doc / rados / command / list-inconsistent-obj.json
1 {
2   "$schema": "http://json-schema.org/draft-04/schema#",
3   "type": "object",
4   "properties": {
5     "epoch": {
6       "description": "Scrub epoch",
7       "type": "integer"
8     },
9     "inconsistents": {
10       "type": "array",
11       "items": {
12         "type": "object",
13         "properties": {
14           "object": {
15             "description": "Identify a Ceph object",
16             "type": "object",
17             "properties": {
18               "name": {
19                 "type": "string"
20               },
21               "nspace": {
22                 "type": "string"
23               },
24               "locator": {
25                 "type": "string"
26               },
27               "version": {
28                 "type": "integer",
29                 "minimum": 0
30               },
31               "snap": {
32                 "oneOf": [
33                   {
34                     "type": "string",
35                     "enum": [ "head", "snapdir" ]
36                   },
37                   {
38                     "type": "integer",
39                     "minimum": 0
40                   }
41                 ]
42               }
43             },
44             "required": [
45               "name",
46               "nspace",
47               "locator",
48               "version",
49               "snap"
50             ]
51           },
52           "selected_object_info": {
53               "type": "string"
54           },
55           "union_shard_errors": {
56             "description": "Union of all shard errors",
57             "type": "array",
58             "items": {
59               "enum": [
60                 "missing",
61                 "stat_error",
62                 "read_error",
63                 "data_digest_mismatch_oi",
64                 "omap_digest_mismatch_oi",
65                 "size_mismatch_oi",
66                 "ec_hash_error",
67                 "ec_size_error",
68                 "oi_attr_missing",
69                 "oi_attr_corrupted",
70                 "obj_size_oi_mismatch",
71                 "ss_attr_missing",
72                 "ss_attr_corrupted"
73               ]
74             },
75             "minItems": 0,
76             "uniqueItems": true
77           },
78           "errors": {
79             "description": "Errors related to the analysis of this object",
80             "type": "array",
81             "items": {
82               "enum": [
83                 "object_info_inconsistency",
84                 "data_digest_mismatch",
85                 "omap_digest_mismatch",
86                 "size_mismatch",
87                 "attr_value_mismatch",
88                 "attr_name_mismatch"
89               ]
90             },
91             "minItems": 0,
92             "uniqueItems": true
93           },
94           "shards": {
95             "description": "All found or expected shards",
96             "type": "array",
97             "items": {
98               "description": "Information about a particular shard of object",
99               "type": "object",
100               "properties": {
101                 "object_info": {
102                   "type": "string"
103                 },
104                 "shard": {
105                   "type": "integer"
106                 },
107                 "osd": {
108                   "type": "integer"
109                 },
110                 "primary": {
111                   "type": "boolean"
112                 },
113                 "size": {
114                   "type": "integer"
115                 },
116                 "omap_digest": {
117                   "description": "Hex representation (e.g. 0x1abd1234)",
118                   "type": "string"
119                 },
120                 "data_digest": {
121                   "description": "Hex representation (e.g. 0x1abd1234)",
122                   "type": "string"
123                 },
124                 "errors": {
125                   "description": "Errors with this shard",
126                   "type": "array",
127                   "items": {
128                     "enum": [
129                       "missing",
130                       "stat_error",
131                       "read_error",
132                       "data_digest_mismatch_oi",
133                       "omap_digest_mismatch_oi",
134                       "size_mismatch_oi",
135                       "ec_hash_error",
136                       "ec_size_error",
137                       "oi_attr_missing",
138                       "oi_attr_corrupted",
139                       "obj_size_oi_mismatch",
140                       "ss_attr_missing",
141                       "ss_attr_corrupted"
142                     ]
143                   },
144                   "minItems": 0,
145                   "uniqueItems": true
146                 },
147                 "attrs": {
148                   "description": "If any shard's attr error is set then all attrs are here",
149                   "type": "array",
150                   "items": {
151                     "description": "Information about a particular shard of object",
152                     "type": "object",
153                     "properties": {
154                       "name": {
155                         "type": "string"
156                       },
157                       "value": {
158                         "type": "string"
159                       },
160                       "Base64": {
161                         "type": "boolean"
162                       }
163                     },
164                     "required": [
165                       "name",
166                       "value",
167                       "Base64"
168                     ],
169                     "additionalProperties": false,
170                     "minItems": 1
171                   }
172                 }
173               },
174               "required": [
175                 "osd",
176                 "primary",
177                 "errors"
178               ]
179             }
180           }
181         },
182         "required": [
183           "object",
184           "union_shard_errors",
185           "errors",
186           "shards"
187         ]
188       }
189     }
190   },
191   "required": [
192     "epoch",
193     "inconsistents"
194   ]
195 }