]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: propagate base pool application_metadata to tiers
authorSage Weil <sage@newdream.net>
Sat, 13 Mar 2021 16:34:43 +0000 (11:34 -0500)
committerSage Weil <sage@newdream.net>
Sat, 13 Mar 2021 16:51:19 +0000 (11:51 -0500)
commit8bcb281a7d91e6daa842aed4ffb416d764dc6bf1
tree061a45178ae1f38dd6760a262de58b5175e84611
parent4018d3f8d0da80bfb8ee16d4463aff6774b79826
osd: propagate base pool application_metadata to tiers

If there is application metadata on the base pool, it should be mirrored
to any other tiers in the set.  This aligns with the fact that the
'ceph osd pool application ...' commands refuse to operate on a non-base
pool.

This fixes problems with accessing tiers (e.g., cache tiers) when the
cephx cap is written in terms of application metadata.

Fixes: https://tracker.ceph.com/issues/49788
Signed-off-by: Sage Weil <sage@newdream.net>
qa/workunits/cephtool/test.sh
src/mon/OSDMonitor.cc
src/osd/OSDMap.cc
src/osd/OSDMap.h