Repository navigation
umbrella: Mon: Prevent pool creation if it will exceed mon_max_pg_per_osd - #70981
Ericmzhang wants to merge 3 commits into
Conversation
kamoltat
left a comment
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
Was this function added exclusively in umbrella backport? I don't see it in the main commit
There was a problem hiding this comment.
|
jenkins test make check |
|
jenkins test api |
|
jenkins test make check |
|
This PR has been added to wip-bharath12-testing-20260929.235239-umbrella. |
|
jenkins test make check |
|
@Ericmzhang needs rebased. |
|
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)
af5f6e0 to
af1bf72
Compare
771553a to
af1bf72
Compare
|
@batrick Resolved conflict it was qa/ only changes so no need to re-run rados QA test |
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]>
af1bf72 to
474681c
Compare
There was a problem hiding this comment.
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
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)
qa/suites/rados/singleton/all/pg-autoscaler-exceed-mon-max-pg-create.yamlqa/workunits/mon/pg_autoscaler.shqa/workunits/mon/pg_autoscaler_exceed_mon_max_pg_size.sh
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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
This PR has been added to umbrella integration testing by pdonnell started 2026-11-21-05:14. |
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)
|
This PR has been added to umbrella integration testing by pdonnell started 2026-11-25-20:01. |
|
jenkins test make check |
|
This doesn't qualify as a blocker, moving to v21.2.2. |
|
This PR has been removed from umbrella integration testing by pdonnell started 2026-11-25-20:01. |
backport tracker: https://tracker.ceph.com/issues/79328
backport of #67985
parent tracker: https://tracker.ceph.com/issues/75423
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh