]> git.apps.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>
Sat, 21 May 2022 23:10:21 +0000 (19:10 -0400)
commit2b362d53d5bfc15a2695c7242cbfbc497e34a995
treebe7fca80f8b5d34ccc864a6787f0fcd7c7f8c4dd
parent7470b462a7051a683ce3db797689459575f4c523
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)
src/pybind/mgr/cephadm/module.py