Bug #74299
openceph orch : lowercase hostnames
0%
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