Bug 2208269

Summary: [RHCS Tracker] After add capacity the rebalance does not complete, and we see 2 PGs in active+clean+scrubbing and 1 active+clean+scrubbing+deep
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Petr Balogh <pbalogh>
Component: cephAssignee: Aishwarya Mathuria <amathuri>
ceph sub component: RADOS QA Contact: Petr Balogh <pbalogh>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: unspecified CC: amathuri, bniver, idryomov, kseeger, muagarwa, nojha, ocs-bugs, odf-bz-bot, sostapov
Version: 4.13Keywords: Automation, Regression
Target Milestone: ---   
Target Release: ODF 4.13.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.13.0-214 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2209375 (view as bug list) Environment:
Last Closed: 2023-06-21 15:25:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2209375    
Bug Blocks:    

Description Petr Balogh 2023-05-18 12:31:19 UTC
Description of problem (please be detailed as possible and provide log
snippests):

After add capacity test we see that the ceph state getting stuck in this state:

    pgs:     166 active+clean
             2   active+clean+scrubbing
             1   active+clean+scrubbing+deep


Version of all relevant components (if applicable):
I've noticed that it has started happening from build:
quay.io/rhceph-dev/ocs-registry:4.13.0-198
In
quay.io/rhceph-dev/ocs-registry:4.13.0-197 it worked well.

But from build -198 it's reproducible in every run.

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
Yes, it's blocking our testing framework as cluster is not in good state.

Is there any workaround available to the best of your knowledge?
NO

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
1

Can this issue reproducible?
Yes - from build -198

Can this issue reproduce from the UI?
not relevant

If this is a regression, please provide more details to justify this:
Yes

Steps to Reproduce:
1. Do add capacity
2. Rebalance is not finishing in timeout we used to have
3.


Actual results:
PGs:
             2   active+clean+scrubbing
             1   active+clean+scrubbing+deep

Expected results:
Have all PGS active+clean

Additional info:

Comment 9 Aishwarya Mathuria 2023-05-22 08:24:55 UTC
Hello Petr,
We have been working on a fix that is currently being tested and reviewed to reduce osd_scrub_cost in order to speed up scrubs with mClock. 
The new scrub cost would be 102400 ( osd_scrub_chunk_max (25) * 4KiB)

You can change osd_scrub_cost using the following command:
ceph config set osd 102400

To check osd_scrub_cost after modifying it: 
ceph config show osd.1 osd_scrub_cost

Regards,
Aishwarya

Comment 12 Aishwarya Mathuria 2023-05-22 16:13:04 UTC
Sorry about that! 

ceph config set osd osd_scrub_cost 102400

This should work fine.

Comment 14 Mudit Agarwal 2023-05-23 05:51:39 UTC
Aishwarya, do we have a Ceph BZ or tracker where the fix you are working upon can be tracked by ODF?

Comment 17 Aishwarya Mathuria 2023-05-23 06:00:01 UTC
Hi Mudit, 
The fix is being tracked here - https://tracker.ceph.com/issues/61313, it is currently under review.

Comment 25 errata-xmlrpc 2023-06-21 15:25:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenShift Data Foundation 4.13.0 enhancement and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:3742