]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Wed, 26 May 2021 22:38:08 +0000 (18:38 -0400)
commit3587a10b3eb5a35bfaad556a65eb83c6b062526c
tree5b29901ac2523394ff3f30ab995e9f3fc725e2d7
parent935d3e079d9f463bbad057924894b3aba2b29f4e
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>
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