Send FSID to clients too

This commit is contained in:
Joshua Boniface 2023-11-03 16:37:55 -04:00
parent dd0177ce10
commit ec42b19d0e
1 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,7 @@ def getClusterOSDList(zkhandler):
def getOSDInformation(zkhandler, osd_id): def getOSDInformation(zkhandler, osd_id):
# Get the devices # Get the devices
osd_fsid = zkhandler.read(("osd.fsid", osd_id))
osd_node = zkhandler.read(("osd.node", osd_id)) osd_node = zkhandler.read(("osd.node", osd_id))
osd_device = zkhandler.read(("osd.device", osd_id)) osd_device = zkhandler.read(("osd.device", osd_id))
osd_is_split = bool(strtobool(zkhandler.read(("osd.is_split", osd_id)))) osd_is_split = bool(strtobool(zkhandler.read(("osd.is_split", osd_id))))
@ -220,6 +221,7 @@ def getOSDInformation(zkhandler, osd_id):
osd_information = { osd_information = {
"id": osd_id, "id": osd_id,
"fsid": osd_fsid,
"node": osd_node, "node": osd_node,
"device": osd_device, "device": osd_device,
"is_split": osd_is_split, "is_split": osd_is_split,