• Sage Weil's avatar
    ceph: fix authenticator timeout · 63733a0f
    Sage Weil authored
    We were failing to reconnect to services due to an old authenticator, even
    though we had the new ticket, because we weren't properly retrying the
    connect handshake, because we were calling an old/incorrect helper that
    left in_base_pos incorrect.  The result was a failure to reconnect to the
    OSD or MDS (with an authentication error) if the MDS restarted after the
    service had been up a few hours (long enough for the original authenticator
    to be invalid).  This was only a problem if the AUTH_X authentication was
    enabled.
    
    Now that the 'negotiate' and 'connect' stages are fully separated, we
    should use the prepare_read_connect() helper instead, and remove the
    obsolete one.
    Signed-off-by: default avatarSage Weil <sage@newdream.net>
    63733a0f
messenger.c 56 KB