From: Sage Weil Date: Wed, 11 Sep 2019 17:52:57 +0000 (-0500) Subject: os/bluestore: simplify per-pool-stat config options X-Git-Tag: v14.2.5~17^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=810df58e91f5a96c8c4e06256bad17ee7944600f;p=ceph.git os/bluestore: simplify per-pool-stat config options The previous bluestore_no_per_pool_stats_tolerance had a lot of possible values, not all of which make sense to users. Replace with a single new option, bluestore_fsck_error_on_no_per_pool_stats, which controls whether the lack of per-pool stats is an error or a warning. On repair, we will unconditionally convert to per-pool stats. This brings us in sync with the newer bluestore_fsck_error_on_no_per_pool_omap. Note that one part of the ceph_test_objectstore test is dropped since it is no longer possible to create a store with legacy stats. Signed-off-by: Sage Weil (cherry picked from commit 7e96024254d98591a5431623fb355a20f322b554) Conflicts: PendingReleaseNotes - trivial src/os/bluestore/BlueStore.cc - lacking of int_repaired method --- diff --git a/PendingReleaseNotes b/PendingReleaseNotes index 327df79a18b4..24eb68920d6e 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -17,6 +17,12 @@ multiply your current "objecter_inflight_ops" and "objecter_inflight_op_bytes" paramaeters by the old "num_rados_handles" to get the same throttle behavior. + +* The ``bluestore_no_per_pool_stats_tolerance`` config option has been + replaced with ``bluestore_fsck_error_on_no_per_pool_stats`` + (default: false). The overall default behavior has not changed: + fsck will warn but not fail on legacy stores, and repair will + convert to per-pool stats. 14.2.2 ------ diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 7e9799567c63..b13dbcb7df6c 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1080,7 +1080,7 @@ OPTION(bluestore_debug_permit_any_bdev_label, OPT_BOOL) OPTION(bluestore_debug_random_read_err, OPT_DOUBLE) OPTION(bluestore_debug_inject_bug21040, OPT_BOOL) OPTION(bluestore_debug_inject_csum_err_probability, OPT_FLOAT) -OPTION(bluestore_no_per_pool_stats_tolerance, OPT_STR) +OPTION(bluestore_fsck_error_on_no_per_pool_stats, OPT_BOOL) OPTION(bluestore_warn_on_bluefs_spillover, OPT_BOOL) OPTION(bluestore_warn_on_legacy_statfs, OPT_BOOL) OPTION(bluestore_log_op_age, OPT_DOUBLE) diff --git a/src/common/options.cc b/src/common/options.cc index ce055b72b603..07c6e57f7bd4 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4894,15 +4894,9 @@ std::vector