]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: resolve IP at 'orch host add' time
authorSage Weil <sage@newdream.net>
Fri, 21 May 2021 16:32:49 +0000 (12:32 -0400)
committerSage Weil <sage@newdream.net>
Thu, 3 Jun 2021 12:42:52 +0000 (07:42 -0500)
commit42b63fa95a21388f831a1690225fedaf8541efcd
tree55cd691fb9908745f592b18e57ebe8770e964440
parentcf0801f2ac03bd5ff219a89ef3a0a5eff7508e97
mgr/cephadm: resolve IP at 'orch host add' time

We prefer to always have a real IP for hosts in the cluster.  This avoids
a reliance on DNS for most operations.

Perhaps more importantly, it means we are less sensitive to inconsistent
host lookup results, for example due to (1) mismatched /etc/hosts files
between machines, or (2) a lookup of the local hostname that returns
127.0.1.1.

Adjust with_hosts() fixture to take an addr, and adjust tests accordingly.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 3587a10b3eb5a35bfaad556a65eb83c6b062526c)
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/tests/fixtures.py
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/orchestrator/module.py