Send FSID to clients too
This commit is contained in:
parent
dd0177ce10
commit
ec42b19d0e
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue