Skip to content

Commit

Permalink
osd: mds: suggest clock skew when failing to obtain rotating service …
Browse files Browse the repository at this point in the history
…keys

Fixes: https://tracker.ceph.com/issues/17170

Signed-off-by: Greg Farnum <[email protected]>
  • Loading branch information
gregsfortytwo committed Sep 30, 2022
1 parent fc01eeb commit 05fd050
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/mds/MDSDaemon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,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;
Expand Down
3 changes: 2 additions & 1 deletion src/osd/OSD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3824,7 +3824,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);
}
}
Expand Down

0 comments on commit 05fd050

Please sign in to comment.