]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Wed, 18 May 2022 19:50:20 +0000 (15:50 -0400)
commit64b4a16b36af987440b63d97f4e2a4d1422ff97b
treec9647732f004643e618ec7d21b159df967b00814
parent1f9d55159d923a663b2f10730395b78258f43b8a
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>
(cherry picked from commit 7e8d8317bef1b35cddd99950e503f57710002e80)

Conflicts:
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/module.py