authenticate_cond.SignalAll();
}
- if (g_keyring.need_rotating_secrets())
- _start_auth_rotating();
+ _check_auth_rotating();
auth_cond.SignalAll();
}
{
dout(10) << "tick" << dendl;
- if (g_keyring.need_rotating_secrets()) {
- dout(0) << "MonClient::tick: need rotating secret" << dendl;
- _start_auth_rotating();
- }
-
+ _check_auth_rotating();
+
if (hunting) {
dout(0) << "continuing hunt" << dendl;
_reopen_session();
return ret;
}
-int MonClient::_start_auth_rotating()
+int MonClient::_check_auth_rotating()
{
+ if (!g_keyring.need_rotating_secrets())
+ return 0;
+
if (!auth_principal_needs_rotating_keys(entity_name)) {
- dout(0) << "_start_auth_rotating not needed by " << entity_name << dendl;
+ dout(20) << "_check_auth_rotating not needed by " << entity_name << dendl;
return 0;
}
public:
void set_entity_name(EntityName name) { entity_name = name; }
- int _start_auth_rotating();
+ int _check_auth_rotating();
int wait_auth_rotating(double timeout);
int mount(double mount_timeout);