]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/cli/osdmaptool/tree.t
00eb0bed7b01bfeed833dd98ba5474197fcb0d30
[ceph.git] / ceph / src / test / cli / osdmaptool / tree.t
1 $ osdmaptool --createsimple 3 om
2 osdmaptool: osdmap file 'om'
3 osdmaptool: writing epoch 1 to om
4
5 $ osdmaptool --tree=plain om
6 osdmaptool: osdmap file 'om'
7 ID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY
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
14
15 $ osdmaptool --tree=json om
16 osdmaptool: osdmap file 'om'
17 {"nodes":[{"id":-1,"name":"default","type":"root","type_id":10,"children":[-3]},{"id":-3,"name":"localrack","type":"rack","type_id":3,"children":[-2]},{"id":-2,"name":"localhost","type":"host","type_id":1,"children":[2,1,0]},{"id":0,"name":"osd.0","type":"osd","type_id":0,"crush_weight":1.000000,"depth":3,"exists":0,"status":"down","reweight":0.000000,"primary_affinity":1.000000},{"id":1,"name":"osd.1","type":"osd","type_id":0,"crush_weight":1.000000,"depth":3,"exists":0,"status":"down","reweight":0.000000,"primary_affinity":1.000000},{"id":2,"name":"osd.2","type":"osd","type_id":0,"crush_weight":1.000000,"depth":3,"exists":0,"status":"down","reweight":0.000000,"primary_affinity":1.000000}],"stray":[]}
18 $ rm -f om
19