Project

General

Profile

Actions

Bug #70949

closed
BS MA

repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back: return 1

Bug #70949: repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back: return 1

Added by Bill Scales over 1 year ago. Updated 9 days ago.

Status:
Backporting
Priority:
Normal
Assignee:
Category:
qa
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle, squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rados
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v20.3.0-4368-g13f95de96c
Released In:
v21.2.0~1619
Upkeep Timestamp:
2026-11-04T01:07:37+00:00

Description

2025-04-15T11:41:25.155 INFO:tasks.workunit.client.0.gibba023.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back:  grep 2
2025-04-15T11:41:25.311 INFO:tasks.workunit.client.0.gibba023.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back:  return 1
2025-04-15T11:41:25.311 INFO:tasks.workunit.client.0.gibba023.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:41: run:  return 1

/a/lflores-2025-04-14_14:00:23-rados-wip-lflores-testing-2-2025-04-11-1133-distro-default-smithi/8239406
/a/lflores-2025-04-15_00:57:49-rados-wip-lflores-testing-5-2025-04-14-1635-distro-default-gibba/8241256
/a/lflores-2025-04-11_15:58:32-rados-wip-lflores-testing-2025-04-10-2245-distro-default-smithi/8235691

Test is expecting to find OSD 2 in the acting set for pg 1.0

qa/standalone/osd/repeer-on-acting-back.sh

    # osd.2 should have been moved out from acting set
    ceph pg $pgid query | jq '.acting' | grep 2 && return 1

    # bring up osd.2
    activate_osd $dir 2 || return 1
    wait_for_osd up 2

    # again, wait for peering to complete
    sleep 2

    # primary should be able to re-add osd.2 into acting
    ceph pg $pgid query | jq '.acting' | grep 2 || return 1        <<< FAILS HERE


Related issues 3 (2 open — 1 closed)

Has duplicate RADOS - Bug #71071: rados/standalone: osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_backDuplicate

Actions
Copied to Ceph - Backport #74028: tentacle: repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back: return 1NewMOHIT AGRAWAL

Actions
Copied to Ceph - Backport #80048: squid: repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back: return 1NewMOHIT AGRAWAL

Actions

BS Updated by Bill Scales over 1 year ago Actions #1

/a/lflores-2025-04-14_14:00:23-rados-wip-lflores-testing-2-2025-04-11-1133-distro-default-smithi/8239406

From teuthology.log:

Find the timestamp for the steps of the test:

Waiting for peering to complete - sleep 2

2025-04-14T16:24:22.225 INFO:tasks.workunit.client.0.smithi084.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:108: TEST_repeer_on_down_acting_member_coming_back:  sleep 2

Expects to find osd 2 in acting set, but it isn't

2025-04-14T16:24:24.226 INFO:tasks.workunit.client.0.smithi084.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back:  ceph pg 1.0 query
2025-04-14T16:24:24.226 INFO:tasks.workunit.client.0.smithi084.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back:  jq .acting
2025-04-14T16:24:24.226 INFO:tasks.workunit.client.0.smithi084.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back:  grep 2
2025-04-14T16:24:24.367 INFO:tasks.workunit.client.0.smithi084.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back:  return 1

From osd.1.log (primary for pg 1.0):

Can see osd 2 was in acting set here as recover completes

2025-04-14T16:24:23.235+0000 7fe23c194640 10 osd.1 pg_epoch: 54 pg[1.0( v 43'100 (43'84,43'100] local-lis/les=53/54 n=100 ec=32/32 lis/c=53/53 les/c/f=54/54/0 sis=53) [1,4,5]/[1,3,2] r=0 lpr=53 crt=43'100 lcod 43'99 mlcod 0'0 active+clean+remapped] finish_recovery

There is no acting set now as there is no recovery

2025-04-14T16:24:23.527+0000 7fe23b993640 15 osd.1 pg_epoch: 55 pg[1.0( v 43'100 (43'84,43'100] local-lis/les=53/54 n=100 ec=32/32 lis/c=53/53 les/c/f=54/54/0 sis=53) [1,4,5] r=0 lpr=55 crt=43'100 lcod 43'99 mlcod 0'0 active+remapped mbc={255={}}] clear_stats

It can be seen from the timestamps that recovery completes during the sleep 2

BS Updated by Bill Scales over 1 year ago Actions #2

/a/lflores-2025-04-15_00:57:49-rados-wip-lflores-testing-5-2025-04-14-1635-distro-default-gibba/8241256

From teuthology.log:

Waiting for peering to complete - sleep 2

2025-04-15T11:41:23.153 INFO:tasks.workunit.client.0.gibba023.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:108: TEST_repeer_on_down_acting_member_coming_back:  sleep 2

Expects to find osd 2 in acting set, but it isn't

2025-04-15T11:41:25.154 INFO:tasks.workunit.client.0.gibba023.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back:  ceph pg 1.0 query
2025-04-15T11:41:25.154 INFO:tasks.workunit.client.0.gibba023.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back:  jq .acting
2025-04-15T11:41:25.155 INFO:tasks.workunit.client.0.gibba023.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back:  grep 2
2025-04-15T11:41:25.311 INFO:tasks.workunit.client.0.gibba023.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back:  return 1

From osd.1.log (primary for pg 1.0)

Can see osd 2 was in acting set here as recovery completes

2025-04-15T11:41:24.971+0000 7ff83cb88640 10 osd.1 pg_epoch: 53 pg[1.0( v 43'100 (43'84,43'100] local-lis/les=52/53 n=100 ec=32/32 lis/c=52/52 les/c/f=53/53/0 sis=52) [1,4,5]/[1,3,2] r=0 lpr=52 crt=43'100 lcod 43'99 mlcod 0'0 active+clean+remapped] finish_recovery

There is no acting set now as there is no recovery

2025-04-15T11:41:25.187+0000 7ff83cb88640 15 osd.1 pg_epoch: 54 pg[1.0( v 43'100 (43'84,43'100] local-lis/les=52/53 n=100 ec=32/32 lis/c=52/52 les/c/f=53/53/0 sis=52) [1,4,5] r=0 lpr=54 crt=43'100 lcod 43'99 mlcod 0'0 active+remapped mbc={255={}}] clear_stats

This isn't so clear - recovery finished during the sleep, but the acting set didn't clear until just after the ceph pg 1.0 query is started. However we can see the query in the osd log:

This will be the ceph pg 1.0 query getting information from the OSD

2025-04-15T11:41:25.290+0000 7ff857bbe640 10 osd.1 pg_epoch: 54 pg[1.0( v 43'100 (43'84,43'100] local-lis/les=52/53 n=100 ec=32/32 lis/c=52/52 les/c/f=53/53/0 sis=54) [1,4,5] r=0 lpr=54 pi=[52,54)/1 crt=43'100 lcod 43'99 mlcod 0'0 peering mbc={}] handle_query_state
2025-04-15T11:41:25.301+0000 7ff857bbe640 10 osd.1 pg_epoch: 54 pg[1.0( v 43'100 (43'84,43'100] local-lis/les=52/53 n=100 ec=32/32 lis/c=52/52 les/c/f=53/53/0 sis=54) [1,4,5] r=0 lpr=54 pi=[52,54)/1 crt=43'100 lcod 43'99 mlcod 0'0 peering mbc={}] handle_query_state

So the query definitely happened after recovery had finished and the acting set had changed

BS Updated by Bill Scales over 1 year ago Actions #3

  • Category set to qa
  • ceph-qa-suite rados added

/a/lflores-2025-04-11_15:58:32-rados-wip-lflores-testing-2025-04-10-2245-distro-default-smithi/8235691

From teuthology.log:

Waiting for peering to complete - sleep 2

2025-04-11T18:59:18.733  INFO:tasks.workunit.client.0.smithi165.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:108: TEST_repeer_on_down_acting_member_coming_back:  sleep 2

Expects to find osd 2 in acting set, but it isn't

2025-04-11T18:59:20.735  INFO:tasks.workunit.client.0.smithi165.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back:  ceph pg 1.0 query

From osd.1.log (primary for pg 1.0):

Can see osd 2 was in acting set here as recovery completes

2025-04-11T18:59:19.860+0000 7f096e69a640 10 osd.1 pg_epoch: 51 pg[1.0( v 42'100 (42'84,42'100] local-lis/les=50/51 n=100 ec=31/31 lis/c=50/50 les/c/f=51/51/0 sis=50) [1,4,5]/[1,3,2] r=0 lpr=50 crt=42'100 lcod 42'99 mlcod 0'0 active+clean+remapped] finish_recovery

There is no acting set now as there is no recovery

2025-04-11T18:59:20.049+0000 7f096de99640 15 osd.1 pg_epoch: 52 pg[1.0( v 42'100 (42'84,42'100] local-lis/les=50/51 n=100 ec=31/31 lis/c=50/50 les/c/f=51/51/0 sis=50) [1,4,5] r=0 lpr=52 crt=42'100 lcod 42'99 mlcod 0'0 active+remapped mbc={255={}}] clear_stats

This looks like a test case issue - the test has added osd 2 back and is expecting to find it in the acting set. Unfortunately the ceph cluster is too fast - it was in the acting set a fraction of a second before it queried the state of the pg, but then backfill recovery completed and there was no acting set at the time of the query.

As its a race condition the test will sometimes pass, the timing above suggest that the test is very borderline as to whether it passes/fails

LF Updated by Laura Flores over 1 year ago Actions #4

/a/lflores-2025-04-14_22:14:25-rados-wip-lflores-testing-4-2025-04-14-1457-distro-default-gibba/8240814

LF Updated by Laura Flores over 1 year ago Actions #5

/a/lflores-2025-04-15_00:57:49-rados-wip-lflores-testing-5-2025-04-14-1635-distro-default-gibba/8241256

KS Updated by Kamoltat (Junior) Sirivadhna over 1 year ago Actions #6

suite watcher: this one needs assignment

SA Updated by Shraddha Agrawal over 1 year ago Actions #7

/a/yuriw-2025-04-22_22:07:13-rados-wip-yuri5-testing-2025-04-22-1252-distro-default-smithi/8254037

LF Updated by Laura Flores over 1 year ago Actions #8

  • Has duplicate Bug #71071: rados/standalone: osd/repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back added

RZ Updated by Radoslaw Zarzynski over 1 year ago Actions #9

A timing issue in a test doing "sleep-driven synchronization". We need to fix the test itself.

MA Updated by MOHIT AGRAWAL over 1 year ago Actions #10

  • Assignee set to MOHIT AGRAWAL

MA Updated by MOHIT AGRAWAL over 1 year ago Actions #11

  • Status changed from New to Need More Info

The current script is difficult to fix with the original intent of the developer. The initial script was posted in 2020 and it seems after that there were many changes to improve backfill/peering process. It seems the script is assuming backfill/peering would not finish within 2s, if it is true it works fine but if it is finished it fails. During Jenkins job we do run the script in a container environment so most of the steps are ok except the last one "# primary should be able to re-add osd.2 into acting".

Here new_acting set is changed during sleep 2 just before validate previous OSD in pg query so it is not visible and the command is failed. I try to execute similar script in folio02.front.sepia.ceph.com and the script is failing after reset pg-upmap to [1, 4, 5] because acting-set was changed before validate the previous osd(OSD.2) in the pg query. I think putting delay is not a right way to validate the acting set. The speed of
backfill/peering depends on the environment and data so we can;t assume a fixed delay that would work everywhere.

I am not sure what is the best way to fix it.
Either fix only the command that is throwing an error (remove last sleep)
or
Ignore the return 1 in case of validate acting set
or
Increase the dataset so that backfill will take long time to ensure all commands would be ok.

AM Updated by Aishwarya Mathuria over 1 year ago Actions #12

/a/yuriw-2025-05-12_19:14:14-rados-wip-yuri10-testing-2025-05-12-0753-distro-default-smithi/8281590

NN Updated by Naveen Naidu over 1 year ago Actions #13

/a/yuriw-2025-05-06_17:52:35-rados-wip-yuri2-testing-2025-05-06-0729-tentacle-distro-default-smithi/8273310

LF Updated by Laura Flores over 1 year ago Actions #14

/a/skanta-2025-05-28_00:49:22-rados-wip-bharath8-testing-2025-05-27-1740-distro-default-smithi/8299140

AM Updated by Aishwarya Mathuria over 1 year ago Actions #15

/a/teuthology-2025-06-01_20:00:15-rados-main-distro-default-smithi/8304119/

LF Updated by Laura Flores over 1 year ago Actions #16

/a/skanta-2025-06-03_11:03:28-rados-wip-bharath1-testing-2025-06-02-2052-distro-default-smithi/8307419

LF Updated by Laura Flores over 1 year ago Actions #17

  • Backport set to tentacle

/a/teuthology-2025-05-18_22:00:03-rados-tentacle-distro-default-smithi/8288499

SA Updated by Shraddha Agrawal over 1 year ago Actions #18

/a/yuriw-2025-05-20_14:56:40-rados-wip-yuri3-testing-2025-05-12-0801-tentacle-distro-default-smithi/8290607

NN Updated by Naveen Naidu over 1 year ago Actions #19

/a/skanta-2025-06-14_23:37:17-rados-wip-bharath3-testing-2025-06-08-1922-distro-default-smithi/8328634

SA Updated by Shraddha Agrawal over 1 year ago Actions #20

/a/skanta-2025-06-18_11:22:46-rados-wip-yuri-testing-2025-06-12-0731-distro-default-smithi/8334508

SS Updated by Sridhar Seshasayee over 1 year ago Actions #21

/a/skanta-2025-06-17_15:42:09-rados-wip-bharath13-testing-2025-06-17-1621-distro-default-smithi/8332718

KS Updated by Kamoltat (Junior) Sirivadhna over 1 year ago Actions #22

/a/skanta-2025-06-07_04:15:58-rados-wip-bharath8-testing-2025-06-02-1508-distro-default-smithi/8312614

LF Updated by Laura Flores over 1 year ago Actions #23

/a/skanta-2025-06-12_09:21:16-rados-wip-bharath2-testing-2025-06-10-0545-distro-default-smithi/8324711

SS Updated by Sridhar Seshasayee over 1 year ago Actions #24

/a/skanta-2025-06-16_03:59:33-rados-wip-bharath10-testing-2025-06-15-0841-distro-default-smithi/8330482

BS Updated by Bill Scales over 1 year ago Actions #25

Rather than doing a sleep 2 and then checking if the OSD is in the PG, how about polling in a loop (without any sleep) for up to 2 seconds to see if the OSD is in the PG? This isn't a perfect fix but is better than what we've got now.

A slightly more sophisticated fix would be to also check if recovery has completed (the script missed detecting that the OSD was in the acting set) and allowing the test to continue.

SA Updated by Shraddha Agrawal over 1 year ago Actions #26

/a/yuriw-2025-06-19_19:29:56-rados-wip-yuri11-testing-2025-06-19-0935-distro-default-smithi/8337208

SA Updated by Shraddha Agrawal over 1 year ago Actions #27

/a/skanta-2025-06-25_05:53:02-rados-wip-bharath4-testing-2025-06-24-0841-distro-default-smithi/8347688

LF Updated by Laura Flores over 1 year ago Actions #28

/a/skanta-2025-06-03_11:03:28-rados-wip-bharath1-testing-2025-06-02-2052-distro-default-smithi/8307419

LF Updated by Laura Flores over 1 year ago Actions #29

/a/yuriw-2025-06-28_18:55:21-rados-wip-yuri-testing-2025-06-28-0812-distro-default-smithi/8355087

LS Updated by Lee Sanders over 1 year ago Actions #30

/a/ljsanders-2025-07-01_17:21:46-rados-main-distro-default-smithi/8364090

SS Updated by Sridhar Seshasayee over 1 year ago Actions #31

/a/yuriw-2025-07-01_21:01:48-rados-wip-yuri11-testing-2025-07-01-1146-tentacle-distro-default-smithi/8365249

LF Updated by Laura Flores over 1 year ago Actions #32

/a/yuriw-2025-07-07_19:32:23-rados-wip-yuri4-testing-2025-07-07-0811-tentacle-distro-default-smithi/8374155

NN Updated by Naveen Naidu over 1 year ago Actions #33

/a/skanta-2025-07-11_12:12:50-rados-wip-bharath2-testing-2025-07-11-0437-distro-default-smithi/8381399

LF Updated by Laura Flores over 1 year ago Actions #34

/a/yuriw-2025-07-10_23:00:33-rados-wip-yuri5-testing-2025-07-10-0913-distro-default-smithi/8380860

AM Updated by Aishwarya Mathuria over 1 year ago Actions #35

/a//skanta-2025-06-29_15:00:39-rados-wip-bharath1-testing-2025-06-28-2149-distro-default-smithi/8356805

SA Updated by Shraddha Agrawal over 1 year ago Actions #36

/a/skanta-2025-07-13_23:08:24-rados-wip-bharath4-testing-2025-07-13-0539-distro-default-smithi/8384531

AM Updated by Aishwarya Mathuria over 1 year ago Actions #37

/a/teuthology-2025-07-20_20:00:21-rados-main-distro-default-smithi/8398382/

LF Updated by Laura Flores over 1 year ago Actions #38

/a/skanta-2025-07-26_06:22:18-rados-wip-bharath9-testing-2025-07-26-0628-distro-default-smithi/8407394

KS Updated by Kamoltat (Junior) Sirivadhna over 1 year ago Actions #39

/a/yuriw-2025-07-28_18:11:33-rados-wip-yuri2-testing-2025-07-24-0816-tentacle-distro-default-smithi/8412118

LF Updated by Laura Flores over 1 year ago Actions #40

/a/skanta-2025-08-05_03:51:26-rados-wip-bharath9-testing-2025-08-05-0506-distro-default-smithi/8424287

KS Updated by Kamoltat (Junior) Sirivadhna over 1 year ago Actions #41

/a/teuthology-2025-08-10_20:00:42-rados-main-distro-default-smithi/8434931

KS Updated by Kamoltat (Junior) Sirivadhna over 1 year ago Actions #42

Pinged Mohit

teuthology-2025-08-10_20:00:42-rados-main-distro-default-smithi/8434931

(RADOS SUITE WATCHER)

CF Updated by Connor Fawcett over 1 year ago Actions #43

/a/skanta-2025-08-14_03:18:47-rados-wip-bharath4-testing-2025-08-13-0949-tentacle-distro-default-smithi/8442196

AM Updated by Aishwarya Mathuria over 1 year ago Actions #44

/a/skanta-2025-08-14_20:27:05-rados-wip-bharath5-testing-2025-08-13-0959-distro-default-smithi/8443375

CF Updated by Connor Fawcett over 1 year ago Actions #45

/a/skanta-2025-08-24_15:53:17-rados-wip-bharath4-testing-2025-08-24-0454-distro-default-smithi/8460741

SS Updated by Sridhar Seshasayee over 1 year ago Actions #46

/a/skanta-2025-08-24_23:24:05-rados-wip-bharath9-testing-2025-08-24-1258-tentacle-distro-default-smithi/8461784

AM Updated by Aishwarya Mathuria over 1 year ago Actions #47

/a/skanta-2025-08-21_23:24:45-rados-wip-bharath7-testing-2025-08-19-0959-distro-default-smithi/8457135

NN Updated by Naveen Naidu over 1 year ago Actions #48

(Ping from Watcher)

/a/teuthology-2025-08-31_20:00:45-rados-main-distro-default-smithi

CF Updated by Connor Fawcett over 1 year ago Actions #49

/a/skanta-2025-08-31_23:44:30-rados-wip-bharath4-testing-2025-08-31-1138-distro-default-smithi/8474704

JB Updated by Jonathan Bailey over 1 year ago Actions #50

/a/skanta-2025-08-05_10:12:24-rados-wip-bharath1-testing-2025-08-05-0512-distro-default-smithi/8424966

NN Updated by Naveen Naidu about 1 year ago Actions #51

/a/skanta-2025-08-21_03:58:28-rados-wip-bharath8-testing-2025-08-19-1328-distro-default-smithi/8456146

MA Updated by MOHIT AGRAWAL about 1 year ago Actions #52

  • Status changed from Need More Info to Fix Under Review
  • Pull request ID set to 65433

CF Updated by Connor Fawcett about 1 year ago Actions #53

/a/yuriw-2025-09-06_15:55:33-rados-wip-yuri3-testing-2025-09-04-1437-tentacle-distro-default-smithi/8484358

LF Updated by Laura Flores about 1 year ago Actions #54

/a/yuriw-2025-09-15_20:16:05-rados-wip-yuri-testing-2025-09-15-1029-tentacle-distro-default-smithi/8501659

LF Updated by Laura Flores about 1 year ago Actions #55

/a/skanta-2025-09-17_23:08:58-rados-wip-bharath8-testing-2025-09-17-1539-tentacle-distro-default-smithi/8507301

AM Updated by Aishwarya Mathuria about 1 year ago Actions #56

/a/yuriw-2025-09-24_18:46:32-rados-wip-yuri8-testing-2025-09-24-0752-tentacle-distro-default-smithi/8518609

LF Updated by Laura Flores about 1 year ago Actions #57

/a/yuriw-2025-09-18_21:29:32-rados-tentacle-release-distro-default-smithi/8509808

LF Updated by Laura Flores about 1 year ago Actions #58

/a/skanta-2025-09-04_05:22:45-rados-wip-bharath1-testing-2025-09-03-2103-tentacle-distro-default-smithi/8481280

JP Updated by Jaya Prakash about 1 year ago Actions #59

/a/akupczyk-2025-09-25_13:54:10-rados-aclamk-wip-ifed-fix-70390-distro-default-smithi/8520304

BS Updated by Bill Scales about 1 year ago Actions #60

I have an idea for how to fix this - we can use the backfill toofull error inject (set it to 100% probability of failing a backfill) to stop backfills from running. That means the script is no longer racing to check the acting set of the PG before backfill has completed. There is still a risk that peering is slowed down and doesn't complete before the test checks the PG (I fell over this when trying to run the script locally on a busy server) so I increased the 2 second sleeps to a more generous 8 seconds to make it extremely likely that peering will have finished.

--- a/qa/standalone/osd/repeer-on-acting-back.sh
+++ b/qa/standalone/osd/repeer-on-acting-back.sh
@@ -81,11 +81,14 @@ function TEST_repeer_on_down_acting_member_coming_back() {

     WAIT_FOR_CLEAN_TIMEOUT=20 wait_for_clean

+    # stop backfill
+    ceph config set global osd_debug_reject_backfill_probability 1.0 || return 1
+
     # reset up to [1,4,5]
     ceph osd pg-upmap $pgid 1 4 5 || return 1

     # wait for peering to complete
-    sleep 2
+    sleep 8

     # make sure osd.2 belongs to current acting set
     ceph pg $pgid query | jq '.acting' | grep 2 || return 1
@@ -95,7 +98,7 @@ function TEST_repeer_on_down_acting_member_coming_back() {
     ceph osd down osd.2

     # again, wait for peering to complete
-    sleep 2
+    sleep 8

     # osd.2 should have been moved out from acting set
     ceph pg $pgid query | jq '.acting' | grep 2 && return 1
@@ -105,11 +108,15 @@ function TEST_repeer_on_down_acting_member_coming_back() {
     wait_for_osd up 2

     # again, wait for peering to complete
-    sleep 2
+    sleep 8

     # primary should be able to re-add osd.2 into acting
     ceph pg $pgid query | jq '.acting' | grep 2 || return 1

+    # re-enable backfill
+    ceph config set global osd_debug_reject_backfill_probability 0.0 || return 1
+    ceph pg repeer $pgid || return 1
+
     WAIT_FOR_CLEAN_TIMEOUT=20 wait_for_clean

     if ! grep -q "Active: got notify from previous acting member.*, requesting pg_temp change" $(find $dir -name '*osd*log')

LF Updated by Laura Flores about 1 year ago Actions #61

/a/yuriw-2025-10-15_20:55:26-rados-tentacle-release-distro-default-smithi/8553673

SS Updated by Sridhar Seshasayee about 1 year ago Actions #62

/a/skanta-2025-10-24_12:45:03-rados-wip-bharath9-testing-2025-10-14-1426-tentacle-distro-default-smithi/8567555

AM Updated by Aishwarya Mathuria about 1 year ago Actions #63

  • Tags set to main-failures

/a/teuthology-2025-11-16_20:00:21-rados-main-distro-default-smithi/8605403

SS Updated by Sridhar Seshasayee about 1 year ago Actions #64

/a/skanta-2025-11-13_10:26:04-rados-wip-bharath3-testing-2025-11-12-2038-distro-default-smithi/8601385

LF Updated by Laura Flores about 1 year ago Actions #65

/a/lflores-2025-11-19_18:47:12-rados-wip-lflores-testing-2-2025-11-19-1711-distro-default-smithi/8613498

LF Updated by Laura Flores about 1 year ago Actions #66

/a/lflores-2025-11-20_15:55:17-rados-wip-lflores-testing-3-2025-11-19-1856-tentacle-distro-default-smithi/8615987

UB Updated by Upkeep Bot about 1 year ago Actions #67

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 13f95de96c108b0c6cc5ce215d17f10a785b2d4e
  • Fixed In set to v20.3.0-4368-g13f95de96c
  • Upkeep Timestamp set to 2025-12-01T09:28:57+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #68

  • Copied to Backport #74028: tentacle: repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back: return 1 added

UB Updated by Upkeep Bot about 1 year ago Actions #69

  • Tags (freeform) set to backport_processed

NN Updated by Naveen Naidu 12 months ago Actions #70

/a/skanta-2025-11-21_10:17:34-rados-wip-bharath11-testing-2025-11-21-0531-distro-default-smithi/8617947

LF Updated by Laura Flores 12 months ago Actions #71

/a/skanta-2025-12-09_12:02:32-rados-wip-bharath4-testing-2025-12-09-1249-tentacle-distro-default-smithi/8646994

AM Updated by Aishwarya Mathuria 5 months ago Actions #72

  • Backport changed from tentacle to tentacle, squid

Adding squid to backport

/a/yuriw-2026-06-22_18:46:50-rados-wip-yuri3-testing-20260622.144259-squid-distro-default-trial/306610

2026-06-22T20:28:50.006 INFO:tasks.workunit.client.0.trial097.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:87: TEST_repeer_on_down_acting_member_coming_back:  sleep 2
2026-06-22T20:28:52.009 INFO:tasks.workunit.client.0.trial097.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:90: TEST_repeer_on_down_acting_member_coming_back:  ceph pg 1.0 query
2026-06-22T20:28:52.010 INFO:tasks.workunit.client.0.trial097.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:90: TEST_repeer_on_down_acting_member_coming_back:  jq .acting
2026-06-22T20:28:52.010 INFO:tasks.workunit.client.0.trial097.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:90: TEST_repeer_on_down_acting_member_coming_back:  grep 2
2026-06-22T20:28:52.089 INFO:tasks.workunit.client.0.trial097.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:90: TEST_repeer_on_down_acting_member_coming_back:  return 1
2026-06-22T20:28:52.089 INFO:tasks.workunit.client.0.trial097.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/repeer-on-acting-back.sh:41: run:  return 1
2026-06-22T20:28:52.089 INFO:tasks.workunit.client.0.trial097.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:2379: main:  code=1

UB Updated by Upkeep Bot 3 months ago Actions #73

  • Copied to Backport #80048: squid: repeer-on-acting-back.sh:111: TEST_repeer_on_down_acting_member_coming_back: return 1 added

UB Updated by Upkeep Bot 3 months ago Actions #74

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-12-01T09:28:57+00:00 to 2026-08-27T18:23:29+00:00

SS Updated by Sridhar Seshasayee 3 months ago Actions #75

/a/skanta-2026-08-22_23:32:17-rados-wip-bharath9-testing-20260822.101440-squid-distro-default-trial/506223

NM Updated by Nitzan Mordechai 3 months ago Actions #76

/a/skanta-2026-09-05_09:19:06-rados-wip-bharath2-testing-20260904.234041-squid-distro-default-trial/539738

UB Updated by Upkeep Bot about 1 month ago Actions #77

  • Released In set to v21.2.0~1618
  • Upkeep Timestamp changed from 2026-08-27T18:23:29+00:00 to 2026-10-24T01:13:10+00:00

UB Updated by Upkeep Bot 29 days ago Actions #78

  • Released In changed from v21.2.0~1618 to v21.2.0~1619
  • Upkeep Timestamp changed from 2026-10-24T01:13:10+00:00 to 2026-11-04T01:07:37+00:00

LF Updated by Laura Flores 9 days ago Actions #79

/a/yuriw-2026-11-05_15:04:03-rados-wip-yuri9-testing-20261104.182417-squid-distro-default-trial/719693

Actions

Also available in: PDF Atom