Ensure initial OSD stats is populated
Values are all invalid but this ensures the client won't error out when trying to show an OSD that has never checked in yet.
This commit is contained in:
parent
5807351405
commit
cea8832f90
|
@ -297,7 +297,10 @@ class CephOSDInstance(object):
|
||||||
(("osd.node", osd_id), node),
|
(("osd.node", osd_id), node),
|
||||||
(("osd.device", osd_id), device),
|
(("osd.device", osd_id), device),
|
||||||
(("osd.db_device", osd_id), db_device),
|
(("osd.db_device", osd_id), db_device),
|
||||||
(("osd.stats", osd_id), "{}"),
|
(
|
||||||
|
("osd.stats", osd_id),
|
||||||
|
f'{"uuid": "|", "up": 0, "in": 0, "primary_affinity": "|", "utilization": "|", "var": "|", "pgs": "|", "kb": "|", "weight": "|", "reweight": "|", "node": "{node}", "used": "|", "avail": "|", "wr_ops": "|", "wr_data": "|", "rd_ops": "|", "rd_data": "|", state="|" }',
|
||||||
|
),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue