]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Add missing states to PG_STATES in mgr_module.py. 36786/head
authorHarley Gorrell <harley@panix.com>
Fri, 31 Jul 2020 23:21:47 +0000 (17:21 -0600)
committerLaura Paduano <lpaduano@suse.com>
Tue, 25 Aug 2020 08:11:49 +0000 (10:11 +0200)
Fixes: https://tracker.ceph.com/issues/46808
Signed-off-by: Harley Gorrell <harley@panix.com>
(cherry picked from commit 5cdadf17d634e1cbd8d2b0be8c9439bc20bdbd13)

src/pybind/mgr/mgr_module.py

index 4788876f2539a9f296f854d672b05e477e7a1e6a..6f3e799187724b3dd81c362baf80359bfa02e5f3 100644 (file)
@@ -16,6 +16,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",
@@ -46,7 +47,12 @@ PG_STATES = [
     "snaptrim_wait",
     "snaptrim_error",
     "creating",
-    "unknown"]
+    "unknown",
+    "premerge",
+    "failed_repair",
+    "laggy",
+    "wait",
+]
 
 
 class CommandResult(object):