Skip to content

debian,rpm: split ceph-mgr-modules-core into per-module packages - #68989

Merged
tchaikov merged 8 commits into
ceph:mainfrom
tchaikov:wip-slim-mgr-module
Jun 5, 2026
Merged

tchaikov merged 8 commits into
ceph:mainfrom
tchaikov:wip-slim-mgr-module

Conversation

@tchaikov

@tchaikov tchaikov commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

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-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, and volumes.

Each optional module now follows the pattern of ceph-mgr-k8sevents and ceph-mgr-rook.

  • debian: new packages carry Breaks/Replaces: ceph-mgr-modules-core (<< 21.0.0) for proper file ownership transfer on upgrade.
  • rpm: new packages carry 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 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
    • 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
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@tchaikov
tchaikov requested a review from a team as a code owner May 19, 2026 04:11
@tchaikov
tchaikov force-pushed the wip-slim-mgr-module branch from a702e67 to 363143f Compare May 19, 2026 04:13
@tchaikov
tchaikov requested a review from vshankar May 19, 2026 04:14
@tchaikov
tchaikov force-pushed the wip-slim-mgr-module branch from 363143f to d6f9305 Compare May 19, 2026 05:25
@tchaikov
tchaikov force-pushed the wip-slim-mgr-module branch 2 times, most recently from cd26f84 to bfa39fa Compare May 19, 2026 05:27
@tchaikov

tchaikov commented May 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Comment thread ceph.spec.in
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}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@tchaikov
tchaikov force-pushed the wip-slim-mgr-module branch 3 times, most recently from 23a43c2 to 72534fd Compare May 19, 2026 15:03
@tchaikov

Copy link
Copy Markdown
Contributor Author

v2:

  • split the commit splitting ceph-mgr-module-core into per-module packages into two: one for debian, the other for rpm
  • add ceph-mgr-modules-standard meta-package
  • update Containerfile to include ceph-mgr-modules-standard

@tchaikov

Copy link
Copy Markdown
Contributor Author

@tchaikov

Copy link
Copy Markdown
Contributor Author

@phlogistonjohn hi John, mind taking another look?

@phlogistonjohn phlogistonjohn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looking good, but a few important nitpicks follow:

Comment thread debian/control Resolved
Comment thread debian/control Resolved
Comment thread ceph.spec.in Resolved
Comment thread ceph.spec.in Resolved
Comment thread debian/control
Comment on lines 306 to +308
Architecture: all
Depends: ${misc:Depends},
Depends: python3-prettytable,
${misc:Depends},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it appears some changes to the debian/control file snuck into this rpm spec file focused patch here.

@phlogistonjohn

Copy link
Copy Markdown
Contributor

@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!

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vshankar

Copy link
Copy Markdown
Contributor

This PR has been added to wip-vshankar-testing-20260513.092143.

@tchaikov
tchaikov force-pushed the wip-slim-mgr-module branch 2 times, most recently from d2aadc6 to 0a66c62 Compare May 21, 2026 12:59
@tchaikov

Copy link
Copy Markdown
Contributor Author

v3:

  • drop CIFS from package descriptions
  • fix the "some changes to the debian/control file snuck into this rpm spec file focused patch" issue
  • extract the %post and %postun into an rpm macro

@tchaikov

Copy link
Copy Markdown
Contributor Author

@tchaikov

tchaikov commented May 21, 2026 •

Copy link
Copy Markdown
Contributor Author

@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!

@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.

@vshankar

Copy link
Copy Markdown
Contributor

@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.

@vshankar

Copy link
Copy Markdown
Contributor

@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

2026-05-22T07:06:59.188 INFO:teuthology.orchestra.run.trial023.stderr:Traceback (most recent call last):
2026-05-22T07:06:59.188 INFO:teuthology.orchestra.run.trial023.stderr:  File "<frozen runpy>", line 198, in _run_module_as_main
2026-05-22T07:06:59.188 INFO:teuthology.orchestra.run.trial023.stderr:  File "<frozen runpy>", line 88, in _run_code
2026-05-22T07:06:59.189 INFO:teuthology.orchestra.run.trial023.stderr:  File "/tmp/tmpx07s29rr.cephadm.build/app/__main__.py", line 5747, in <module>
2026-05-22T07:06:59.189 INFO:teuthology.orchestra.run.trial023.stderr:  File "/tmp/tmpx07s29rr.cephadm.build/app/__main__.py", line 5735, in main
2026-05-22T07:06:59.189 INFO:teuthology.orchestra.run.trial023.stderr:  File "/tmp/tmpx07s29rr.cephadm.build/app/__main__.py", line 2767, in _rollback
2026-05-22T07:06:59.189 INFO:teuthology.orchestra.run.trial023.stderr:  File "/tmp/tmpx07s29rr.cephadm.build/app/__main__.py", line 461, in _default_image
2026-05-22T07:06:59.189 INFO:teuthology.orchestra.run.trial023.stderr:  File "/tmp/tmpx07s29rr.cephadm.build/app/__main__.py", line 3016, in command_bootstrap
2026-05-22T07:06:59.189 INFO:teuthology.orchestra.run.trial023.stderr:  File "/tmp/tmpx07s29rr.cephadm.build/app/__main__.py", line 2520, in enable_cephadm_mgr_module
2026-05-22T07:06:59.189 INFO:teuthology.orchestra.run.trial023.stderr:  File "/tmp/tmpx07s29rr.cephadm.build/app/__main__.py", line 2952, in cli
2026-05-22T07:06:59.189 INFO:teuthology.orchestra.run.trial023.stderr:  File "/tmp/tmpx07s29rr.cephadm.build/app/cephadmlib/container_types.py", line 435, in run
2026-05-22T07:06:59.189 INFO:teuthology.orchestra.run.trial023.stderr:  File "/tmp/tmpx07s29rr.cephadm.build/app/cephadmlib/call_wrappers.py", line 307, in call_throws
2026-05-22T07:06:59.189 INFO:teuthology.orchestra.run.trial023.stderr:RuntimeError: Failed command: /bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=quay.ceph.io/ceph-ci/ceph:b7a6e268654ae7bbda760d0e463ba1870913dd0c -e NODE_NAME=trial023 -v /var/log/ceph/c381a984-55ac-11f1-86a5-d404e6e7d460:/var/log/ceph:z -v /tmp/ceph-tmp77ue6kr3:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmp_aagdj02:/etc/ceph/ceph.conf:z quay.ceph.io/ceph-ci/ceph:b7a6e268654ae7bbda760d0e463ba1870913dd0c orch set backend cephadm: Error ENOENT: Module not found
2026-05-22T07:06:59.189 INFO:teuthology.orchestra.run.trial023.stderr:
2026-05-22T07:06:59.205 DEBUG:teuthology.orchestra.run:got remote process result: 1

I will try to look into a bit, but you are likely to get to it before me :)

@tchaikov

tchaikov commented May 26, 2026 •

Copy link
Copy Markdown
Contributor Author

v5:

  • define the macro in an earlier commit to reduce the code churn
  • fix the "some changes to the debian/control file snuck into this rpm spec file focused patch" issue again

@tchaikov

Copy link
Copy Markdown
Contributor Author

@vshankar

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by vshankar started 2026-05-26-08:07.

@phlogistonjohn phlogistonjohn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@vshankar

Copy link
Copy Markdown
Contributor

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.

@tchaikov

tchaikov commented May 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Let me know if you also still want me to do an orch suite run in addition to the testing Venky is doing. Thanks!

@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.

  • https://pulpito.ceph.com/kchai-2026-05-28_13:16:07-orch:cephadm-wip-pr-68989-kefu-7-distro-default-trial/: failed due to
    2026-05-28T13:45:43.447 ERROR:tasks.cephfs.fuse_mount:process failed to terminate after unmount. This probably indicates a bug within ceph-fuse.
    2026-05-28T13:45:43.447 ERROR:teuthology.run_tasks:Manager failed: ceph-fuse
    Traceback (most recent call last):
      File "/home/teuthworker/src/git.ceph.com_teuthology_b520119aa87661f2b41f007b95465da7b7165008/teuthology/run_tasks.py", line 160, in run_tasks
        suppress = manager.__exit__(*exc_info)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/contextlib.py", line 144, in __exit__
        next(self.gen)
      File "/home/teuthworker/src/git.ceph.com_ceph-c_d87c587481932dd85d681788f64fffdf31c022b7/qa/tasks/ceph_fuse.py", line 248, in task
        mount.umount_wait()
      File "/home/teuthworker/src/git.ceph.com_ceph-c_d87c587481932dd85d681788f64fffdf31c022b7/qa/tasks/cephfs/fuse_mount.py", line 402, in umount_wait
        run.wait([self.fuse_daemon], timeout)
      File "/home/teuthworker/src/git.ceph.com_teuthology_b520119aa87661f2b41f007b95465da7b7165008/teuthology/orchestra/run.py", line 479, in wait
        check_time()
      File "/home/teuthworker/src/git.ceph.com_teuthology_b520119aa87661f2b41f007b95465da7b7165008/teuthology/contextutil.py", line 134, in __call__
        raise MaxWhileTries(error_msg)
    teuthology.exceptions.MaxWhileTries: reached maximum tries (50) after waiting for 300 seconds
    
    and
       2026-05-28T13:30:48.978 DEBUG:teuthology.orchestra.run.trial028:> test -s /home/ubuntu/cephtest/cephadm && test $(stat -c%s /home/ubuntu/cephtest/cephadm) -gt 1000 && chmod +x /home/ubuntu/cephtest/cephadm
    2026-05-28T13:30:48.995 DEBUG:teuthology.orchestra.run:got remote process result: 1
    2026-05-28T13:30:48.995 ERROR:teuthology.contextutil:Saw exception from nested tasks
    Traceback (most recent call last):
      File "/home/teuthworker/src/git.ceph.com_teuthology_b520119aa87661f2b41f007b95465da7b7165008/teuthology/contextutil.py", line 30, in nested
        vars.append(enter())
                    ^^^^^^^
      File "/usr/lib/python3.12/contextlib.py", line 137, in __enter__
        return next(self.gen)
               ^^^^^^^^^^^^^^
      File "/home/teuthworker/src/git.ceph.com_ceph-c_d87c587481932dd85d681788f64fffdf31c022b7/qa/tasks/cephadm.py", line 153, in download_cephadm
        _fetch_cephadm_from_github(ctx, config, ref)
      File "/home/teuthworker/src/git.ceph.com_ceph-c_d87c587481932dd85d681788f64fffdf31c022b7/qa/tasks/cephadm.py", line 248, in _fetch_cephadm_from_github
        ctx.cluster.run(
      File "/home/teuthworker/src/git.ceph.com_teuthology_b520119aa87661f2b41f007b95465da7b7165008/teuthology/orchestra/cluster.py", line 85, in run
        procs = [remote.run(**kwargs, wait=_wait) for remote in remotes]
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/teuthworker/src/git.ceph.com_teuthology_b520119aa87661f2b41f007b95465da7b7165008/teuthology/orchestra/remote.py", line 596, in run
        r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/teuthworker/src/git.ceph.com_teuthology_b520119aa87661f2b41f007b95465da7b7165008/teuthology/orchestra/run.py", line 461, in run
        r.wait()
      File "/home/teuthworker/src/git.ceph.com_teuthology_b520119aa87661f2b41f007b95465da7b7165008/teuthology/orchestra/run.py", line 161, in wait
        self._raise_for_status()
      File "/home/teuthworker/src/git.ceph.com_teuthology_b520119aa87661f2b41f007b95465da7b7165008/teuthology/orchestra/run.py", line 181, in _raise_for_status
        raise CommandFailedError(
    teuthology.exceptions.CommandFailedError: Command failed on trial028 with status 1: 'test -s /home/ubuntu/cephtest/cephadm && test $(stat -c%s /home/ubuntu/cephtest/cephadm) -gt 1000 && chmod +x /home/ubuntu/cephtest/cephadm'
    
  • https://pulpito.ceph.com/kchai-2026-05-28_13:45:01-orch:cephadm:smoke-small-wip-pr-68989-kefu-7-distro-default-trial/ : passed

@phlogistonjohn

Copy link
Copy Markdown
Contributor

Great, I also did a small run of smb stuff that included these patches yesterday (but forgot to comment then):
https://pulpito-ng.ceph.com/runs/phlogistonjohn-2026-05-27_19:27:44-orch-wip-phlogistonjohn-testing-1-2026-05-27-1255-distro-default-trial

Only 2/15 jobs with errors. Both errors were well known flakes.

@vshankar

vshankar commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

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.

The broader run(*) mostly looks good apart from 11 failed test cases with error

mgr.y (mgr.14105) 1 : cluster [ERR] Failed to load ceph-mgr modules: rook" in cluster log

I will not be able to look into this today (probably tomorrow).

(*): https://pulpito.ceph.com/vshankar-2026-05-27_05:03:26-fs-wip-vshankar-testing-20260526.080646-distro-default-trial/

@tchaikov

tchaikov commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

@vshankar hi Venky, thanks a lot for the broader test. the failure is actually a regression introduced by this change:

2026-05-27T09:19:57.527+0000 7faecea2cfc0  1 mgr[py] Loading python module 'rook'
2026-05-27T09:19:57.527+0000 7faecea2cfc0 -1 mgr[py] Loading module rook in main interpreter
2026-05-27T09:19:57.618+0000 7faecea2cfc0 -1 mgr[py] Module not found: 'rook'
2026-05-27T09:19:57.618+0000 7faecea2cfc0 -1 mgr[py] Traceback (most recent call last):
  File "/usr/share/ceph/mgr/rook/__init__.py", line 5, in <module>
    from .module import RookOrchestrator
  File "/usr/share/ceph/mgr/rook/module.py", line 50, in <module>
    from .rook_cluster import RookCluster
  File "/usr/share/ceph/mgr/rook/rook_cluster.py", line 41, in <module>
    from nfs.cluster import create_ganesha_pool
ModuleNotFoundError: No module named 'nfs.cluster'

2026-05-27T09:19:57.618+0000 7faecea2cfc0 -1 mgr[py] Class not found in module 'rook'
2026-05-27T09:19:57.618+0000 7faecea2cfc0 -1 mgr[py] Error loading module 'rook': (2) No such file or directory

tchaikov added 8 commits June 1, 2026 16:00
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]>
@tchaikov
tchaikov force-pushed the wip-slim-mgr-module branch from d87c587 to 10754c6 Compare June 1, 2026 08:00
@tchaikov

tchaikov commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

v6:

  • add inter-dependencies between mgr modules in debian/control and ceph.spec.in.

@tchaikov

tchaikov commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@vshankar

vshankar commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

@vshankar hi Venky, thanks a lot for the broader test. the failure is actually a regression introduced by this change:

2026-05-27T09:19:57.527+0000 7faecea2cfc0  1 mgr[py] Loading python module 'rook'
2026-05-27T09:19:57.527+0000 7faecea2cfc0 -1 mgr[py] Loading module rook in main interpreter
2026-05-27T09:19:57.618+0000 7faecea2cfc0 -1 mgr[py] Module not found: 'rook'
2026-05-27T09:19:57.618+0000 7faecea2cfc0 -1 mgr[py] Traceback (most recent call last):
  File "/usr/share/ceph/mgr/rook/__init__.py", line 5, in <module>
    from .module import RookOrchestrator
  File "/usr/share/ceph/mgr/rook/module.py", line 50, in <module>
    from .rook_cluster import RookCluster
  File "/usr/share/ceph/mgr/rook/rook_cluster.py", line 41, in <module>
    from nfs.cluster import create_ganesha_pool
ModuleNotFoundError: No module named 'nfs.cluster'

2026-05-27T09:19:57.618+0000 7faecea2cfc0 -1 mgr[py] Class not found in module 'rook'
2026-05-27T09:19:57.618+0000 7faecea2cfc0 -1 mgr[py] Error loading module 'rook': (2) No such file or directory

Hi Kefu - thanks a lot of taking a look and fixing it. I will check again.

@tchaikov

tchaikov commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor Author

@vshankar

vshankar commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from fs POV.

@tchaikov
tchaikov merged commit 0ac9881 into ceph:main Jun 5, 2026
6 checks passed
@tchaikov
tchaikov deleted the wip-slim-mgr-module branch June 5, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants