@@ -27,52 +27,60 @@ type CephCommand struct {
2727
2828var CephCommands = []CephCommand {
2929 {
30- ID : "status" ,
31- Command : []string {"ceph" , "status" },
32- Args : []string {"-f" , "json-pretty" },
33- Format : "json" ,
30+ ID : "status" ,
31+ Command : []string {"ceph" , "status" },
32+ Args : []string {"-f" , "json-pretty" },
33+ Format : "json" ,
34+ DefaultTimeout : "30s" ,
3435 },
3536 {
36- ID : "fs" ,
37- Command : []string {"ceph" , "fs" , "status" },
38- Args : []string {"-f" , "json-pretty" },
39- Format : "json" ,
37+ ID : "fs" ,
38+ Command : []string {"ceph" , "fs" , "status" },
39+ Args : []string {"-f" , "json-pretty" },
40+ Format : "json" ,
41+ DefaultTimeout : "30s" ,
4042 },
4143 {
42- ID : "fs-ls" ,
43- Command : []string {"ceph" , "fs" , "ls" },
44- Args : []string {"-f" , "json-pretty" },
45- Format : "json" ,
44+ ID : "fs-ls" ,
45+ Command : []string {"ceph" , "fs" , "ls" },
46+ Args : []string {"-f" , "json-pretty" },
47+ Format : "json" ,
48+ DefaultTimeout : "30s" ,
4649 },
4750 {
48- ID : "osd-status" ,
49- Command : []string {"ceph" , "osd" , "status" },
50- Args : []string {"-f" , "json-pretty" },
51- Format : "txt" ,
51+ ID : "osd-status" ,
52+ Command : []string {"ceph" , "osd" , "status" },
53+ Args : []string {"-f" , "json-pretty" },
54+ Format : "txt" ,
55+ DefaultTimeout : "30s" ,
5256 },
5357 {
54- ID : "osd-tree" ,
55- Command : []string {"ceph" , "osd" , "tree" },
56- Args : []string {"-f" , "json-pretty" },
57- Format : "json" ,
58+ ID : "osd-tree" ,
59+ Command : []string {"ceph" , "osd" , "tree" },
60+ Args : []string {"-f" , "json-pretty" },
61+ Format : "json" ,
62+ DefaultTimeout : "30s" ,
5863 },
5964 {
60- ID : "osd-pool" ,
61- Command : []string {"ceph" , "osd" , "pool" , "ls" , "detail" },
62- Args : []string {"-f" , "json-pretty" },
63- Format : "json" ,
65+ ID : "osd-pool" ,
66+ Command : []string {"ceph" , "osd" , "pool" , "ls" , "detail" },
67+ Args : []string {"-f" , "json-pretty" },
68+ Format : "json" ,
69+ DefaultTimeout : "30s" ,
6470 },
6571 {
66- ID : "health" ,
67- Command : []string {"ceph" , "health" , "detail" },
68- Args : []string {"-f" , "json-pretty" },
69- Format : "json" ,
72+ ID : "health" ,
73+ Command : []string {"ceph" , "health" , "detail" },
74+ Args : []string {"-f" , "json-pretty" },
75+ Format : "json" ,
76+ DefaultTimeout : "30s" ,
7077 },
7178 {
72- ID : "auth" ,
73- Command : []string {"ceph" , "auth" , "ls" },
74- Args : []string {"-f" , "json-pretty" },
75- Format : "json" ,
79+ ID : "auth" ,
80+ Command : []string {"ceph" , "auth" , "ls" },
81+ Args : []string {"-f" , "json-pretty" },
82+ Format : "json" ,
83+ DefaultTimeout : "30s" ,
7684 },
7785 {
7886 ID : "rgw-stats" , // the disk usage (and other stats) of each object store bucket
@@ -82,10 +90,18 @@ var CephCommands = []CephCommand{
8290 DefaultTimeout : "30s" , // include a default timeout because this command will hang if the RGW daemon isn't running/is unhealthy
8391 },
8492 {
85- ID : "rbd-du" , // the disk usage of each PVC
86- Command : []string {"rbd" , "du" },
87- Args : []string {"--pool=replicapool" },
88- Format : "txt" ,
93+ ID : "rbd-du" , // the disk usage of each PVC
94+ Command : []string {"rbd" , "du" },
95+ Args : []string {"--pool=replicapool" },
96+ Format : "txt" ,
97+ DefaultTimeout : "30s" ,
98+ },
99+ {
100+ ID : "osd-df" ,
101+ Command : []string {"ceph" , "osd" , "df" },
102+ Args : []string {"-f" , "json-pretty" },
103+ Format : "json" ,
104+ DefaultTimeout : "30s" ,
89105 },
90106}
91107
0 commit comments