mirror of
https://github.com/ceph/ceph
synced 2024-12-22 03:22:00 +00:00
69fa515c95
Change run_osd() to default objectstore bluestore Use run_osd_filestore() to use the non-default objectstore Fix inject_eio to handle any objectstore if config prefixed with type Remaining tests using filestore: osd-pool-create.sh TEST_pool_create_rep_expected_num_objects Test filestore directory creation qa/standalone/osd/osd-dup.sh TEST_filestore_to_bluestore Obvious qa/standalone/osd/osd-rep-recov-eio.sh TEST_rep_read_unfound Requires data digest in object info qa/standalone/scrub/osd-scrub-repair.sh multiple tests Erasure code pools append mode for filestore is tested qa/standalone/special/ceph_objectstore_tool.py Test code verifies COT by directly examining filestore contents Fixes: https://tracker.ceph.com/issues/39162 Signed-off-by: David Zafman <dzafman@redhat.com>
58 lines
1.4 KiB
Bash
Executable File
58 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
|
|
|
|
base_test=$CEPH_ROOT/qa/workunits/mon/test_mon_osdmap_prune.sh
|
|
|
|
function run() {
|
|
|
|
local dir=$1
|
|
shift
|
|
|
|
export CEPH_MON="127.0.0.1:7115"
|
|
export CEPH_ARGS
|
|
CEPH_ARGS+="--fsid=$(uuidgen) --auth-supported=none --mon-host=$CEPH_MON "
|
|
|
|
local funcs=${@:-$(set | sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p')}
|
|
for func in $funcs; do
|
|
setup $dir || return 1
|
|
$func $dir || return 1
|
|
teardown $dir || return 1
|
|
done
|
|
}
|
|
|
|
function TEST_osdmap_prune() {
|
|
|
|
local dir=$1
|
|
|
|
run_mon $dir a || return 1
|
|
run_mgr $dir x || return 1
|
|
run_osd $dir 0 || return 1
|
|
run_osd $dir 1 || return 1
|
|
run_osd $dir 2 || return 1
|
|
|
|
sleep 5
|
|
|
|
# we are getting OSD_OUT_OF_ORDER_FULL health errors, and it's not clear
|
|
# why. so, to make the health checks happy, mask those errors.
|
|
ceph osd set-full-ratio 0.97
|
|
ceph osd set-backfillfull-ratio 0.97
|
|
|
|
ceph config set osd osd_beacon_report_interval 10 || return 1
|
|
ceph config set mon mon_debug_extra_checks true || return 1
|
|
|
|
ceph config set mon mon_min_osdmap_epochs 100 || return 1
|
|
ceph config set mon mon_osdmap_full_prune_enabled true || return 1
|
|
ceph config set mon mon_osdmap_full_prune_min 200 || return 1
|
|
ceph config set mon mon_osdmap_full_prune_interval 10 || return 1
|
|
ceph config set mon mon_osdmap_full_prune_txsize 100 || return 1
|
|
|
|
|
|
bash -x $base_test || return 1
|
|
|
|
return 0
|
|
}
|
|
|
|
main mon-osdmap-prune "$@"
|
|
|