]> git.proxmox.com Git - ceph.git/blob - ceph/doc/rados/command/list-inconsistent-obj.json
update sources to v12.2.5
[ceph.git] / 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": "object",
54 "description": "Selected object information",
55 "additionalProperties": true
56 },
57 "union_shard_errors": {
58 "description": "Union of all shard errors",
59 "type": "array",
60 "items": {
61 "enum": [
62 "missing",
63 "stat_error",
64 "read_error",
65 "data_digest_mismatch_info",
66 "omap_digest_mismatch_info",
67 "size_mismatch_info",
68 "ec_hash_error",
69 "ec_size_error",
70 "info_missing",
71 "info_corrupted",
72 "obj_size_info_mismatch",
73 "snapset_missing",
74 "snapset_corrupted",
75 "hinfo_missing",
76 "hinfo_corrupted"
77 ]
78 },
79 "minItems": 0,
80 "uniqueItems": true
81 },
82 "errors": {
83 "description": "Errors related to the analysis of this object",
84 "type": "array",
85 "items": {
86 "enum": [
87 "object_info_inconsistency",
88 "data_digest_mismatch",
89 "omap_digest_mismatch",
90 "size_mismatch",
91 "attr_value_mismatch",
92 "attr_name_mismatch",
93 "snapset_inconsistency",
94 "hinfo_inconsistency"
95 ]
96 },
97 "minItems": 0,
98 "uniqueItems": true
99 },
100 "shards": {
101 "description": "All found or expected shards",
102 "type": "array",
103 "items": {
104 "description": "Information about a particular shard of object",
105 "type": "object",
106 "properties": {
107 "object_info": {
108 "oneOf": [
109 {
110 "type": "string"
111 },
112 {
113 "type": "object",
114 "description": "Object information",
115 "additionalProperties": true
116 }
117 ]
118 },
119 "snapset": {
120 "oneOf": [
121 {
122 "type": "string"
123 },
124 {
125 "type": "object",
126 "description": "Snap set information",
127 "additionalProperties": true
128 }
129 ]
130 },
131 "hashinfo": {
132 "oneOf": [
133 {
134 "type": "string"
135 },
136 {
137 "type": "object",
138 "description": "Erasure code hash information",
139 "additionalProperties": true
140 }
141 ]
142 },
143 "shard": {
144 "type": "integer"
145 },
146 "osd": {
147 "type": "integer"
148 },
149 "primary": {
150 "type": "boolean"
151 },
152 "size": {
153 "type": "integer"
154 },
155 "omap_digest": {
156 "description": "Hex representation (e.g. 0x1abd1234)",
157 "type": "string"
158 },
159 "data_digest": {
160 "description": "Hex representation (e.g. 0x1abd1234)",
161 "type": "string"
162 },
163 "errors": {
164 "description": "Errors with this shard",
165 "type": "array",
166 "items": {
167 "enum": [
168 "missing",
169 "stat_error",
170 "read_error",
171 "data_digest_mismatch_info",
172 "omap_digest_mismatch_info",
173 "size_mismatch_info",
174 "ec_hash_error",
175 "ec_size_error",
176 "info_missing",
177 "info_corrupted",
178 "obj_size_info_mismatch",
179 "snapset_missing",
180 "snapset_corrupted",
181 "hinfo_missing",
182 "hinfo_corrupted"
183 ]
184 },
185 "minItems": 0,
186 "uniqueItems": true
187 },
188 "attrs": {
189 "description": "If any shard's attr error is set then all attrs are here",
190 "type": "array",
191 "items": {
192 "description": "Information about a particular shard of object",
193 "type": "object",
194 "properties": {
195 "name": {
196 "type": "string"
197 },
198 "value": {
199 "type": "string"
200 },
201 "Base64": {
202 "type": "boolean"
203 }
204 },
205 "required": [
206 "name",
207 "value",
208 "Base64"
209 ],
210 "additionalProperties": false
211 }
212 }
213 },
214 "additionalProperties": false,
215 "required": [
216 "osd",
217 "primary",
218 "errors"
219 ]
220 }
221 }
222 },
223 "required": [
224 "object",
225 "union_shard_errors",
226 "errors",
227 "shards"
228 ]
229 }
230 }
231 },
232 "required": [
233 "epoch",
234 "inconsistents"
235 ]
236 }