]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: add update_authorizer auth method
authorSage Weil <sage@inktank.com>
Mon, 25 Mar 2013 17:26:01 +0000 (10:26 -0700)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:17:13 +0000 (21:17 -0700)
commit89aaf0641e40e316e007f218b1f550520a4a233a
treeab35e0fdeedf883e029cedab7a0ecbce71376426
parentd49ef080c5ae223e11a73a8afc943d4ebba2358c
libceph: add update_authorizer auth method

Currently the messenger calls out to a get_authorizer con op, which will
create a new authorizer if it doesn't yet have one.  In the meantime, when
we rotate our service keys, the authorizer doesn't get updated.  Eventually
it will be rejected by the server on a new connection attempt and get
invalidated, and we will then rebuild a new authorizer, but this is not
ideal.

Instead, if we do have an authorizer, call a new update_authorizer op that
will verify that the current authorizer is using the latest secret.  If it
is not, we will build a new one that does.  This avoids the transient
failure.

This fixes one of the sorry sequence of events for bug

http://tracker.ceph.com/issues/4282

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
fs/ceph/mds_client.c
include/linux/ceph/auth.h
net/ceph/auth_x.c
net/ceph/auth_x.h
net/ceph/osd_client.c