]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
config: complains when a setting is not tracked 7085/head
authorKefu Chai <kchai@redhat.com>
Thu, 24 Dec 2015 06:17:41 +0000 (14:17 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 30 Dec 2015 16:35:58 +0000 (00:35 +0800)
commit6a59aae076bf6b55edde155e0f48ff135469ce7f
treeb26374f96bf831e61de3afd9638d5915a5f59841
parent4dd0d1bd01cfca32158c396d01f9df8fd8872a80
config: complains when a setting is not tracked

* not all config items are tracked, so it does not take any effect after
  we sucessfully changed them using "ceph tell <daemon> injectargs  --foo-bar 15',
  as shown by the command output:
    $daemon: foo_bar = '15'
  if foo-bar happens to be the one not tracked by any components in <daemon>.
  in this fix, the message of
    $daemon: foo_bar = '15' (unchangeable)
  is returned instead. nevertheless, the config is still updated. as
  "ceph daemon <daemon> config show | grep foo_bar" shows:
    "foo_bar": "15"
  this helps user to understand that the setting is not dynamically
  changeable.
* update the test accordingly

Fixes: #11692
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/workunits/cephtool/test.sh
src/common/config.cc