Skip to content

ceph.spec.in,debian: package cli_api mgr module with mgr core - #68969

Closed
vshankar wants to merge 1 commit into
ceph:mainfrom
vshankar:wip-76651
Closed

vshankar wants to merge 1 commit into
ceph:mainfrom
vshankar:wip-76651

Conversation

@vshankar

Copy link
Copy Markdown
Contributor

Fixes: http://tracker.ceph.com/issues/76651

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.

@vshankar
vshankar requested a review from a team as a code owner May 18, 2026 05:39
@vshankar vshankar added the cephfs Ceph File System label May 18, 2026
@vshankar

Copy link
Copy Markdown
Contributor Author

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

Comment thread debian/ceph-mgr-modules-core.install Outdated
usr/share/ceph/mgr/test_orchestrator
usr/share/ceph/mgr/volumes
usr/share/ceph/mgr/nvmeof
usr/share/ceph/mgr/cli_api

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.

could you please maintain alphabetical order for modules?

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.

if this module is not always enabled, we should not package it into mgr-modules-core, and it deserves a dedicated package.

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.

My understanding was this list includes modules which are not always enabled. mgr/mirroring is similar. What am I missing?

@tchaikov tchaikov May 18, 2026 •

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.

Thanks for the clarification -- I appreciate you pointing out the similarity with mgr/mirroring.

My concern comes from what mgr-modules-core is meant to be. In ceph.spec:

Summary: Ceph Manager modules which are always enabled

So if the current list already includes some modules that aren't always enabled, then that's actually a bug in the spec -- not a pattern we want to extend.

To put it another way: imagine someone said,

The ceph-osd code is buggy, and my PR has some race conditions -- so it's fine to merge, right?

We probably wouldn't accept that logic =)

So I think we should stick to the intended meaning of the package: only modules that are always enabled belong in mgr-modules-core. If this module is optional, it deserves its own subpackage.

does that help clarify? happy to discuss further!

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.

Thanks for the clarification -- I appreciate you pointing out the similarity with mgr/mirroring.

My concern comes from what mgr-modules-core is meant to be. In ceph.spec:

Summary: Ceph Manager modules which are always enabled

So if the current list already includes some modules that aren't always enabled, then that's actually a bug in the spec -- not a pattern we want to extend.

ha! I never looked at the spec closely. Now I see mgr-modules-core is intended to be always-on modules, but the files list has much more than that. Not sure if its intention changed over time, but the understanding remained status-quo.

To put it another way: imagine someone said,

The ceph-osd code is buggy, and my PR has some race conditions -- so it's fine to merge, right?

We probably wouldn't accept that logic =)

So I think we should stick to the intended meaning of the package: only modules that are always enabled belong in mgr-modules-core. If this module is optional, it deserves its own subpackage.

does that help clarify? happy to discuss further!

I agree. My question is: Would we want to fix it in this change itself?

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 don't think we need to fix the existing packaging issues in this change. what we can do, though, is probably to get it right in this PR:

  1. check if cli_api is always enabled -- i did: it's not.
  2. and package cli_api properly

i will try to fix it in a follow up change -- to split mgr-modules-core package into smaller pieces. as we should not force users to pay for install what they don't use.

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.

Sounds good. Thx @tchaikov

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.

created #68989

Comment thread ceph.spec.in Outdated
%{_datadir}/ceph/mgr/test_orchestrator
%{_datadir}/ceph/mgr/volumes
%{_datadir}/ceph/mgr/nvmeof
%{_datadir}/ceph/mgr/cli_api

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.

ditto

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

@vshankar i think i failed to communicate my suggestion properly. i still think we should package cli_api in a separate package. but we don't need to fix the existing packaging.

@tchaikov

Copy link
Copy Markdown
Contributor

@vshankar i think i failed to communicate my suggestion properly. i still think we should package cli_api in a separate package. but we don't need to fix the existing packaging.

@vshankar i created #68989 in hope to facilitate this. the second commit in that pull request introduces cli-api mgr-module.

@vshankar

Copy link
Copy Markdown
Contributor Author

@vshankar i think i failed to communicate my suggestion properly. i still think we should package cli_api in a separate package. but we don't need to fix the existing packaging.

No worry. It's likely me who misunderstood.

@vshankar

Copy link
Copy Markdown
Contributor Author

@vshankar i think i failed to communicate my suggestion properly. i still think we should package cli_api in a separate package. but we don't need to fix the existing packaging.

@vshankar i created #68989 in hope to facilitate this. the second commit in that pull request introduces cli-api mgr-module.

Fantastic. I will review that PR and close this one since the commits are included.

@vshankar

Copy link
Copy Markdown
Contributor Author

Closing in favour of #68989

@vshankar vshankar closed this May 21, 2026
@vshankar

Copy link
Copy Markdown
Contributor Author

This PR has been removed from wip-vshankar-testing-20260513.092143.

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.

2 participants