]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tasks/ceph_manager: ignore EACCES when waiting for quorum 42411/head
authorKefu Chai <kchai@redhat.com>
Thu, 10 Jun 2021 12:19:09 +0000 (20:19 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 20 Jul 2021 07:43:01 +0000 (15:43 +0800)
commite535c8f099fef5f9393888dc5ce8643dcc9dac2b
treeb69dcbf63572d12b4a254e0386f5a8b8dba904d0
parente0e7f00a30cddbf62a2983e495ea3f05cf13de27
tasks/ceph_manager: ignore EACCES when waiting for quorum

mon_tick_interval is 5 seconds by default. monitors update their
rotating keys every mon_tick_interval. before monitors forms a
quorum, the auth requests from clients are put into the wait list.
these requests are re-enqueued once the monitors form a quorum. but
there is a small window of mon_tick_interval, before they are able
to serve the auth requests even after their claim to be able to
server requests. if these re-enqueued requests happen to be served
in this window, and if authx is enabled, they will be greeted with
errors like

handle_auth_bad_method server allowed_methods [2] but i only support [2]

in the case of ceph cli, the error would look like:

[errno 13] RADOS permission denied (error connecting to the cluster)

so, to address this issue, the EACCES error is ignored when waiting
for a quorum.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 7afd38f846894f11a61f697a2522cd0c30a35dc7)
qa/tasks/ceph_manager.py