Skip to content

doc: Document ceph-mgr module configuration options - #64161

Merged
tchaikov merged 1 commit into
ceph:mainfrom
tchaikov:wip-doc-mgr-module-config
Jun 25, 2025
Merged

tchaikov merged 1 commit into
ceph:mainfrom
tchaikov:wip-doc-mgr-module-config

Conversation

@tchaikov

@tchaikov tchaikov commented Jun 25, 2025 •

Copy link
Copy Markdown
Contributor

Add comprehensive documentation for defining configuration options in ceph-mgr modules, including all supported properties and their usage.

Previously, the documentation did not explain how to define ceph-mgr module configuration options, despite subtle differences from other Ceph components. This change documents all supported Option properties, their types, and provides clear examples to help module developers properly configure their options.

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

@tchaikov
tchaikov requested a review from a team as a code owner June 25, 2025 04:21
Comment thread doc/dev/config.rst Outdated

@bluikko bluikko Jun 25, 2025 •

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.

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 going to try to fix it. I think it can be fixed with underscores.

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.

Oh I'm sorry I should have been more explicit. The underscore by itself on line 100 should probably be just an empty line?

I tried to make a "suggestion" but couldn't see how to make a suggestion for just an empty line.

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.

(20 minutes later) Actually, an underscore (the lone underscore on line 100) had to be removed.

Comment thread doc/mgr/modules.rst Outdated

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.

Whitespace in the format string looks confusing to me, propose

Suggested change
* ``secs`` - timespan in format ``"<number> <unit>..."``, e.g., ``"3h 2m 1s"`` or ``"3weeks"``
* ``secs`` - timespan in format ``"<number><unit> ..."``, e.g., ``"3h 2m 1s"`` or ``"3weeks"``

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 pointing this out. the space between the number and unit is actually optional. but for the sake of simplicity, let's drop it as you suggest.

Add comprehensive documentation for defining configuration options in
ceph-mgr modules, including all supported properties and their usage.

Previously, the documentation did not explain how to define ceph-mgr
module configuration options, despite subtle differences from other Ceph
components. This change documents all supported Option properties, their
types, and provides clear examples to help module developers properly
configure their options.

Signed-off-by: Kefu Chai <[email protected]>
@tchaikov
tchaikov force-pushed the wip-doc-mgr-module-config branch from 21a9c37 to 121192f Compare June 25, 2025 06:18
@tchaikov

Copy link
Copy Markdown
Contributor Author

changelog

  • remove the _ line, which broke the link
  • remove the space between the number and unit to be more consistent with the example.

@tchaikov
tchaikov requested review from bluikko and zdover23 June 25, 2025 06:18
@zdover23

Copy link
Copy Markdown
Contributor

As soon as the docs build is finished, I'll review this and merge it and backport it and then take another look at a batch of mgr-related confval-containing PRs that I made earlier this week, keeping these guidelines in mind.

@zdover23 zdover23 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. What do you say, @bluikko?

@tchaikov
tchaikov merged commit 0fe0789 into ceph:main Jun 25, 2025
@zdover23 zdover23 mentioned this pull request Jun 26, 2025
4 of 14 tasks
@tchaikov
tchaikov deleted the wip-doc-mgr-module-config branch June 26, 2025 21:55
@zdover23

zdover23 commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

#64395 - Tentacle backport
#64396 - Squid backport
#64397 - Reef backport

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