]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
auth/cephx: tolerate missing rotating keys
authorSage Weil <sage@redhat.com>
Wed, 5 Oct 2016 15:09:19 +0000 (11:09 -0400)
committerSage Weil <sage@redhat.com>
Fri, 14 Oct 2016 18:41:44 +0000 (14:41 -0400)
commit392fa14c0639e70557b3b1a98da05b8b36255899
tree92b23483a1fc6add89edb8b5d172048c1bf373a7
parentcfcfe9633d4d9e435ab412c5928ce40ae095ad0d
auth/cephx: tolerate missing rotating keys

During an upgrade, we may have a client requesting an
MGR service key but not have one in the database yet,
either because we *just* upgraded and haven't generated
one yet, or because the leader mon hasn't been upgraded
yet.

Fix this by silently tolerating a missing key as long as
one or more other service keys were present and we have
something to give to the client.

Signed-off-by: Sage Weil <sage@redhat.com>
src/auth/cephx/CephxServiceHandler.cc