]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
config: Improve warning for unobserved value 12855/head
authorBrad Hubbard <bhubbard@redhat.com>
Thu, 5 Jan 2017 02:45:01 +0000 (12:45 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Tue, 10 Jan 2017 05:35:19 +0000 (15:35 +1000)
When a variable is not being observed we currently mark it
"unchangable". This can be misleading so try something hopefully a
little more informative.

Fixes: http://tracker.ceph.com/issues/18424
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
qa/workunits/cephtool/test.sh
src/common/config.cc

index 914705055bdf782217a6b85aad493d1048f625d0..3bd4a9fb4e7ff1ce8554ef0fd59661c285496064 100755 (executable)
@@ -201,7 +201,7 @@ function test_mon_injectargs()
                  ceph tell osd.0 injectargs -- '--osd_op_history_duration'
 
   ceph tell osd.0 injectargs -- '--mon-lease 6' >& $TMPFILE || return 1
-  check_response "mon_lease = '6' (unchangeable)"
+  check_response "mon_lease = '6' (not observed, change may require restart)"
 
   # osd-scrub-auto-repair-num-errors is an OPT_U32, so -1 is not a valid setting
   expect_false ceph tell osd.0 injectargs --osd-scrub-auto-repair-num-errors -1
index 45b00fca6881df8f9125e2e6e434a08ac1b5a1a3..34850dd2b4f7ea8799022fd94f7a648ac22b19bd 100644 (file)
@@ -696,7 +696,7 @@ void md_config_t::_apply_changes(std::ostream *oss)
        !_internal_field(key)) {
       (*oss) << key << " = '" << buf << "' ";
       if (range.first == range.second) {
-       (*oss) << "(unchangeable) ";
+       (*oss) << "(not observed, change may require restart) ";
       }
     }
     for (obs_map_t::iterator r = range.first; r != range.second; ++r) {