← Back to Pull requests

mgr/dashboard: Add stretch EC pool create command args to dashboard #65

Closed
unknown closed this pull request without merging on Oct 16, 2026 21:17 UTC
View on GitHub
unknown unknown commented on Oct 13, 2026 22:14 UTC
Author

Description


This PR adds support for multi-zone and stretch pool creation parameters in the Ceph Dashboard, bringing UI and controller pool creation into parity with the Ceph monitor (osd pool create / PoolCreateParams).

Key Changes

1. Dashboard Backend Controller (controllers/pool.py):
- Added support for new osd pool create parameters: num_zones, replica, min_size, k, m, root, osd_failure_domain, zone_failure_domain, and crush_device_class (mapped to class).
- Routed parameters to CephService.send_command('mon', 'osd pool create', ...).

2. Dashboard UI Form Component & Template (pool-form):
- Multi-Zone Configuration: Added input field for num_zones.
- Replicated Pool Sizing:
- Dynamically swaps between "Replicated size" (size) for single-zone pools and "Replicas per zone" (replica) for multi-zone pools (num_zones > 1).
- Disables explicit size on multi-zone pools to allow the monitor to calculate total size .
- Added optional min_size (minimum replica size) input with validation ensuring.
- Stretch Erasure Coded Pools (k and m):
- Added inputs for data chunks (k) and coding chunks (m).
- Enforces mutual requirement (k and m must both be set or both omitted).
- Enforces stretch EC divisibility constraint: (k + m) \pmod{\text{num\_zones}} == 0.
- When k and m are specified, omits pre-existing EC profile selection so the monitor auto-creates the profile.
- CRUSH Parameters:
- Added dropdowns for CRUSH root (root), Device class (class), OSD failure domain (osd_failure_domain), and Zone failure domain (zone_failure_domain).
- Displayed conditionally for multi-zone pools (num_zones > 1).
- Added cross-field validation preventing CRUSH parameters from being specified together with an explicit CRUSH ruleset.
- Added -- Default (cluster chooses) -- option for CRUSH rule dropdown.

3. Tests:
- Added Python unit tests in test_pool.py covering multi-zone, replica, min_size, and CRUSH parameter argument handling.
- Updated Angular Jasmine/Jest specs in pool-form.component.spec.ts covering validation rules, multi-zone field toggling, min_size checks, and payload generation.

<!--
- 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".
-->

Contribution Guidelines


  • To sign and title your commits, please refer to Submitting Patches to Ceph.
  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.
  • Checklist


  • Tracker (select at least one)

  • - [ ] 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)
  • Component impact

  • - [ ] Affects Dashboard, opened tracker ticket
    - [ ] Affects Orchestrator, opened tracker ticket
    - [x] No impact that needs to be tracked
  • Documentation (select at least one)

  • - [ ] Updates relevant documentation
    - [x] No doc update is appropriate
  • Tests (select at least one)

  • - [x] Includes unit test(s)
    - [ ] Includes integration test(s)
    - [ ] Includes bug reproducer
    - [ ] No tests

    <details>
    <summary>Show available Jenkins commands</summary>

  • jenkins test classic perf Jenkins Job | Jenkins Job Definition

  • jenkins test crimson perf Jenkins Job | Jenkins Job Definition

  • jenkins test signed Jenkins Job | Jenkins Job Definition

  • jenkins test make check Jenkins Job | Jenkins Job Definition

  • jenkins test make check arm64 Jenkins Job | Jenkins Job Definition

  • jenkins test submodules Jenkins Job | Jenkins Job Definition

  • jenkins test dashboard Jenkins Job | Jenkins Job Definition

  • jenkins test dashboard cephadm Jenkins Job | Jenkins Job Definition

  • jenkins test api Jenkins Job | Jenkins Job Definition

  • jenkins test docs ReadTheDocs | Github Workflow Definition

  • jenkins test ceph-volume all Jenkins Jobs | Jenkins Jobs Definition

  • jenkins test windows Jenkins Job | Jenkins Job Definition

  • jenkins test rook e2e Jenkins Job | Jenkins Job Definition
  • You must only issue one Jenkins command per-comment. Jenkins does not understand
    comments with more than one command.
    </details>

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: Ericmzhang Review duration: 4262m
    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
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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 #65"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%
    Repository