]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: propagate base pool application_metadata to tiers 40274/head
authorSage Weil <sage@newdream.net>
Sat, 13 Mar 2021 16:34:43 +0000 (11:34 -0500)
committersinguliere <singuliere@autistici.org>
Sat, 20 Mar 2021 07:45:54 +0000 (08:45 +0100)
commit071528e43b756a15cd28377abaf9d20c3473aa7a
tree67f7989368c9363f11d1734ab5bad87052e680cd
parent23bf957ebb921ee424760735adbe8a6f796fd5e0
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>
(cherry picked from commit 8bcb281a7d91e6daa842aed4ffb416d764dc6bf1)
qa/workunits/cephtool/test.sh
src/mon/OSDMonitor.cc
src/osd/OSDMap.cc
src/osd/OSDMap.h