]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Add missing states to PG_STATES in mgr_module.py. 36399/head
authorHarley Gorrell <harley@panix.com>
Fri, 31 Jul 2020 23:21:47 +0000 (17:21 -0600)
committerHarley Gorrell <harley@panix.com>
Sun, 2 Aug 2020 17:37:01 +0000 (11:37 -0600)
Fixes: https://tracker.ceph.com/issues/46808
Signed-off-by: Harley Gorrell <harley@panix.com>
src/pybind/mgr/mgr_module.py

index df1100c0ec5bf252095a6dbf34b5fcb5c77403fb..ea9e073b9370a4b2d43be3ab9a53a7887275b9e0 100644 (file)
@@ -15,6 +15,7 @@ import re
 import time
 from mgr_util import profile_method
 
+# Full list of strings in "osd_types.cc:pg_state_string()"
 PG_STATES = [
     "active",
     "clean",
@@ -45,7 +46,12 @@ PG_STATES = [
     "snaptrim_wait",
     "snaptrim_error",
     "creating",
-    "unknown"]
+    "unknown",
+    "premerge",
+    "failed_repair",
+    "laggy",
+    "wait",
+]
 
 
 class CommandResult(object):