Bug #49280
Updated by Sebastian Wagner about 3 years ago
If the bare/short hostname is a simple id (example: 2.storage.domain): ---- <pre> root@1.storage.domain:~# ceph orch ls Error EINVAL: DaemonDescription: Cannot calculate service_id: daemon_id='23' hostname='2.storage.domain' </pre> ---- This part of the code will return an error : (https://github.com/ceph/ceph/blob/master/src/pybind/mgr/orchestrator/_interface.py#L1369) ---- <pre><code class="python"> elif host in self.daemon_id: # daemon_id == "service_id.host" # daemon_id == "service_id.host.random" pre, post = self.daemon_id.rsplit(host, 1) if not pre.endswith('.'): # '.' sep missing at front of host raise err elif post and not post.startswith('.'): # '.' sep missing at end of host raise err return pre[:-1] </code></pre> ----