Project

General

Profile

Actions

Bug #66059

open
MS RF

OSD: PG stat is not synchronized between osds after deep-scrub

Bug #66059: OSD: PG stat is not synchronized between osds after deep-scrub

Added by Md Mahamudur Rahaman Sajib over 2 years ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
Due date:
% Done:

0%

Source:
Development
Backport:
squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

The way to reproduce it is
1. create a large omap object (more than 1gb)
2. do deep-scrub of the PG which contains that object.
3. large omap object count will 1(check `ceph health detail`)
4. Shutdown the primary osd which has control over that PG.
5. Some secondary osd will take control over, check the health detail again, warning will be gone.

A better way to identify this problem is logging in OSD::collect_pg_stat. When we created a larget omap object, it will be shown in pg stat of primary osd that large omap object count is 0. After deep-scrub it will be 1. If we shutdown the primary osd, then if we check the log of new primary osd we will get 0 in the pg stat of that pg.

root cause of the problem when we do some changes in the object then primary osd submit some transaction through `void ReplicatedBackend::submit_transaction` function which eventually call `Message * ReplicatedBackend::generate_subop`there it ships transaction including pg stat and log entries. But for deep-scrub even if it changes the pg stat of primary osd but it does not publish that pg stat to other osds.

Solution could be create some mechanism such that we can publish the pg stat to the non-primary osd after deep-scrub.
I am able to reproduce it in quincy v17.2.7 but other versions will have the problem as well.


Related issues 3 (0 open — 3 closed)

Copied to RADOS - Backport #68439: quincy: OSD: PG stat is not synchronized between osds after deep-scrubRejectedMd Mahamudur Rahaman Sajib

Actions
Copied to RADOS - Backport #68440: reef: OSD: PG stat is not synchronized between osds after deep-scrubRejectedMd Mahamudur Rahaman Sajib

Actions
Copied to RADOS - Backport #68441: squid: OSD: PG stat is not synchronized between osds after deep-scrubRejectedMd Mahamudur Rahaman Sajib

Actions

ID Updated by Ilya Dryomov over 2 years ago Actions #1

  • Project changed from rbd to RADOS

RZ Updated by Radoslaw Zarzynski over 2 years ago Actions #2

  • Assignee set to Ronen Friedman

MS Updated by Md Mahamudur Rahaman Sajib over 2 years ago Actions #3

  • Assignee changed from Ronen Friedman to Md Mahamudur Rahaman Sajib
  • Pull request ID set to 57582

MS Updated by Md Mahamudur Rahaman Sajib over 2 years ago Actions #4

  • Status changed from New to In Progress

RZ Updated by Radoslaw Zarzynski over 2 years ago Actions #5

Note from scrub: letting Ronen know.

RZ Updated by Radoslaw Zarzynski over 2 years ago Actions #6

Scrub note: bump up!

LF Updated by Laura Flores over 2 years ago Actions #7

  • Status changed from In Progress to Fix Under Review

IF Updated by Igor Fedotov over 2 years ago Actions #8

  • Backport set to squid, reef, quincy

MS Updated by Md Mahamudur Rahaman Sajib about 2 years ago Actions #9

  • Status changed from Fix Under Review to Pending Backport

MS Updated by Md Mahamudur Rahaman Sajib about 2 years ago Actions #10

  • Copied to Backport #68439: quincy: OSD: PG stat is not synchronized between osds after deep-scrub added

MS Updated by Md Mahamudur Rahaman Sajib about 2 years ago Actions #11

  • Copied to Backport #68440: reef: OSD: PG stat is not synchronized between osds after deep-scrub added

MS Updated by Md Mahamudur Rahaman Sajib about 2 years ago Actions #12

  • Copied to Backport #68441: squid: OSD: PG stat is not synchronized between osds after deep-scrub added

MS Updated by Md Mahamudur Rahaman Sajib about 2 years ago Actions #13

  • Tags (freeform) set to backport_processed

RF Updated by Ronen Friedman about 2 years ago Actions #14

  • Status changed from Pending Backport to In Progress
  • Pull request ID deleted (57582)

Reverted the status to Open, as PR #57582 creates test failures and will be reverted.

RF Updated by Ronen Friedman about 2 years ago ยท Edited Actions #15

As far as I understand, the root-cause analysis in the description isn't correct.
Scrub-generated fix operations to the 'info' are indeed performed on the
Primary, but are published immediately (at the end of 'scrub_finish(), which - for our
omap case - is a few lines of code below the info update).

The update function is share_pg_info().

The part I am verifying now: seems that
PeeringState::proc_primary_info() would
(1) only update some scrub info data (and not the 'large omap' counter), and
(2) is only triggered when there are 'scrub errors' (num_scrub_errors > 0); and num_scrub_errors is 0 if our only problem is large omaps issues.

.

RF Updated by Ronen Friedman about 2 years ago Actions #16

  • Tags (freeform) deleted (backport_processed)

RZ Updated by Radoslaw Zarzynski about 2 years ago Actions #17

  • Assignee changed from Md Mahamudur Rahaman Sajib to Ronen Friedman

KS Updated by Konstantin Shalygin almost 2 years ago Actions #18

  • Backport changed from squid, reef, quincy to squid, reef

KS Updated by Konstantin Shalygin almost 2 years ago Actions #19

  • Status changed from In Progress to New
  • Target version set to v20.0.0

KS Updated by Konstantin Shalygin 8 months ago Actions #20

  • Backport changed from squid, reef to squid
Actions

Also available in: PDF Atom