From: Greg Farnum Date: Fri, 30 Sep 2022 19:10:04 +0000 (+0000) Subject: osd: mds: suggest clock skew when failing to obtain rotating service keys X-Git-Tag: v17.2.6~19^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F50405%2Fhead;p=ceph.git osd: mds: suggest clock skew when failing to obtain rotating service keys Fixes: https://tracker.ceph.com/issues/17170 Signed-off-by: Greg Farnum (cherry picked from commit 05fd05020b2b15c674af8891f6e8f10c381e6832) --- diff --git a/src/mds/MDSDaemon.cc b/src/mds/MDSDaemon.cc index d8801ef2ad09..e45cb142b7ae 100644 --- a/src/mds/MDSDaemon.cc +++ b/src/mds/MDSDaemon.cc @@ -547,7 +547,8 @@ int MDSDaemon::init() continue; } derr << "ERROR: failed to refresh rotating keys, " - << "maximum retry time reached." << dendl; + << "maximum retry time reached." + << " Maybe I have a clock skew against the monitors?" << dendl; std::lock_guard locker{mds_lock}; suicide(); return -CEPHFS_ETIMEDOUT; diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 511d8e3da91e..aed5057b4559 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -3829,7 +3829,8 @@ int OSD::init() derr << "unable to obtain rotating service keys; retrying" << dendl; ++rotating_auth_attempts; if (rotating_auth_attempts > g_conf()->max_rotating_auth_attempts) { - derr << __func__ << " wait_auth_rotating timed out" << dendl; + derr << __func__ << " wait_auth_rotating timed out" + <<" -- maybe I have a clock skew against the monitors?" << dendl; exit(1); } }