]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: be aware of host's shortname and FQDN 50133/head
authorAdam King <adking@redhat.com>
Wed, 15 Feb 2023 22:07:09 +0000 (17:07 -0500)
committerAdam King <adking@redhat.com>
Tue, 7 Mar 2023 18:50:47 +0000 (13:50 -0500)
commit6443cf15d54a5e50c245dd08c3db005bb8521b6a
tree8a5a927b0c7a37819138854bc01f43ae35949985
parent39d3ce94a050d3402f5d031f74443b7ad5036c0a
mgr/cephadm: be aware of host's shortname and FQDN

The idea is to gether the shortname and FQDN as part
of gather-facts, and then if we ever try to check if a certain
host is in our internal inventory by hostname, we can check
these other known names. This should avoid issues where
we think a hostname specified by FQDN is not in our
inventory because we know the host by the shortname
or vice versa.

Fixes: https://tracker.ceph.com/issues/58738
Signed-off-by: Adam King <adking@redhat.com>
src/cephadm/cephadm.py
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/tests/test_facts.py