It's also possible that _refresh_config can be called multiple times before the
keyring config has been set (by an arg/env for instance). This would pollute
the log with erroneous error warnings.
MonClient::authenticate already warns about this.
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit
b2f3b7bc84509ba1a0cf832a5f410f9cb44cb4e2)
}
}
}
- if (_no_keyring_disabled_cephx) {
- lderr(cct) << "no keyring found at " << cct->_conf->keyring
- << ", disabling cephx" << dendl;
- }
}
}
lderr(cct) << "failed to load " << filename
<< ": " << cpp_strerror(ret) << dendl;
} else if (conf->key.empty() && conf->keyfile.empty()) {
- lderr(cct) << "unable to find a keyring on " << conf->keyring
- << ": " << cpp_strerror(ret) << dendl;
+ /* this can happen during startup when configs are still being set */
+ ldout(cct, 1) << "unable to find a keyring on " << conf->keyring << ": " << cpp_strerror(ret) << dendl;
}
if (!conf->key.empty()) {