From 3760e8f918e4bd2654ef268cc2e5e4a67b8a9b28 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 22 Mar 2019 17:33:39 -0500 Subject: [PATCH] mon/OSDMonitor: add mon_debug_no_require_octopus Signed-off-by: Sage Weil --- qa/standalone/mon/msgr-v2-transition.sh | 4 ++-- qa/workunits/cephtool/test.sh | 8 +++++--- src/common/options.cc | 6 ++++++ src/mon/OSDMonitor.cc | 20 +++++++++++++------- 4 files changed, 26 insertions(+), 12 deletions(-) diff --git a/qa/standalone/mon/msgr-v2-transition.sh b/qa/standalone/mon/msgr-v2-transition.sh index b489d43192e..82a05b5a6a7 100755 --- a/qa/standalone/mon/msgr-v2-transition.sh +++ b/qa/standalone/mon/msgr-v2-transition.sh @@ -23,7 +23,7 @@ function run() { function TEST_mon_v1_osd_addrs() { local dir=$1 - export CEPH_ARGS="$CEPH_ARGS --mon-host=$CEPH_MON_V1 --mon-debug-no-require-nautilus" + export CEPH_ARGS="$CEPH_ARGS --mon-host=$CEPH_MON_V1 --mon-debug-no-require-octopus --mon-debug-no-require-nautilus" run_mon $dir a || return 1 ceph mon dump | grep mon.a | grep $CEPH_MON_V1 @@ -58,7 +58,7 @@ function TEST_mon_v1_osd_addrs() { function TEST_mon_v2v1_osd_addrs() { local dir=$1 - export CEPH_ARGS="$CEPH_ARGS --mon-host=[$CEPH_MON_V2,$CEPH_MON_V1] --mon-debug-no-require-nautilus" + export CEPH_ARGS="$CEPH_ARGS --mon-host=[$CEPH_MON_V2,$CEPH_MON_V1] --mon-debug-no-require-octopus --mon-debug-no-require-nautilus" run_mon $dir a || return 1 ceph mon dump | grep mon.a | grep $CEPH_MON_V1 diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 548cc7572ee..e9610526d99 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1488,9 +1488,11 @@ function test_mon_osd() expect_false ceph osd set $f expect_false ceph osd unset $f done - ceph osd require-osd-release nautilus - # can't lower (or use new command for anything but jewel) - expect_false ceph osd require-osd-release jewel + ceph osd require-osd-release octopus + # can't lower + expect_false ceph osd require-osd-release nautilus + expect_false ceph osd require-osd-release mimic + expect_false ceph osd require-osd-release luminous # these are no-ops but should succeed. ceph osd set noup diff --git a/src/common/options.cc b/src/common/options.cc index 8a35540db45..984d5dca7a0 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1862,6 +1862,12 @@ std::vector