Port one final Ceph function to read_many
This commit is contained in:
parent
e781d742e6
commit
57c28376a6
|
@ -320,13 +320,18 @@ def get_list_osd(zkhandler, limit=None, is_fuzzy=True):
|
||||||
#
|
#
|
||||||
def getPoolInformation(zkhandler, pool):
|
def getPoolInformation(zkhandler, pool):
|
||||||
# Parse the stats data
|
# Parse the stats data
|
||||||
pool_stats_raw = zkhandler.read(("pool.stats", pool))
|
(pool_stats_raw, tier, pgs,) = zkhandler.read_many(
|
||||||
|
[
|
||||||
|
("pool.stats", pool),
|
||||||
|
("pool.tier", pool),
|
||||||
|
("pool.pgs", pool),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
pool_stats = dict(json.loads(pool_stats_raw))
|
pool_stats = dict(json.loads(pool_stats_raw))
|
||||||
volume_count = len(getCephVolumes(zkhandler, pool))
|
volume_count = len(getCephVolumes(zkhandler, pool))
|
||||||
tier = zkhandler.read(("pool.tier", pool))
|
|
||||||
if tier is None:
|
if tier is None:
|
||||||
tier = "default"
|
tier = "default"
|
||||||
pgs = zkhandler.read(("pool.pgs", pool))
|
|
||||||
|
|
||||||
pool_information = {
|
pool_information = {
|
||||||
"name": pool,
|
"name": pool,
|
||||||
|
|
Loading…
Reference in New Issue