Repository navigation
tentacle: cephadm: pass OSD spec config during OSD creation - #72572
anthonyeleven wants to merge 1 commit into
Conversation
|
Adams: I went to implement specifying 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. |
|
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? |
|
jenkins test dashboard cephadm |
|
The
|
|
jenkins test dashboard cephadm |
|
@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. |
|
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
4eb6a73 to
23ed325
Compare
There was a problem hiding this comment.
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
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)
src/pybind/mgr/cephadm/services/osd.py
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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
/audit override |
|
✅ Audit Override Applied by @anthonyeleven. |
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
confignever reaches the OSDs it creates on tentacle, so mkfs-time options such asbluestore_min_alloc_sizecannot 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
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.
Assisted by Claude Opus-5.5