]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/standalone/scrub: add build_pg_dicts()
authorRonen Friedman <rfriedma@redhat.com>
Sun, 29 Dec 2024 11:26:28 +0000 (05:26 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 31 Dec 2024 06:09:12 +0000 (00:09 -0600)
commit65be7d6505591a53790081c31a5bbb16e71855c1
treef41063f84d4b0e61d334bde727a693b04e54c859
parentd3194eaf2572a41b0dfa064e5b984137eb5209fb
qa/standalone/scrub: add build_pg_dicts()

a helper function that builds bash dictionaries:
pg to acting set, pg to primary & pg to pool.

Also added are two helper functions that make use of the dictionaries:

count_common_active() to count the number of common OSDs
in the acting set of two PGs, and find_disjoint_but_primary()
to find a PG that is disjoint from the first PG, apart from
possibly having the same primary OSD.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
qa/standalone/scrub/scrub-helpers.sh