]> 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>
Fri, 16 Feb 2024 10:53:08 +0000 (16:23 +0530)
commit1e90cbfb39868f3df7f564e540f15f08147cb85b
tree7b245a289d32dc4ebaf00e0bf83137b8a67d95ed
parent7626bd5d37b6f24fe60840c225ef917356f8dfc4
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>
qa/tasks/cephfs/test_admin.py
src/mon/AuthMonitor.cc