]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: be aware of host's shortname and FQDN 50888/head
authorAdam King <adking@redhat.com>
Wed, 15 Feb 2023 22:07:09 +0000 (17:07 -0500)
committerAdam King <adking@redhat.com>
Wed, 5 Apr 2023 18:14:02 +0000 (14:14 -0400)
commit022435709ecfe6665e73b31517e01e2daa2a40e8
tree73fcc5c8f623d52fd08b1ebe41e34fb916d5a18c
parent8b88d76591e7a09b20f71968c37362772044a299
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>
(cherry picked from commit 6443cf15d54a5e50c245dd08c3db005bb8521b6a)
src/cephadm/cephadm
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/tests/test_facts.py