Skip to content

tentacle: osd/scrub: 'repairing' scrubs allowed at all times - #69160

Merged
batrick merged 2 commits into
ceph:tentaclefrom
ronen-fr:wip-rf-69110b-tentacle
Jul 8, 2026
Merged

tentacle: osd/scrub: 'repairing' scrubs allowed at all times#69160
batrick merged 2 commits into
ceph:tentaclefrom
ronen-fr:wip-rf-69110b-tentacle

Conversation

@ronen-fr

@ronen-fr ronen-fr commented May 29, 2026

Copy link
Copy Markdown
Contributor

Fix ScrubJob::observes_allowed_hours() to not block 'repairing' scrubs outside of the allowed hours. This allows repair scrubs to run at any time or day-of-week.
The fixed behaviour matches the documented requirements.

Backport of #69110
Fixes: https://tracker.ceph.com/issues/77025
Original tracker: https://tracker.ceph.com/issues/76811

@github-actions github-actions Bot added the core label May 29, 2026
@github-actions github-actions Bot added this to the tentacle milestone May 29, 2026
@ronen-fr ronen-fr added bug-fix backport tentacle PRs that is a tentacle back-port labels May 29, 2026
@ronen-fr
ronen-fr requested a review from rzarzynski May 29, 2026 08:34

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Backport Parity Review - Backport Deviation Alert

A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

Deviation in Backport e94c170 (cherry-pick of 4ac5a32)

Affected File(s)

Range Diff

Click to expand
--- Original (4ac5a321)
+++ Backport (e94c1700)
@@ -7,3 +7,5 @@
 
 Fixes: https://tracker.ceph.com/issues/76811
 Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
+(cherry picked from commit 4ac5a3210ae55e33466ca867a8c1c4b5b0a18c64)
+Signed-off-by: Ronen Friedman <rfriedma@redhat.com>

================================================================================
RANGE DIFF
================================================================================

1:  4ac5a3210ae ! 1:  e94c1700554 osd/scrub: 'repairing' scrubs allowed at all times
    @@ Commit message
     
         Fixes: https://tracker.ceph.com/issues/76811
         Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
    +    (cherry picked from commit 4ac5a3210ae55e33466ca867a8c1c4b5b0a18c64)
    +    Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
     
      ## src/osd/scrubber/scrub_job.cc ##
     @@ src/osd/scrubber/scrub_job.cc: bool ScrubJob::observes_noscrub_flags(urgency_t urgency)
    @@ src/osd/scrubber/scrub_job.h: class ScrubJob {
       *  | limitation |  must-  | after-repair |repairing| operator | must-repair |
       *  |            |  scrub  |(aft recovery)|(errors) | request  |             |
       *  +------------+---------+--------------+---------+----------+-------------+
    -- *  | reservation|    yes! |      no      |    no   |     no   |      no     |
    -- *  | dow/time   |    yes  |      yes     |    no X |     no   |      no     |
    +- *  | reservation|    yes! |      no      |    no?  |     no   |      no     |
    +- *  | dow/time   |    yes  |     yes      |    no   |     no   |      no     |
     + *  | reservation|    yes  |      no      |    no   |     no   |      no     |
     + *  | dow/time   |    yes  |      yes     |    no   |     no   |      no     |
       *  | ext-sleep  |    no   |      no      |    no   |     no   |      no     |
       *  | load       |    yes  |      no      |    no   |     no   |      no     |
    -  *  | trims      |    yes  |      yes     |    no   |     no   |      no     |
    +  *  | noscrub    |    yes  |      no      |    Yes  |     no   |      no     |

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


Automated Redmine Linkage Audit

The following tracking irregularities were found:

  • Missing Backport Tracker: Main tracker #76811 does not have a backport tracker for tentacle. Please adjust the 'Backports' field on the main tracker appropriately and remove 'backport_processed' from 'Tags (freeform)'.

Commit Parity Visualizer

BACKPORT PR #69160 SOURCE PR SOURCE STATUS
e94c170 osd/scrub: 'repairing' scrubs allowed at all times PR #69110 4ac5a32 osd/scrub: 'repairing' scrubs allowed at all times
e5379b0 osd/scrub: removed a misleading comment about 'overdue' scrubs 787f2b0 osd/scrub: removed a misleading comment about 'overdue' scrubs

🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

CI Run Log: View Workflow Details

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label May 29, 2026
ronen-fr added 2 commits June 3, 2026 13:43
Fix ScrubJob::observes_allowed_hours() to not block 'repairing'
scrubs outside of the allowed hours. This allows repair scrubs
to run at any time or day-of-week.
The fixed behaviour matches the documented requirements.

Fixes: https://tracker.ceph.com/issues/76811
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit 4ac5a32)
CONFLICT (content): Merge conflict in src/osd/scrubber/scrub_job.h
Resolved manually (comment lines only)
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit 787f2b0)
@ronen-fr
ronen-fr force-pushed the wip-rf-69110b-tentacle branch from e5379b0 to ba71d31 Compare June 3, 2026 13:44
@ronen-fr ronen-fr removed the releng-audit-fail Release engineering: failed backport verification audit. label Jun 3, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jun 3, 2026
@ronen-fr
ronen-fr marked this pull request as ready for review June 3, 2026 14:59
@ronen-fr
ronen-fr requested a review from a team as a code owner June 3, 2026 14:59
@sseshasa

sseshasa commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

@batrick batrick removed the releng-audit-fail Release engineering: failed backport verification audit. label Jul 8, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Backport Parity Review - Backport Deviation Alert

A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

Deviation in Backport 53e4793 (cherry-pick of 4ac5a32)

Affected File(s)

Range Diff

Click to expand
--- Original (4ac5a321)
+++ Backport (53e4793d)
@@ -7,3 +7,7 @@
 
 Fixes: https://tracker.ceph.com/issues/76811
 Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
+(cherry picked from commit 4ac5a3210ae55e33466ca867a8c1c4b5b0a18c64)
+CONFLICT (content): Merge conflict in src/osd/scrubber/scrub_job.h
+Resolved manually (comment lines only)
+Signed-off-by: Ronen Friedman <rfriedma@redhat.com>

================================================================================
RANGE DIFF
================================================================================

1:  4ac5a3210ae ! 1:  53e4793dbd8 osd/scrub: 'repairing' scrubs allowed at all times
    @@ Commit message
     
         Fixes: https://tracker.ceph.com/issues/76811
         Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
    +    (cherry picked from commit 4ac5a3210ae55e33466ca867a8c1c4b5b0a18c64)
    +    CONFLICT (content): Merge conflict in src/osd/scrubber/scrub_job.h
    +    Resolved manually (comment lines only)
    +    Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
     
      ## src/osd/scrubber/scrub_job.cc ##
     @@ src/osd/scrubber/scrub_job.cc: bool ScrubJob::observes_noscrub_flags(urgency_t urgency)
    @@ src/osd/scrubber/scrub_job.h: class ScrubJob {
       *  | limitation |  must-  | after-repair |repairing| operator | must-repair |
       *  |            |  scrub  |(aft recovery)|(errors) | request  |             |
       *  +------------+---------+--------------+---------+----------+-------------+
    -- *  | reservation|    yes! |      no      |    no   |     no   |      no     |
    -- *  | dow/time   |    yes  |      yes     |    no X |     no   |      no     |
    +- *  | reservation|    yes! |      no      |    no?  |     no   |      no     |
    +- *  | dow/time   |    yes  |     yes      |    no   |     no   |      no     |
     + *  | reservation|    yes  |      no      |    no   |     no   |      no     |
     + *  | dow/time   |    yes  |      yes     |    no   |     no   |      no     |
       *  | ext-sleep  |    no   |      no      |    no   |     no   |      no     |
       *  | load       |    yes  |      no      |    no   |     no   |      no     |
    -  *  | trims      |    yes  |      yes     |    no   |     no   |      no     |
    +  *  | noscrub    |    yes  |      no      |    Yes  |     no   |      no     |

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


Commit Parity Visualizer

BACKPORT PR #69160 SOURCE PR SOURCE STATUS
53e4793 osd/scrub: 'repairing' scrubs allowed at all times PR #69110 4ac5a32 osd/scrub: 'repairing' scrubs allowed at all times
ba71d31 osd/scrub: removed a misleading comment about 'overdue' scrubs 787f2b0 osd/scrub: removed a misleading comment about 'overdue' scrubs

🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

CI Run Log: View Workflow Details

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 8, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Jul 8, 2026
@batrick
batrick merged commit d356fd7 into ceph:tentacle Jul 8, 2026
17 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants