Skip to content

umbrella: Mon: Prevent pool creation if it will exceed mon_max_pg_per_osd - #70981

Open
Ericmzhang wants to merge 3 commits into
ceph:umbrellafrom
Ericmzhang:wip-79328-umbrella
Open

Ericmzhang wants to merge 3 commits into
ceph:umbrellafrom
Ericmzhang:wip-79328-umbrella

Conversation

@Ericmzhang

Copy link
Copy Markdown
Contributor

@Ericmzhang
Ericmzhang requested a review from a team as a code owner August 11, 2026 17:10
@Ericmzhang Ericmzhang added this to the umbrella milestone Aug 11, 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 Aug 11, 2026

@kamoltat kamoltat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just little curious why test_overlapping_roots() is in umbrella but not main?

ceph osd pool rm data1 data1 --yes-i-really-really-mean-it
}

function test_overlapping_roots() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Was this function added exclusively in umbrella backport? I don't see it in the main commit

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

sorry I meant it's not present in umbrella originally, because #70981 is not yet merged. Any how, it's fine as long as #70981 isn’t dependent on #70726 to merge first

@Ericmzhang

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@Ericmzhang

Copy link
Copy Markdown
Contributor Author

jenkins test api

@kamoltat

Copy link
Copy Markdown
Member

jenkins test make check

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath12-testing-20260929.235239-umbrella.

@kamoltat

kamoltat commented Oct 5, 2026

Copy link
Copy Markdown
Member

@kamoltat

kamoltat commented Oct 5, 2026

Copy link
Copy Markdown
Member

jenkins test make check

@batrick

batrick commented Oct 28, 2026

Copy link
Copy Markdown
Member

@Ericmzhang needs rebased.

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

Check if adding a new pool results in max PG allowed to be exceeded
Check if increasing replication size results in max PG allowed to be exceeded

Fixes: https://tracker.ceph.com/issues/75423

Signed-off-by: Eric Zhang <[email protected]>
(cherry picked from commit 68bd1a5)
@kamoltat

kamoltat commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

@batrick Resolved conflict it was qa/ only changes so no need to re-run rados QA test

@kamoltat kamoltat added needs-merge QA-approved, awaiting merge window and removed needs-qa labels Nov 10, 2026
@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Nov 11, 2026
@github-actions github-actions Bot removed the releng-audit-queue Release engineering: queued for backport verification audit. label Nov 11, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Nov 11, 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 Nov 11, 2026
Added unit tests to check for adding a pool that causes max PG
to be exceeded and increasing replication size that causes max PG to be exceeded

Fixes: https://tracker.ceph.com/issues/75423

Signed-off-by: Eric Zhang <[email protected]>
(cherry picked from commit cb7ca7b)

Conflicts:
	qa/workunits/mon/pg_autoscaler.sh - trivial fix
Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
@batrick batrick removed the releng-audit-fail Release engineering: failed backport verification audit. label Nov 12, 2026
@batrick batrick modified the milestones: umbrella, v21.2.1 Nov 12, 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.

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #70981 SOURCE PR SOURCE STATUS
2378b4c mon: Add check preventing new pool from exceeding max PG allowed PR #67985 68bd1a5 mon: Add check preventing new pool from exceeding max PG allowed
474681c qa/workunits/mon: Add unit tests for exceeding max PG allowed cb7ca7b qa/workunits/mon: Add unit tests for exceeding max PG allowed

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or 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.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport 474681c (cherry-pick of cb7ca7b)

Affected File(s)

Range Diff

Click to expand
--- Original (cb7ca7b4)
+++ Backport (474681ca)
@@ -5,3 +5,8 @@
 Fixes: https://tracker.ceph.com/issues/75423
 
 Signed-off-by: Eric Zhang <[email protected]>
+(cherry picked from commit cb7ca7b4d6a2bec30488fde5c86f60aa10497b26)
+
+Conflicts:
+	qa/workunits/mon/pg_autoscaler.sh - trivial fix
+Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>

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

1:  cb7ca7b4d6a ! 1:  474681caf21 qa/workunits/mon: Add unit tests for exceeding max PG allowed Added unit tests to check for adding a pool that causes max PG to be exceeded and increasing replication size that causes max PG to be exceeded
    @@ Commit message
         Fixes: https://tracker.ceph.com/issues/75423
     
         Signed-off-by: Eric Zhang <[email protected]>
    +    (cherry picked from commit cb7ca7b4d6a2bec30488fde5c86f60aa10497b26)
    +
    +    Conflicts:
    +            qa/workunits/mon/pg_autoscaler.sh - trivial fix
    +    Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
     
      ## qa/suites/rados/singleton/all/pg-autoscaler-exceed-mon-max-pg-create.yaml (new) ##
     @@
    @@ qa/suites/rados/singleton/all/pg-autoscaler-exceed-mon-max-pg-create.yaml (new)
     +      - \(SLOW_OPS\)
     +      - \(REQUEST_SLOW\)
     +      - \(TOO_FEW_PGS\)
    -+      - \(TOO_MANY_PGS\) 
    ++      - \(TOO_MANY_PGS\)
     +      - slow request
     +      - \(POOL_APP_NOT_ENABLED\)
     +- workunit:
    @@ qa/suites/rados/singleton/all/pg-autoscaler-exceed-mon-max-pg-size.yaml (new)
     +        - mon/pg_autoscaler_exceed_mon_max_pg_size.sh
     
      ## qa/workunits/mon/pg_autoscaler.sh ##
    -@@
    - #!/bin/bash -ex
    - 
    - NUM_OSDS=$(ceph osd ls | wc -l)
    --if [ $NUM_OSDS -lt 6 ]; then
    -+if [ $NUM_OSDS -lt ]; then
    -     echo "test requires at least 6 OSDs"
    -     exit 1
    - fi
    -@@ qa/workunits/mon/pg_autoscaler.sh: EOF
    -     # -6  pg_target = 100
    -     # -7: pg_target = 100
    - 
    --    TARGET_PG_1=$(power2_floor $MON_TARGET_PG_PER_OSD)
    --    TARGET_PG_2=$(power2_floor $(( ($NUM_OSDS - 3) * $MON_TARGET_PG_PER_OSD )))
    -+    POOL_SIZE_1=$(ceph osd pool get data0 size| grep -Eo '[0-9]{1,4}')
    -+    POOL_SIZE_2=$(ceph osd pool get data3 size| grep -Eo '[0-9]{1,4}')
    -+
    -+    TARGET_PG_1=$(power2_floor $(( $MON_TARGET_PG_PER_OSD / $POOL_SIZE_1 )))
    -+    TARGET_PG_2=$(power2_floor $(( ($NUM_OSDS - 3) * $MON_TARGET_PG_PER_OSD / $POOL_SIZE_2 )))
    - 
    - 
    -     wait_for 300 "ceph osd pool get data0 pg_num | grep $TARGET_PG_1"
    -@@ qa/workunits/mon/pg_autoscaler.sh: ceph osd pool set threshold 1.0
    - test_autoscaler_basic || return 1
    - test_pool_starvation || return 1
    - test_exact_budget || return 1
    --test_overlapping_roots || exit 1
    -+test_overlapping_roots || return 1
    +@@ qa/workunits/mon/pg_autoscaler.sh: test_exact_budget || return 1
    + test_overlapping_roots || exit 1
      
      echo OK
    - 
    +-
     
      ## qa/workunits/mon/pg_autoscaler_exceed_mon_max_pg_create.sh (new) ##
     @@
    @@ qa/workunits/mon/pg_autoscaler_exceed_mon_max_pg_size.sh (new)
     +
     +
     +echo OK
    -+

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.


🛟 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.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Nov 12, 2026
@batrick

batrick commented Nov 21, 2026

Copy link
Copy Markdown
Member

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the string literals would be concatenated without spaces and break
parsing

Fixes: https://tracker.ceph.com/issues/79431

Signed-off-by: Casey Bodley <[email protected]>
(cherry picked from commit 4de58bd)
@batrick

batrick commented Nov 25, 2026

Copy link
Copy Markdown
Member

@batrick

batrick commented Nov 25, 2026

Copy link
Copy Markdown
Member

jenkins test make check

@batrick

batrick commented Nov 25, 2026

Copy link
Copy Markdown
Member

This doesn't qualify as a blocker, moving to v21.2.2.

@batrick batrick modified the milestones: v21.2.1, v21.2.2 Nov 25, 2026
@batrick

batrick commented Nov 25, 2026

Copy link
Copy Markdown
Member

This PR has been removed from umbrella integration testing by pdonnell started 2026-11-25-20:01.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core mon needs-merge QA-approved, awaiting merge window pybind releng-audit-fail Release engineering: failed backport verification audit. tests wip-bharath12-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants