From: Ronen Friedman Date: Thu, 3 Mar 2022 08:03:00 +0000 (+0000) Subject: test: osd-scrub-snaps.sh: fix expected 'missing snaps' log string X-Git-Tag: v18.0.0~1304^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d654839222c082d7cb5d4d85d2b80e8e1483907c;p=ceph.git test: osd-scrub-snaps.sh: fix expected 'missing snaps' log string Fix the expected log message to match the scrub code, by removing the redundant part. Fixes: https://tracker.ceph.com/issues/54458 Signed-off-by: Ronen Friedman --- diff --git a/qa/standalone/scrub/osd-scrub-snaps.sh b/qa/standalone/scrub/osd-scrub-snaps.sh index 39e0f40f7405..26458de5b717 100755 --- a/qa/standalone/scrub/osd-scrub-snaps.sh +++ b/qa/standalone/scrub/osd-scrub-snaps.sh @@ -695,7 +695,7 @@ EOF err_strings[19]="log_channel[(]cluster[)] log [[]ERR[]] : scrub [0-9]*[.]0 .*:::obj14:1 : size 1032 != clone_size 1033" err_strings[20]="log_channel[(]cluster[)] log [[]ERR[]] : [0-9]*[.]0 scrub 20 errors" err_strings[21]="log_channel[(]cluster[)] log [[]ERR[]] : scrub [0-9]*[.]0 .*:::obj15:head : can't decode 'snapset' attr " - err_strings[22]="log_channel[(]cluster[)] log [[]ERR[]] : osd[.][0-9]* found snap mapper error on pg 1.0 oid 1:461f8b5e:::obj16:7 snaps missing in mapper, should be: 1,2,3,4,5,6,7 was r -2...repaired" + err_strings[22]="log_channel[(]cluster[)] log [[]ERR[]] : osd[.][0-9]* found snap mapper error on pg 1.0 oid 1:461f8b5e:::obj16:7 snaps missing in mapper, should be: 1,2,3,4,5,6,7 ...repaired" for err_string in "${err_strings[@]}" do @@ -1126,7 +1126,7 @@ fi # Check replica specific messages declare -a rep_err_strings osd=$(eval echo \$$which) - rep_err_strings[0]="log_channel[(]cluster[)] log [[]ERR[]] : osd[.][0-9]* found snap mapper error on pg 1.0 oid 1:461f8b5e:::obj16:7 snaps missing in mapper, should be: 1,2,3,4,5,6,7 was r -2...repaired" + rep_err_strings[0]="log_channel[(]cluster[)] log [[]ERR[]] : osd[.][0-9]* found snap mapper error on pg 1.0 oid 1:461f8b5e:::obj16:7 snaps missing in mapper, should be: 1,2,3,4,5,6,7 ...repaired" for err_string in "${rep_err_strings[@]}" do if ! grep "$err_string" $dir/osd.${osd}.log > /dev/null;