Project

General

Profile

Bug #46547

cephadm: Exception adding host via FQDN if host was already added

Added by Stephan Müller 4 months ago. Updated 4 months ago.

Status:
Need More Info
Priority:
Normal
Assignee:
-
Category:
cephadm
Target version:
-
% Done:

0%

Source:
Tags:
low-hanging-fruit
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

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

Related to Orchestrator - Bug #46098: Exception adding host using cephadm Resolved

History

#1 Updated by Stephan Müller 4 months ago

  • Related to Bug #46098: Exception adding host using cephadm added

#2 Updated by Stephan Müller 4 months ago

  • Description updated (diff)

#3 Updated by Sebastian Wagner 4 months 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 4 months ago

  • Status changed from New to Need More Info

Also available in: Atom PDF