]> git.apps.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, 27 May 2021 16:00:20 +0000 (12:00 -0400)
commit157a7b4183dbd888f106c613a758409d7e07b917
tree45d0f8f6885afe8f0d7f5f8a972c87c5230f9e00
parent872668a9b37ee5a0171c37b3b6f0f4d605ee54a2
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>
src/pybind/mgr/dashboard/module.py
src/pybind/mgr/mgr_module.py
src/pybind/mgr/prometheus/module.py