]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: handle infinite values for pools 61097/head
authorAfreen <afreen23.git@gmail.com>
Wed, 6 Mar 2024 20:22:16 +0000 (01:52 +0530)
committerAfreen Misbah <afreen@ibm.com>
Mon, 16 Dec 2024 10:58:28 +0000 (16:28 +0530)
commit51421d85b89e9611a627b267d13864d32454bcef
tree6169bea2095c35a0a351eb5ea7fe50e4e0e6a282
parenta1b54e03f5fc2ff00aee793b5fcc21e1125cc1be
mgr/dashboard: handle infinite values for pools

Fixes https://tracker.ceph.com/issues/64724

Issue:
======
Json parsing is failing because of Infinity values present in pools
meteadata. "read_balance": {"score_acting": Infinity, "score_stable":
Infinity,}
Due to this entire pool list is not rendered.

Fix:
====
Added a handler for checking "inf" values and replacing them with a
string "Infinity" so that json parsing does not fail on frontend.

Signed-off-by: Afreen <afreen23.git@gmail.com>
(cherry picked from commit 82d100ad264c35d79262c1983a8005d8d4791855)
src/pybind/mgr/dashboard/controllers/pool.py