]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: handle infinite values for pools 61096/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:57:34 +0000 (16:27 +0530)
commit600fb3f8dea05fcef747c536681bfc293205246f
treee5788fe56a2fea441fa51c76a94f96256fab9e40
parente5643f391068b5890d072c604c6be788938f7b94
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