From: Kefu Chai Date: Thu, 10 Dec 2020 08:27:56 +0000 (+0800) Subject: mon/HealthMonitor: use timespan for mon_warn_older_version_delay X-Git-Tag: v16.1.0~203^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4bcfa139ab611cbb298243d4876f3a22a9580100;p=ceph.git mon/HealthMonitor: use timespan for mon_warn_older_version_delay for better user experience Signed-off-by: Kefu Chai --- diff --git a/qa/standalone/misc/ver-health.sh b/qa/standalone/misc/ver-health.sh index 3c480b2b1053..99b2a0834e5c 100755 --- a/qa/standalone/misc/ver-health.sh +++ b/qa/standalone/misc/ver-health.sh @@ -73,8 +73,8 @@ function TEST_check_version_health_1() { setup $dir || return 1 # create a cluster with two monitors and three osds - run_mon $dir a --public-addr=$CEPH_MON_A --mon_warn_older_version_delay=0.0 || return 1 - run_mon $dir b --public-addr=$CEPH_MON_B --mon_warn_older_version_delay=0.0 || return 1 + run_mon $dir a --public-addr=$CEPH_MON_A --mon_warn_older_version_delay=0 || return 1 + run_mon $dir b --public-addr=$CEPH_MON_B --mon_warn_older_version_delay=0 || return 1 run_osd $dir 0 || return 1 run_osd $dir 1 || return 1 run_osd $dir 2 || return 1 @@ -119,8 +119,8 @@ function TEST_check_version_health_2() { setup $dir || return 1 # create a cluster with all daemon types - run_mon $dir a --public-addr=$CEPH_MON_A --mon_warn_older_version_delay=0.0 || return 1 - run_mon $dir b --public-addr=$CEPH_MON_B --mon_warn_older_version_delay=0.0 || return 1 + run_mon $dir a --public-addr=$CEPH_MON_A --mon_warn_older_version_delay=0 || return 1 + run_mon $dir b --public-addr=$CEPH_MON_B --mon_warn_older_version_delay=0 || return 1 run_osd $dir 0 || return 1 run_osd $dir 1 || return 1 run_osd $dir 2 || return 1 @@ -135,7 +135,7 @@ function TEST_check_version_health_2() { ceph health detail | grep DAEMON_OLD_VERSION && return 1 kill_daemons $dir KILL mon.b - ceph_debug_version_for_testing=01.00.00-gversion-test run_mon $dir b --mon_warn_older_version_delay=0.0 + ceph_debug_version_for_testing=01.00.00-gversion-test run_mon $dir b --mon_warn_older_version_delay=0 # XXX: Manager doesn't seem to use the test specific config for version #kill_daemons $dir KILL mgr.x #ceph_debug_version_for_testing=02.00.00-gversion-test run_mgr $dir x diff --git a/src/common/options.cc b/src/common/options.cc index c029bc20358c..2593366bbeb0 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -2247,7 +2247,7 @@ std::vector