]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard,prometheus: new method of getting mgr IP
authorSage Weil <sage@newdream.net>
Tue, 25 May 2021 17:00:35 +0000 (13:00 -0400)
committerSage Weil <sage@newdream.net>
Thu, 3 Jun 2021 12:43:00 +0000 (07:43 -0500)
commitad964c42aae021914738c7e44d080e8c0212ee2c
tree8a01f96ac3beb25e35b34fced54080ce8168c073
parent9536839126e3f094a5b4650dae74bb363650fe5d
mgr/dashboard,prometheus: new method of getting mgr IP

- Use a centralized method get_mgr_ip()
- Look up the hostname via DNS.  This is a bit more reliable than
getfqdn() since it will work even when podman adds the container
name to /etc/hosts.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 157a7b4183dbd888f106c613a758409d7e07b917)
src/pybind/mgr/dashboard/module.py
src/pybind/mgr/mgr_module.py
src/pybind/mgr/prometheus/module.py