Skip to content

umbrella: mgr/cephadm: normalize inventory and host-cache keys at load time to fix upgrade regression - #74499

Open
Shubhaj1810 wants to merge 2 commits into
ceph:umbrellafrom
Shubhaj1810:backport-70346-umbrella
Open

Shubhaj1810 wants to merge 2 commits into
ceph:umbrellafrom
Shubhaj1810:backport-70346-umbrella

Conversation

@Shubhaj1810

@Shubhaj1810 Shubhaj1810 commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

@Shubhaj1810
Shubhaj1810 requested a review from a team as a code owner November 30, 2026 11:25
@github-actions github-actions Bot added this to the umbrella milestone Nov 30, 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

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

⚠️ 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 4002f48 (cherry-pick of 51c9737)

Affected File(s)

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.


⚠️ 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 the releng-audit-fail Release engineering: failed backport verification audit. label Nov 30, 2026
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephadm common pybind releng-audit-fail Release engineering: failed backport verification audit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant