mon/OSDMonitor: size a replicated stretch pool from its zones #49
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #49"
general
weight: 0.35
aainscow
<!--
- Please give your pull request a title like
[component]: [short description]
- Please use this format for each git commit message:
[component]: [short description]
[A longer multiline description]
Fixes: [ticket URL on tracker.ceph.com, create one if necessary]
Signed-off-by: [Your Name] <[your email]>
For examples, use "git log".
-->
Fifth PR split out of https://github.com/aainscow/ceph/pull/43.
osd pool create <pool> --num-zones 2builds a stretch rule that takesnum_replica_per_zone(default 2) hosts in each zone. Butprepare_pool_size()ignorednum_zonesfor a replicated pool created without a size, so the pool gotosd_pool_default_size(3), and one zone held a single replica.num_zones * num_replica_per_zone(4 for the defaults). Global stretch mode keepsmon_stretch_pool_size. Section 2.1.3 of the design says so.TEST_pool_create_stretch_replicaincrush-stretch.shnow expects size 4 and min_size 2. Without the fix the pool gets size 3.Testing
unittest_mon_monmapandunittest_osd_monitorpassed.crush/crush-stretch.shpassed 9/9, includingTEST_pool_create_stretch_replica.--zone_failure_domain, so on stretchy-C it needs https://github.com/aainscow/ceph/pull/48.Contribution Guidelines
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
- [ ] References tracker ticket
- [ ] Very recent bug; references commit where it was introduced
- [x] New feature (ticket optional)
- [ ] Doc update (no ticket needed)
- [ ] Code cleanup (no ticket needed)
- [ ] Affects Dashboard, opened tracker ticket
- [ ] Affects Orchestrator, opened tracker ticket
- [x] No impact that needs to be tracked
- [x] Updates relevant documentation
- [ ] No doc update is appropriate
- [ ] Includes unit test(s)
- [x] Includes integration test(s)
- [x] Includes bug reproducer
- [ ] No tests
<details>
<summary>Show available Jenkins commands</summary>
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.
</details>
🤖 Generated with Claude Code