]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerDaniel Pivonka <dpivonka@redhat.com>
Mon, 30 Aug 2021 17:50:36 +0000 (13:50 -0400)
commit0facfac91fd8f71e5a8b869d818e7c2b07b93516
tree2f2890a19a1133e2d08978367c264897a61d8576
parentf5848cbf391c15e91c01fcfb3923a9b63e9a9f1e
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>
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/cephadm/module.py