Repository navigation
mgr/dashboard: Add stretch EC pool create command args to dashboard - #65
Merged
kamoltat merged 1 commit intoOct 16, 2026
Merged
Conversation
Ericmzhang
force-pushed
the
wip-stretchy-c-dashboard
branch
2 times, most recently
from
October 14, 2026 00:38
9c65cdc to
a724a9d
Compare
kamoltat
self-requested a review
October 14, 2026 13:35
kamoltat
reviewed
Oct 14, 2026
kamoltat
left a comment
Collaborator
There was a problem hiding this comment.
1 comment I used AI to analyze the other two are more of NIT stuff.
Comment on lines
+81
to
+94
| def test_creation_replicated_sends_no_ec_or_zone_params(self, send_command): | ||
| kwargs = self._create_pool(send_command, { | ||
| 'pool': 'rep-pool', | ||
| 'pool_type': 'replicated', | ||
| 'pg_num': 32, | ||
| 'size': 3 | ||
| }) | ||
| self.assertEqual(kwargs['pool'], 'rep-pool') | ||
| self.assertEqual(kwargs['pg_num'], 32) | ||
| # None values are dropped by CephService.send_command, so the mon applies its defaults | ||
| for name in ['rule', 'num_zones', 'replica', 'min_size', 'root', 'k', 'm', | ||
| 'osd_failure_domain', 'zone_failure_domain', 'erasure_code_profile']: | ||
| self.assertIsNone(kwargs.get(name), name) | ||
| self.assertNotIn('class', kwargs) |
Collaborator
There was a problem hiding this comment.
Can we add a test for num_zones = 3? and expect it to fail and throw an output saying something along the lines of "num_zones = 3" currently not supported
Ericmzhang
force-pushed
the
wip-stretchy-c-dashboard
branch
from
October 14, 2026 20:12
a724a9d to
a22fc99
Compare
kamoltat
reviewed
Oct 16, 2026
Comment on lines
+213
to
+215
| if num_zones is not None and int(num_zones) != 2: | ||
| raise DashboardException( | ||
| msg='num_zones = {} is not supported; only num_zones = 2 is currently supported' |
Collaborator
There was a problem hiding this comment.
wait does this mean that num_zones = 1 is also not supported?
I was thinking num_zones = 1 should be idempotent
Collaborator
Author
There was a problem hiding this comment.
Thanks for catching that. num_zones = 1 should be allowed.
kamoltat
requested changes
Oct 16, 2026
kamoltat
left a comment
Collaborator
There was a problem hiding this comment.
second round of review, thanks for addressing comments from the first round,
just left a question regarding whether num_zones = 1 should be allow in pool set
Add dashboard inputs for num_zones, k, m, CRUSH params (osd_failure_domain, zone_failure_domain, root, class), replica, min_size.
Ericmzhang
force-pushed
the
wip-stretchy-c-dashboard
branch
from
October 16, 2026 15:26
a22fc99 to
8cfaba4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Dashboard Backend Controller (
controllers/pool.py):osd pool createparameters:num_zones,replica,min_size,k,m,root,osd_failure_domain,zone_failure_domain, andcrush_device_class(mapped toclass).CephService.send_command('mon', 'osd pool create', ...).Dashboard UI Form Component & Template (
pool-form):num_zones.size) for single-zone pools and "Replicas per zone" (replica) for multi-zone pools (num_zones > 1).sizeon multi-zone pools to allow the monitor to calculate total size .min_size(minimum replica size) input with validation ensuring.root), Device class (class), OSD failure domain (osd_failure_domain), and Zone failure domain (zone_failure_domain).num_zones > 1).-- Default (cluster chooses) --option for CRUSH rule dropdown.Tests:
test_pool.pycovering multi-zone, replica, min_size, and CRUSH parameter argument handling.pool-form.component.spec.tscovering validation rules, multi-zone field toggling, min_size checks, and payload generation.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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
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.