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:
Joshua Boniface 2022-04-29 16:50:30 -04:00
parent 85463f9aec
commit 7323269775

View File

@ -297,7 +297,10 @@ class CephOSDInstance(object):
(("osd.node", osd_id), node),
(("osd.device", osd_id), 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="|" }',
),
]
)