mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
4d8b0c29bf
Problem: --mon-initial-members does nothing but causes monmap to populate ``removed_ranks`` because the way we start monitors in standalone tests uses ``run_mon $dir $id ..`` on each mon. Regardless of --mon-initial-members=a,b,c, if we set --mon-host=$MONA,$MONB,$MONC (which we do every single tests), everytime we run a monitor (e.g.,run mon.b) it will pre-build our monmap with ``` noname-a=mon.noname-a addrs v2:127.0.0.1:7127/0, b=mon.b addrs v2:127.0.0.1:7128/0, noname-c=mon.noname-c addrs v2:127.0.0.1:7129/0, ``` Now, with --mon-initial-members=a,b,c we are letting monmap know that we should have initial members name: a,b,c, which we only have `b` as a match. So what ``MonMap::set_initial_members`` do is that it will remove noname-a and noname-c which will populate `removed_ranks`. Solution: remove all instances of --mon-initial-members in the standalone test as it has no impact on the nature of the tests themselves. Fixes: https://tracker.ceph.com/issues/58132 Signed-off-by: Kamoltat <ksirivad@redhat.com> |
||
---|---|---|
.. | ||
c2c | ||
crush | ||
erasure-code | ||
mgr | ||
misc | ||
mon | ||
osd | ||
osd-backfill | ||
scrub | ||
special | ||
ceph-helpers.sh | ||
README |
qa/standalone ============= These scripts run standalone clusters, but not in a normal way. They make use of functions ceph-helpers.sh to quickly start/stop daemons against toy clusters in a single directory. They are normally run via teuthology based on qa/suites/rados/standalone/*.yaml. You can run them in a git checkout + build directory as well: * The qa/run-standalone.sh will run all of them in sequence. This is slow since there is no parallelism. * You can run individual script(s) by specifying the basename or path below qa/standalone as arguments to qa/run-standalone.sh. ../qa/run-standalone.sh misc.sh osd/osd-dup.sh * Add support for specifying arguments to selected tests by simply adding list of tests to each argument. ../qa/run-standalone.sh "test-ceph-helpers.sh test_get_last_scrub_stamp"