]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: convert host addr if non-IP to IP
authorSage Weil <sage@newdream.net>
Tue, 25 May 2021 20:10:49 +0000 (16:10 -0400)
committerSage Weil <sage@newdream.net>
Thu, 3 Jun 2021 12:43:03 +0000 (07:43 -0500)
commitd8687c94bf311c8643440cc1e72a24d1fea6872b
tree220fec128e4a9f05e5d6463fde1a47616d3b677f
parentad964c42aae021914738c7e44d080e8c0212ee2c
mgr/cephadm: convert host addr if non-IP to IP

Previously we allowed the host.addr to be a DNS name (short or fqdn).
This is problematic because of the inconsistent way that docker and podman
handle /etc/hosts, and undesirable because relying on external DNS is
an external source of failure for the cluster without any benefit in
return (simply updating DNS is not sufficient to make ceph behave).

So: update any non-IP to an IP as soon as we start up (presumably on
upgrade).  If we get a loopback address (127.0.0.1 or 127.0.1.1), then
wait and hope that the next instance of the manager has better luck.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 781bfa14ffc9aa37eb85635a59af1f202999e874)
src/pybind/mgr/cephadm/inventory.py