Support #46547
cephadm: Exception adding host via FQDN if host was already added
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
cephadm
Target version:
-
% Done:
0%
Tags:
low-hanging-fruit
Reviewed:
Affected Versions:
Pull request ID:
Description
To reproduce you need nodes that have a subdomain (not like in current Vagrantfile). I used sesdev to find this issue.
master:~ # ceph orch host add node1.pacific.test Error ENOENT: New host node1.pacific.test (node1.pacific.test) failed check: [ 'INFO:cephadm:podman|docker (/usr/bin/podman) is present', 'INFO:cephadm:systemctl is present', 'INFO:cephadm:lvcreate is present', 'INFO:cephadm:Unit chronyd.service is enabled and running', 'INFO:cephadm:Hostname "node1.pacific.test" matches what is expected.', 'ERROR: hostname "node1" does not match expected hostname "node1.pacific.test"' ]
With `ceph -W cephadm` one observes
2020-07-15T13:24:21.159126+0200 mgr.node1.zybwkb [ERR] _Promise failed Traceback (most recent call last): File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 277, in _finalize next_result = self._on_complete(self._value) File "/usr/share/ceph/mgr/cephadm/module.py", line 132, in <lambda> return CephadmCompletion(on_complete=lambda _: f(*args, **kwargs)) File "/usr/share/ceph/mgr/cephadm/module.py", line 1098, in add_host return self._add_host(spec) File "/usr/share/ceph/mgr/cephadm/module.py", line 1087, in _add_host spec.hostname, spec.addr, err)) orchestrator._interface.OrchestratorError: New host node1.pacific.test (node1.pacific.test) failed check: ['INFO:cephadm:podman|docker (/usr/bin/podman) is present', 'INFO:cephadm:systemctl is present', 'INFO:cephadm:lvcreate is present', 'INFO:cephadm:Unit chronyd.service is enabled and running', 'INFO:cephadm:Hostname "node1.pacific.test" matches what is expected.', 'ERROR: hostname "node1" does not match expected hostname "node1.pacific.test"']
Related issues
History
#1 Updated by Stephan Müller over 3 years ago
- Related to Bug #46098: Exception adding host using cephadm added
#2 Updated by Stephan Müller over 3 years ago
- Description updated (diff)
#3 Updated by Sebastian Wagner over 3 years ago
Right. the host name you use must match the output of
hostname
on the remote host.
See https://docs.ceph.com/docs/master/cephadm/concepts/#fully-qualified-domain-names-vs-bare-host-names for details
#4 Updated by Sebastian Wagner over 3 years ago
- Status changed from New to Need More Info
#5 Updated by Sebastian Wagner about 3 years ago
- Tracker changed from Bug to Support
- Status changed from Need More Info to Resolved