From beeb431059d7b9492ff96ad65b7cbdb928f141c1 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Fri, 30 Sep 2022 19:10:04 +0000 Subject: [PATCH] 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) --- src/mds/MDSDaemon.cc | 3 ++- src/osd/OSD.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mds/MDSDaemon.cc b/src/mds/MDSDaemon.cc index d8801ef2ad09d..e45cb142b7aea 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 511d8e3da91eb..aed5057b45597 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); } } -- 2.39.5