]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/AuthMonitor: update MDS caps even if other caps need no update
authorRishabh Dave <ridave@redhat.com>
Thu, 25 Jan 2024 08:31:37 +0000 (14:01 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 9 Sep 2024 13:50:11 +0000 (19:20 +0530)
commit560f3cdf26d021651612d4169a63f0db64dfa098
tree2fc438d27e8ef6136dc8bb26bb206a563d3fca93
parent1377b638c22213796945a003c3da0ccb177c5793
mon/AuthMonitor: update MDS caps even if other caps need no update

When entity's MDS caps are to be updated but MON and OSD caps do not
require an update, in certains cases, the update doesn't happen.

src/mon/AuthMonitor.cc receives boolean values for MON, OSD, and MDS cap
indicating whether or not each of them requires an update. However,
instead of updating entity's keyring when anyone of these caps require
an update, AuthMontitor updates only when the last one of these needs an
update. Thus, if MDS cap needs an update but it is not last one to be
considered (among MON, OSD and MDS caps), update doesn't happen.

Fixes: https://tracker.ceph.com/issues/64182
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 1e90cbfb39868f3df7f564e540f15f08147cb85b)
qa/tasks/cephfs/test_admin.py
src/mon/AuthMonitor.cc