]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: re-use old ip when re-adding hosts if necessary
authorAdam King <adking@redhat.com>
Thu, 18 Nov 2021 20:22:39 +0000 (15:22 -0500)
committerAdam King <adking@redhat.com>
Mon, 16 May 2022 00:31:38 +0000 (20:31 -0400)
commit7e8d8317bef1b35cddd99950e503f57710002e80
tree05c28e5d246df33353692cb400659d0c678439fa
parentcd0cd7cb094a4d304de085cbba4c102cb65805e9
mgr/cephadm: re-use old ip when re-adding hosts if necessary

When a host is re-added without an explicit ip we can default to the old
ip we had stored for the host rather than either keeping the loopback
address or throwing an exception. We only want to actually error when
the only options left are error or use a resolved loopback address

Fixes: https://tracker.ceph.com/issues/53438
Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/module.py