]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: update host when adding host that already exists
authorDaniel Pivonka <dpivonka@redhat.com>
Thu, 12 Aug 2021 18:25:23 +0000 (14:25 -0400)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 2 Nov 2021 09:01:23 +0000 (10:01 +0100)
commit5c9227bbdf987365ae90433ac4e501e1a88b7aca
treed35c367ef316dc804ecc62de1ab3c45de438f508
parent09527dcd9eebf7aa363a0f1c88af1292b0f9a83f
mgr/cephadm: update host when adding host that already exists

update addr and labels of existing host
this prevents labels being removed if a host is readded
or addr being set to 127.0.... if readding host active mgr is on

Fixes: https://tracker.ceph.com/issues/51667
Signed-off-by: Daniel Pivonka <dpivonka@redhat.com>
(cherry picked from commit 0facfac91fd8f71e5a8b869d818e7c2b07b93516)
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/cephadm/module.py