]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/config: less noise about configs from mon we can't apply 36289/head
authorSage Weil <sage@redhat.com>
Tue, 3 Dec 2019 23:54:44 +0000 (17:54 -0600)
committerJason Dillaman <dillaman@redhat.com>
Fri, 24 Jul 2020 18:05:51 +0000 (14:05 -0400)
It is normal to set things in teh mon config database that can't be absorbed
by clients/daemons at runtime.  Things like ms_type can/should be set there
(so that they, for instance, help produce the 'config minimal-conf') but
we don't need daemons to spit out error messages every time they get a config
update.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit c7e3dd0af4172633de6cd93126818abd8fde91ab)

src/common/config.cc

index 8816512cd6ce3b5c059d1ff7d340c8508c1b78c3..14646cd71c3f7cbec130295d27951815bdb4f1ef 100644 (file)
@@ -295,8 +295,8 @@ int md_config_t::set_mon_vals(CephContext *cct,
     std::string err;
     int r = _set_val(values, tracker, i.second, *o, CONF_MON, &err);
     if (r < 0) {
-      lderr(cct) << __func__ << " failed to set " << i.first << " = "
-                << i.second << ": " << err << dendl;
+      ldout(cct, 4) << __func__ << " failed to set " << i.first << " = "
+                   << i.second << ": " << err << dendl;
       ignored_mon_values.emplace(i);
     } else if (r == ConfigValues::SET_NO_CHANGE ||
               r == ConfigValues::SET_NO_EFFECT) {