From: Harley Gorrell Date: Fri, 31 Jul 2020 23:21:47 +0000 (-0600) Subject: mgr: Add missing states to PG_STATES in mgr_module.py. X-Git-Tag: v14.2.12~100^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36785%2Fhead;p=ceph.git mgr: Add missing states to PG_STATES in mgr_module.py. Fixes: https://tracker.ceph.com/issues/46808 Signed-off-by: Harley Gorrell (cherry picked from commit 5cdadf17d634e1cbd8d2b0be8c9439bc20bdbd13) Conflicts: src/pybind/mgr/mgr_module.py - state "laggy" and "wait" are not relevant for nautilus --- diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 9b614d36751..ebec969eb43 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -14,6 +14,7 @@ import rados import re import time +# Full list of strings in "osd_types.cc:pg_state_string()" PG_STATES = [ "active", "clean", @@ -44,7 +45,10 @@ PG_STATES = [ "snaptrim_wait", "snaptrim_error", "creating", - "unknown"] + "unknown", + "premerge", + "failed_repair", +] class CPlusPlusHandler(logging.Handler):