]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/osdmaptool/tree.t
update sources to v12.1.1
[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'
224ce89b
WB
7 ID CLASS WEIGHT TYPE NAME UP/DOWN 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
FG
14
15 $ osdmaptool --tree=json om
16 osdmaptool: osdmap file 'om'
224ce89b 17 {"nodes":[{"id":-1,"device_class":"","name":"default","type":"root","type_id":10,"children":[-3]},{"id":-3,"device_class":"","name":"localrack","type":"rack","type_id":3,"children":[-2]},{"id":-2,"device_class":"","name":"localhost","type":"host","type_id":1,"children":[2,1,0]},{"id":0,"device_class":"","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,"device_class":"","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,"device_class":"","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":[]}
7c673cae
FG
18 $ rm -f om
19