Project

General

Profile

Actions

Bug #74299

open
SJ

ceph orch : lowercase hostnames

Bug #74299: ceph orch : lowercase hostnames

Added by SHUBHA JAIN 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

Issue:
Service placement using ceph orch apply could fail with Unknown hosts when a mixed-case hostname (e.g. Ceph-Node-00) was specified in a service spec, while the host was registered in lowercase (ceph-node-00).

Root Cause:
Hostname handling in cephadm/orchestrator was case-sensitive in some ingest and matching paths, leading to inconsistent behavior between host registration and service placement.

Fix:

Normalize hostnames to lowercase at ingest (HostSpec and placement specs)

Ensure hostname comparisons during placement and scheduling are case-insensitive

Align behavior across CLI input, YAML service specs, and scheduling logic

Testing / Verification:

Added unit tests covering mixed-case hostname scenarios

Verified that service placement succeeds when using mixed-case hostnames in service specs

Confirmed hostname normalization behavior at runtime

Status:
Fix implemented and submitted upstream via PR.

No data to display

Actions

Also available in: PDF Atom