CEPH_ARGS+="--fsid=$(uuidgen) --auth-supported=none "
CEPH_ARGS+="--mon-host=$CEPH_MON --osd_max_backfills=1 --debug_reserver=20 "
CEPH_ARGS+="--osd_min_pg_log_entries=5 --osd_max_pg_log_entries=10 "
+ # Set osd op queue = wpq for the tests. Backfill priority is not
+ # considered by mclock_scheduler leading to unexpected results.
+ CEPH_ARGS+="--osd-op-queue=wpq "
export objects=50
export poolprefix=test
export FORCE_PRIO="254" # See OSD_BACKFILL_PRIORITY_FORCED
CEPH_ARGS+="--osd_min_pg_log_entries=5 --osd_max_pg_log_entries=10 "
CEPH_ARGS+="--fake_statfs_for_testing=3686400 "
CEPH_ARGS+="--osd_max_backfills=10 "
+ CEPH_ARGS+="--osd_mclock_profile=high_recovery_ops "
export objects=600
export poolprefix=test
done
sleep 30
- wait_for_not_backfilling 240 || return 1
+ wait_for_not_backfilling 1200 || return 1
wait_for_not_activating 60 || return 1
ERRORS=0
done
sleep 30
- wait_for_not_backfilling 240 || return 1
+ wait_for_not_backfilling 1200 || return 1
wait_for_not_activating 60 || return 1
ERRORS=0
ceph osd pool set $pool2 size 2
sleep 30
- wait_for_not_backfilling 240 || return 1
+ wait_for_not_backfilling 1200 || return 1
wait_for_not_activating 60 || return 1
ERRORS=0
ceph osd in osd.$fillosd
sleep 30
- wait_for_not_backfilling 240 || return 1
+ wait_for_not_backfilling 1200 || return 1
wait_for_not_activating 60 || return 1
flush_pg_stats || return 1
ceph pg dump pgs
- wait_for_not_backfilling 240 || return 1
+ wait_for_not_backfilling 1200 || return 1
wait_for_not_activating 60 || return 1
ceph pg dump pgs
sleep 30
- wait_for_not_backfilling 240 || return 1
+ wait_for_not_backfilling 1200 || return 1
wait_for_not_activating 60 || return 1
ceph pg dump pgs
sleep 30
ceph pg dump pgs
- wait_for_not_backfilling 240 || return 1
+ wait_for_not_backfilling 1200 || return 1
wait_for_not_activating 60 || return 1
ceph pg dump pgs
ceph osd in osd.$fillosd
sleep 30
- wait_for_not_backfilling 240 || return 1
+ wait_for_not_backfilling 1200 || return 1
wait_for_not_activating 60 || return 1
ERRORS=0
CEPH_ARGS+="--fsid=$(uuidgen) --auth-supported=none "
CEPH_ARGS+="--mon-host=$CEPH_MON "
CEPH_ARGS+="--osd_min_pg_log_entries=5 --osd_max_pg_log_entries=10 "
+ # Use "high_recovery_ops" profile if mclock_scheduler is enabled.
+ CEPH_ARGS+="--osd-mclock-profile=high_recovery_ops "
export margin=10
export objects=200
export poolname=test
break
done
ceph pg dump pgs
- for i in $(seq 1 60)
+ for i in $(seq 1 240)
do
if ceph pg dump pgs | grep ^$PG | grep -qv backfilling
then
break
fi
- if [ $i = "60" ];
+ if [ $i = "240" ];
then
echo "Timeout waiting for recovery to finish"
return 1