diff options
author | Mohit Agrawal <moagrawa@redhat.com> | 2024-11-06 10:57:53 +0100 |
---|---|---|
committer | Mohit Agrawal <moagrawa@redhat.com> | 2024-11-06 10:57:53 +0100 |
commit | 0f0089472cc60fbe24f5cd2562bd119215734f5f (patch) | |
tree | 541417ffbdae2307d26b5a4bf066e56467d4ad77 /qa/standalone | |
parent | Merge pull request #55808 from neesingh-rh/wip-63700 (diff) | |
download | ceph-0f0089472cc60fbe24f5cd2562bd119215734f5f.tar.xz ceph-0f0089472cc60fbe24f5cd2562bd119215734f5f.zip |
TEST_backfill_grow fails after finding "num_bytes mismatch" in osd log
Need to ignore "num_bytes mismatch" messages during throw backfill/recovery
progress.
Fixes: https://tracker.ceph.com/issues/68585
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
Diffstat (limited to 'qa/standalone')
-rwxr-xr-x | qa/standalone/osd-backfill/osd-backfill-space.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/qa/standalone/osd-backfill/osd-backfill-space.sh b/qa/standalone/osd-backfill/osd-backfill-space.sh index 6a5c69412f4..84b9703bbfc 100755 --- a/qa/standalone/osd-backfill/osd-backfill-space.sh +++ b/qa/standalone/osd-backfill/osd-backfill-space.sh @@ -609,9 +609,16 @@ function TEST_backfill_grow() { wait_for_clean || return 1 + #Capture the timestamp after complete cleanup or finish the recovery progress + current_timestamp=$(date +"%Y-%m-%dT%H:%M:%S") + delete_pool $poolname kill_daemons $dir || return 1 - ! grep -q "num_bytes mismatch" $dir/osd.*.log || return 1 + + #Ignore the num_bytes mismatch messages before calling wait_cleanup + if ! awk -v ts="$current_timestamp" '$0 >= ts && /num_bytes mismatch/' $dir/osd.*.log > /dev/null; then + return 1 + fi } # Create a 5 shard EC pool on 6 OSD cluster |