Repository navigation
umbrella: mgr/cephadm: normalize inventory and host-cache keys at load time to fix upgrade regression - #74499
Shubhaj1810 wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Automated Redmine Linkage Audit
The following tracking irregularities were found:
- Missing PR Link: Backport tracker #83695 has no 'Pull Request ID' field set. Please link it to PR #74499.
Commit Parity Visualizer
| BACKPORT PR #74499 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 4002f48 mgr/cephadm: normalize inventory and host-cache keys at load time | PR #70346 | 51c9737 mgr/cephadm: normalize inventory and host-cache keys at load time |
| 18255ab mgr/cephadm: preserve original hostnames where required | 9e49758 mgr/cephadm: preserve original hostnames where required |
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 4002f48 (cherry-pick of 51c9737)
Affected File(s)
src/pybind/mgr/cephadm/ssh.py
Range Diff
Click to expand
--- Original (51c97373)
+++ Backport (4002f48f)
@@ -11,3 +11,4 @@
Fixes: https://tracker.ceph.com/issues/78426
Signed-off-by: Shubha Jain <[email protected]>
+(cherry picked from commit 51c97373d5d21f6eace00289217f3b26a21be29e)
================================================================================
RANGE DIFF
================================================================================
1: 51c97373d5d ! 1: 4002f48f9eb mgr/cephadm: normalize inventory and host-cache keys at load time
@@ Commit message
Fixes: https://tracker.ceph.com/issues/78426
Signed-off-by: Shubha Jain <[email protected]>
+ (cherry picked from commit 51c97373d5d21f6eace00289217f3b26a21be29e)
## src/pybind/mgr/cephadm/inventory.py ##
@@ src/pybind/mgr/cephadm/inventory.py: from typing import TYPE_CHECKING, Dict, List, Iterator, Optional, Any, Tuple, Se
@@ src/pybind/mgr/cephadm/ssh.py
@@ src/pybind/mgr/cephadm/ssh.py: from contextlib import contextmanager
from io import StringIO
from shlex import quote
- from typing import TYPE_CHECKING, Optional, List, Tuple, Dict, Iterator, TypeVar, Awaitable, Union, Any
+ from typing import TYPE_CHECKING, Optional, List, Tuple, Dict, Iterator, TypeVar, Awaitable, Union
+from ceph.deployment.hostspec import normalize_hostname
from orchestrator import OrchestratorError
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.
Normalize persisted hostnames when loading the inventory and host cache so existing clusters continue to work after hostname normalization changes. Centralize hostname normalization in the inventory/cache layer and replace ad-hoc lowercase conversions with normalize_hostname() where appropriate. This keeps hostname handling consistent while avoiding duplicate normalization in higher-level callers. Fixes: https://tracker.ceph.com/issues/78426 Signed-off-by: Shubha Jain <[email protected]> (cherry picked from commit 51c9737) Conflicts: src/pybind/mgr/cephadm/ssh.py - umbrella typing import does not include Any; keep that import and add normalize_hostname from the original commit
Retain the original hostname for CRUSH removal operations so the commands continue to match existing CRUSH bucket names after hostname normalization. Also normalize DaemonDescription.hostname when loading the persisted host cache to ensure scheduler hostname comparisons remain consistent with normalized inventory and HostCache entries. Fixes: https://tracker.ceph.com/issues/78426 Signed-off-by: Shubha Jain <[email protected]> (cherry picked from commit 9e49758)
18255ab to
1514415
Compare
backport tracker: https://tracker.ceph.com/issues/83695
possibly a backport of #70346
parent tracker: https://tracker.ceph.com/issues/78426
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh