Repository navigation
debian,rpm: split ceph-mgr-modules-core into per-module packages - #68989
Conversation
a702e67 to
363143f
Compare
363143f to
d6f9305
Compare
cd26f84 to
bfa39fa
Compare
| Recommends: ceph-mgr-k8sevents = %{_epoch_prefix}%{version}-%{release} | ||
| Recommends: ceph-mgr-cephadm = %{_epoch_prefix}%{version}-%{release} | ||
| Recommends: python%{python3_pkgversion}-influxdb | ||
| Recommends: ceph-mgr-localpool = %{_epoch_prefix}%{version}-%{release} |
There was a problem hiding this comment.
I'm concerned that this change will cause the containers to be build without necessary modules. The container dnf commands disables weak deps. So to keep this approach would require corresponding changes to the Containerfile.
Personally, I would have changed the definition of the ceph-mgr-modules-core. It shouldn't be just "modules that are enabled by default" but modules that have no extra dependencies and could be enabled by default.
Personally, I would like nfs and smb to be enabled by default but we've been cautious in upstream into turning things like that on by default.
Finally, assuming you don't change approaches - would you please split the rpm spec file changes and debian/ changes into two separate patches? Thanks.
There was a problem hiding this comment.
I'm concerned that this change will cause the containers to be build without necessary modules. The container dnf commands disables weak deps. So to keep this approach would require corresponding changes to the Containerfile.
i see. will update container/Containerfile accordingly.
Personally, I would have changed the definition of the
ceph-mgr-modules-core. It shouldn't be just "modules that are enabled by default" but modules that have no extra dependencies and could be enabled by default.
i'd prefer avoid forcing user to install something they don't want. but we could have a meta package (something like ceph-mgr-modules-extra) which depends on all the modules which satisfy this criteria.
Personally, I would like nfs and smb to be enabled by default but we've been cautious in upstream into turning things like that on by default.
Finally, assuming you don't change approaches - would you please split the rpm spec file changes and debian/ changes into two separate patches? Thanks.
sure. on it.
There was a problem hiding this comment.
i'd prefer avoid forcing user to install something they don't want. but we could have a meta package (something like
ceph-mgr-modules-extra) which depends on all the modules which satisfy this criteria.
I like this suggestion. Let's go with that, a "meta package" that has hard requires on all the formerly core packages and then you can manually install that in the Containerfile. I think that's the best of both worlds.
Name nitpick: instead of -extra I suggest something like "-standard" or "-stock" to indicate that these are often installed for a well rounded suite of modules that we want by default in the images.
Thanks!
23a43c2 to
72534fd
Compare
|
v2:
|
|
@phlogistonjohn hi John, mind taking another look? |
phlogistonjohn
left a comment
There was a problem hiding this comment.
Generally looking good, but a few important nitpicks follow:
| Architecture: all | ||
| Depends: ${misc:Depends}, | ||
| Depends: python3-prettytable, | ||
| ${misc:Depends}, |
There was a problem hiding this comment.
Also, it appears some changes to the debian/control file snuck into this rpm spec file focused patch here.
|
@tchaikov, once we've ironed out the remaining issues above I'd like to make sure we run this through some orch suite teuthology tests to ensure the container build remains well behaving. Would you like to do the teuthology runs or would you prefer that I do them? Thanks! |
|
This PR has been added to wip-vshankar-testing-20260513.092143. |
d2aadc6 to
0a66c62
Compare
|
v3:
|
@phlogistonjohn it'd be great if you can help on this! @vshankar hi Venky, i see you included this PR your batch. does it include any test in orch suite? just wanted to avoid repeated work. |
I will run fs suite through it. |
|
@tchaikov - I am running into failed fs suite jobs, which is likely related to this change. See: https://pulpito.ceph.com/vshankar-2026-05-21_15:43:40-fs-wip-vshankar-testing-20260521.121041-distro-default-trial/227116/ From teuthology.log I will try to look into a bit, but you are likely to get to it before me :) |
|
v5:
|
|
This PR has been added to main integration testing by vshankar started 2026-05-26-08:07. |
phlogistonjohn
left a comment
There was a problem hiding this comment.
Generally LGTM. Let me know if you also still want me to do an orch suite run in addition to the testing Venky is doing. Thanks!
|
I have run some preliminary test for this change with PR #69118 and the previously failing tests passes now: https://pulpito.ceph.com/vshankar-2026-05-26_12:12:29-fs-wip-vshankar-testing-20260526.080646-distro-default-trial/237756/ I will be running a broader fs suite run today and report. |
@phlogistonjohn hi John, i ran 3 tests in orch:cephadm. 2 of them failed. but i don't think the test failures were related to this PR.
|
|
Great, I also did a small run of smb stuff that included these patches yesterday (but forgot to comment then): Only 2/15 jobs with errors. Both errors were well known flakes. |
The broader run(*) mostly looks good apart from 11 failed test cases with error
I will not be able to look into this today (probably tomorrow). |
|
@vshankar hi Venky, thanks a lot for the broader test. the failure is actually a regression introduced by this change: |
ceph-mgr-modules-core has historically bundled always-on modules together with optional ones, forcing users to install modules and their dependencies even when they have no use for them. Split each optional module into its own package so users and distributions can install only what they need. ceph-mgr-modules-core is trimmed to the 10 always-on modules defined in src/mon/MgrMonitor.cc: balancer, crash, devicehealth, orchestrator, pg_autoscaler, progress, rbd_support, status, telemetry, volumes. Each optional module now follows the pattern of ceph-mgr-k8sevents and ceph-mgr-rook. New packages carry Breaks/Replaces: ceph-mgr-modules-core (<< 21.0.0) for proper file ownership transfer on upgrade. The split also exposes cross-module Python dependencies: modules co-installed in ceph-mgr-modules-core could freely import each other, but once separated into individual packages those imports require explicit Depends entries. Now the inter-dependencies are properly reflected in debian/control. Signed-off-by: Kefu Chai <[email protected]>
Define %ceph_mgr_module_scripts() to emit the identical %post/%postun pair for each optional mgr module package, replacing the 5 existing hand-written copies (dashboard, diskprediction-local, rook, k8sevents, cephadm) with a single call site per package. Subsequent commits that introduce new mgr module packages can use the macro from the start. Signed-off-by: Kefu Chai <[email protected]>
ceph-mgr-modules-core has historically bundled always-on modules together with optional ones, forcing users to install modules and their dependencies even when they have no use for them. Split each optional module into its own package so users and distributions can install only what they need. ceph-mgr-modules-core is trimmed to the 10 always-on modules defined in src/mon/MgrMonitor.cc: balancer, crash, devicehealth, orchestrator, pg_autoscaler, progress, rbd_support, status, telemetry, volumes. Each optional module now follows the pattern of ceph-mgr-k8sevents and ceph-mgr-rook. New packages carry Obsoletes: ceph-mgr-modules-core < 21.0.0 for proper upgrade path. The split also exposes cross-module Python dependencies: modules co-installed in ceph-mgr-modules-core could freely import each other, but once separated into individual packages those imports require explicit Requires entries. Now the inter-dependencies are expressed properly in ceph.spec.in. Signed-off-by: Kefu Chai <[email protected]>
…port diskprediction-local depends on python3-prettytable and osd-support depends on python3-cherrypy3; both need to be declared explicitly now that these modules are separate packages. Signed-off-by: Kefu Chai <[email protected]>
cli_api was missing from the mgr_modules list, so cmake did not install it into the buildroot, causing RPM packaging to fail with "File not found". Signed-off-by: Kefu Chai <[email protected]>
cli_api is a new module in this release (not previously shipped in ceph-mgr-modules-core), so it gets its own package without any Breaks/Replaces or Obsoletes against the old monolithic package. Signed-off-by: Kefu Chai <[email protected]>
ceph-mgr-modules-core was split into per-module packages so that users only need to install what they actually use. To ease migration for existing deployments that want the full former set, add a meta-package ceph-mgr-modules-standard that pulls in all modules which were previously bundled in ceph-mgr-modules-core. Signed-off-by: Kefu Chai <[email protected]>
The Containerfile uses --setopt=install_weak_deps=False throughout, so ceph-mgr-modules-core (a Recommends of ceph-mgr, not a Requires) and the split-out module packages are not automatically installed. Add them explicitly. Signed-off-by: Kefu Chai <[email protected]>
d87c587 to
10754c6
Compare
|
v6:
|
|
jenkins test windows |
Hi Kefu - thanks a lot of taking a look and fixing it. I will check again. |
You beat me to it Kefu (again). I ran a subset of tests here https://pulpito.ceph.com/?branch=wip-vshankar-testing-20260602.100802 which were failing previously. I think this change is good to merge. I will follow it up with merging #69118. Thank you @tchaikov |
vshankar
left a comment
There was a problem hiding this comment.
Looks good from fs POV.
ceph-mgr-modules-core has historically bundled always-on modules together with optional ones, forcing users to install modules and their dependencies even when they have no use for them. Split each optional module into its own package so users and distributions can install only what they need.
In this change,
ceph-mgr-modules-coreis trimmed to the 10 always-on modules defined insrc/mon/MgrMonitor.cc: balancer, crash, devicehealth, orchestrator, pg_autoscaler, progress, rbd_support, status, telemetry, and volumes.Each optional module now follows the pattern of
ceph-mgr-k8seventsandceph-mgr-rook.Breaks/Replaces: ceph-mgr-modules-core (<< 21.0.0)for proper file ownership transfer on upgrade.Obsoletes: ceph-mgr-modules-core < 21.0.0.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.