]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/osdmaptool/tree.t
update sources to v12.1.2
[ceph.git] / ceph / src / test / cli / osdmaptool / tree.t
CommitLineData
224ce89b 1 $ osdmaptool --createsimple 3 om --with-default-pool
7c673cae
FG
2 osdmaptool: osdmap file 'om'
3 osdmaptool: writing epoch 1 to om
4
5 $ osdmaptool --tree=plain om
6 osdmaptool: osdmap file 'om'
c07f9fc5
FG
7 ID CLASS WEIGHT TYPE NAME STATUS REWEIGHT PRI-AFF
8 -1 3.00000 root default
9 -3 3.00000 rack localrack
10 -2 3.00000 host localhost
11 0 1.00000 osd.0 DNE 0
12 1 1.00000 osd.1 DNE 0
13 2 1.00000 osd.2 DNE 0
7c673cae 14
c07f9fc5 15 $ osdmaptool --tree=json-pretty om
7c673cae 16 osdmaptool: osdmap file 'om'
c07f9fc5
FG
17 {
18 "nodes": [
19 {
20 "id": -1,
21 "name": "default",
22 "type": "root",
23 "type_id": 10,
24 "children": [
25 -3
26 ]
27 },
28 {
29 "id": -3,
30 "name": "localrack",
31 "type": "rack",
32 "type_id": 3,
33 "pool_weights": {},
34 "children": [
35 -2
36 ]
37 },
38 {
39 "id": -2,
40 "name": "localhost",
41 "type": "host",
42 "type_id": 1,
43 "pool_weights": {},
44 "children": [
45 2,
46 1,
47 0
48 ]
49 },
50 {
51 "id": 0,
52 "name": "osd.0",
53 "type": "osd",
54 "type_id": 0,
55 "crush_weight": 1.000000,
56 "depth": 3,
57 "pool_weights": {},
58 "exists": 0,
59 "status": "down",
60 "reweight": 0.000000,
61 "primary_affinity": 1.000000
62 },
63 {
64 "id": 1,
65 "name": "osd.1",
66 "type": "osd",
67 "type_id": 0,
68 "crush_weight": 1.000000,
69 "depth": 3,
70 "pool_weights": {},
71 "exists": 0,
72 "status": "down",
73 "reweight": 0.000000,
74 "primary_affinity": 1.000000
75 },
76 {
77 "id": 2,
78 "name": "osd.2",
79 "type": "osd",
80 "type_id": 0,
81 "crush_weight": 1.000000,
82 "depth": 3,
83 "pool_weights": {},
84 "exists": 0,
85 "status": "down",
86 "reweight": 0.000000,
87 "primary_affinity": 1.000000
88 }
89 ],
90 "stray": []
91 }
92
93
7c673cae
FG
94 $ rm -f om
95