mirror of
https://github.com/ceph/ceph
synced 2024-12-29 23:12:27 +00:00
osd: catch authenticate error on startup
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
5d5c9b6fc3
commit
300c758421
@ -692,7 +692,13 @@ int OSD::init()
|
||||
|
||||
osd_lock.Unlock();
|
||||
|
||||
monc->authenticate();
|
||||
r = monc->authenticate();
|
||||
if (r < 0) {
|
||||
monc->shutdown();
|
||||
store->umount();
|
||||
return r;
|
||||
}
|
||||
|
||||
monc->wait_auth_rotating(30.0);
|
||||
|
||||
osd_lock.Lock();
|
||||
|
Loading…
Reference in New Issue
Block a user