Skip to content

tentacle: cephadm: pass OSD spec config during OSD creation - #72572

Open
anthonyeleven wants to merge 1 commit into
ceph:tentaclefrom
anthonyeleven:wip-81617-tentacle
Open

anthonyeleven wants to merge 1 commit into
ceph:tentaclefrom
anthonyeleven:wip-81617-tentacle

Conversation

@anthonyeleven

@anthonyeleven anthonyeleven commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

backport tracker: https://tracker.ceph.com/issues/81617


backport of #70851
parent tracker: https://tracker.ceph.com/issues/81616

Without this, an OSD spec's config never reaches the OSDs it creates on tentacle, so mkfs-time options such as bluestore_min_alloc_size cannot be set per spec. Cherry-pick of the PR's single commit, with one conflict in src/pybind/mgr/cephadm/services/osd.py: validate_encryption() from #73436 sits where the new methods go; kept both, in main's order. The added and removed lines match main's; no follow-up fixes on main.

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.

Assisted by Claude Opus-5.5

@anthonyeleven anthonyeleven added this to the tentacle milestone Oct 12, 2026
@github-actions github-actions Bot added pybind releng-audit-pass Release engineering: passed backport verification audit. labels Oct 12, 2026
@anthonyeleven

Copy link
Copy Markdown
Contributor Author

Adams: I went to implement specifying bluestore_min_alloc_size in an orch osd service spec, and found that it had already been implemented and merged in August, but with no associated tracker.

I created a tracker in accordance with the new backport regime and have attempted to set up backports of it to Umbrella an Tentacle. As the new backport process bewilders me, please advise if I've not done this properly. I need this to be in upcoming Umbrella and Tentacle releases.

@anthonyeleven
anthonyeleven marked this pull request as ready for review October 12, 2026 01:16
@anthonyeleven
anthonyeleven requested a review from a team as a code owner October 12, 2026 01:16
@anthonyeleven
anthonyeleven requested a review from adk3798 October 17, 2026 03:30
@yuriw

yuriw commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri14-testing-20261021.151926-tentacle.

@anthonyeleven

Copy link
Copy Markdown
Contributor Author

This PR has been added to wip-yuri14-testing-20261021.151926-tentacle.

As I haven't done many if any code backports, please help me understand if there will be more for me to do, or if you will merge once the batch passes, and Patrick will automagically pick up the backports for the next T and U releases?

@anthonyeleven

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

@anthonyeleven

Copy link
Copy Markdown
Contributor Author

The ceph dashboard cephadm e2e tests failure looks unrelated to this backport.

@anthonyeleven

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

@sseshasa

sseshasa commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

@anthonyeleven

Copy link
Copy Markdown
Contributor Author

@adk3798 the same ask for the tentacle backport: Orch and RADOS approved in QA (https://tracker.ceph.com/projects/rados/wiki/TENTACLE#httpstrackercephcomissues81966), and it's a clean cherry-pick of #70851.

@yuriw yuriw added needs-merge QA-approved, awaiting merge window wip-yuri14-testing and removed wip-yuri14-testing needs-merge QA-approved, awaiting merge window labels Nov 11, 2026
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

OSD spec config is stored under the service name, but concrete OSD
daemons do not inherit it.

Validate OSD spec config using config metadata and pass valid options
through the temporary ceph-volume config so creation-time settings are
available during OSD formatting.

Apply runtime-updatable options to the concrete osd.N before starting
the daemon.

Signed-off-by: Kushal Deb <[email protected]>
(cherry picked from commit 03873dd)

Conflicts:
	src/pybind/mgr/cephadm/services/osd.py
	- validate_encryption() from 484b00d sits where the new methods
	  and the new create_from_spec() line go; kept both, in main's order
@github-actions github-actions Bot removed the releng-audit-pass Release engineering: passed backport verification audit. label Nov 25, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #72572 SOURCE PR SOURCE STATUS
23ed325 cephadm: apply OSD spec config to newly created OSDs PR #70851 03873dd cephadm: apply OSD spec config to newly created OSDs

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport 23ed325 (cherry-pick of 03873dd)

Affected File(s)

Range Diff

Click to expand
--- Original (03873ddf)
+++ Backport (23ed3256)
@@ -11,3 +11,9 @@
 the daemon.
 
 Signed-off-by: Kushal Deb <[email protected]>
+(cherry picked from commit 03873ddf6886bfd48754c875cfbdc478af20f3b5)
+
+Conflicts:
+	src/pybind/mgr/cephadm/services/osd.py
+	- validate_encryption() from 484b00dfbcb sits where the new methods
+	  and the new create_from_spec() line go; kept both, in main's order

================================================================================
RANGE DIFF
================================================================================

1:  03873ddf688 ! 1:  23ed3256af5 cephadm: apply OSD spec config to newly created OSDs
    @@ Commit message
         the daemon.
     
         Signed-off-by: Kushal Deb <[email protected]>
    +    (cherry picked from commit 03873ddf6886bfd48754c875cfbdc478af20f3b5)
    +
    +    Conflicts:
    +            src/pybind/mgr/cephadm/services/osd.py
    +            - validate_encryption() from 484b00dfbcb sits where the new methods
    +              and the new create_from_spec() line go; kept both, in main's order
     
      ## src/pybind/mgr/cephadm/services/osd.py ##
     @@ src/pybind/mgr/cephadm/services/osd.py: from ceph.utils import datetime_to_str, str_to_datetime
    @@ src/pybind/mgr/cephadm/services/osd.py: from ceph.utils import datetime_to_str,
      from ceph.utils import datetime_now
      from orchestrator import OrchestratorError, DaemonDescription
      from mgr_module import MonCommandFailed
    -@@ src/pybind/mgr/cephadm/services/osd.py: logger = logging.getLogger(__name__)
    - class OSDService(CephService):
    -     TYPE = 'osd'
    +@@ src/pybind/mgr/cephadm/services/osd.py: class OSDService(CephService):
    +                 'Raw encrypted OSD deployment through cephadm requires tpm2: true. '
    +                 'Use method: lvm for encryption without TPM2.')
      
     +    def _apply_osd_config_to_daemon(
     +        self,
    @@ src/pybind/mgr/cephadm/services/osd.py: logger = logging.getLogger(__name__)
              """
              :param force_apply: If True, do not check osdspec_needs_apply(). Used by
     @@ src/pybind/mgr/cephadm/services/osd.py: class OSDService(CephService):
    -             in inventory timestamps (and the check only compares timestamps, not spec content).
              """
              logger.debug(f"Processing DriveGroup {drive_group}")
    +         self.validate_encryption(drive_group)
     +        creation_cfg, post_create_cfg = self._get_osd_spec_configs(drive_group)
              osd_id_claims = OsdIdClaims(self.mgr)
              if osd_id_claims.get():

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added releng-audit-fail Release engineering: failed backport verification audit. and removed needs-rebase labels Nov 25, 2026
@anthonyeleven

Copy link
Copy Markdown
Contributor Author

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @anthonyeleven.

View workflow run

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.

4 participants