From b1766aad874cb69d76ee57057a435042ea0908a4 Mon Sep 17 00:00:00 2001 From: Harley Gorrell Date: Fri, 31 Jul 2020 17:21:47 -0600 Subject: [PATCH] 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) --- src/pybind/mgr/mgr_module.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 4788876f2539..6f3e79918772 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -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): -- 2.47.3