]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: stop conflicting daemon when deploying to a specific port 40048/head
authorSage Weil <sage@newdream.net>
Wed, 17 Mar 2021 19:39:15 +0000 (15:39 -0400)
committerSage Weil <sage@newdream.net>
Wed, 17 Mar 2021 21:45:41 +0000 (17:45 -0400)
commita2b7587e04651fd6e3409c421ee9c6cbaa020479
treec3f106c05f8b732ca650f4c697e8349708d32555
parent98fa727cad7b90b0325c51d75fac657ac6aa456c
mgr/cephadm: stop conflicting daemon when deploying to a specific port

If we are deploying a daemon to bind to a specific port and there is
an existing daemon we are removing that also binds to that port, stop
it first.  Unless we are both binding to different IPs.

This resolves the case where daemons bind to * and we redeploy with a
subnet to bind to.  It would eventually converge before, but would
throw a bind error in the process and take longer.

Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/cephadm/serve.py