Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

octopus: test: osd-backfill-stats.sh use nobackfill to avoid races in remainin… #36030

Merged
merged 1 commit into from Jul 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 12 additions & 4 deletions qa/standalone/osd/osd-backfill-stats.sh
Expand Up @@ -152,8 +152,10 @@ function TEST_backfill_sizeup() {
rados -p $poolname put obj$i /dev/null
done

ceph osd set nobackfill
ceph osd pool set $poolname size 3
sleep 15
sleep 2
ceph osd unset nobackfill

wait_for_clean || return 1

Expand Down Expand Up @@ -202,9 +204,11 @@ function TEST_backfill_sizeup_out() {
# Remember primary during the backfill
local primary=$(get_primary $poolname obj1)

ceph osd set nobackfill
ceph osd out osd.$primary
ceph osd pool set $poolname size 3
sleep 15
sleep 2
ceph osd unset nobackfill

wait_for_clean || return 1

Expand Down Expand Up @@ -249,8 +253,10 @@ function TEST_backfill_out() {
# Remember primary during the backfill
local primary=$(get_primary $poolname obj1)

ceph osd set nobackfill
ceph osd out osd.$(get_not_primary $poolname obj1)
sleep 15
sleep 2
ceph osd unset nobackfill

wait_for_clean || return 1

Expand Down Expand Up @@ -296,10 +302,12 @@ function TEST_backfill_down_out() {
local primary=$(get_primary $poolname obj1)
local otherosd=$(get_not_primary $poolname obj1)

ceph osd set nobackfill
kill $(cat $dir/osd.${otherosd}.pid)
ceph osd down osd.${otherosd}
ceph osd out osd.${otherosd}
sleep 15
sleep 2
ceph osd unset nobackfill

wait_for_clean || return 1

Expand Down