]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: support for specifying IP a port will be bound to on
authorAdam King <adking@redhat.com>
Fri, 11 Aug 2023 17:35:10 +0000 (13:35 -0400)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:36:15 +0000 (13:36 -0400)
commit97fcefb56fe201788cc45c211192170ebde8ca37
tree77ad35b02ae2f21e73ee52a222fc261d9986e40a
parent0870ecd8a52432538b3b64c9ed0b913ee53936ee
cephadm: support for specifying IP a port will be bound to on

This is mostly for checking for port conflicts.
Currently, we just check if the port is bound to
on any IP on the host. This mechanism should allow
certain daemon types to specify a port -> IP mapping
that will be passed to the cephadm binary. That
mapping will then be used by cephadm to only
check for the port being bound to on that specific
IP rather than any IP on the host. The end result
is we could have daemons bound to the same
port on different IPs on the same node.

It's expected that daemon types will set this
up as part of their prepare_create or generate_config
functions where they may have more info about the
specific IPs and ports they need.

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 178cbdab33f0eed2d0916524162b2533653865fd)

Conflicts:
src/cephadm/cephadm.py
src/cephadm/cephadm.py
src/cephadm/tests/test_agent.py
src/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/serve.py
src/pybind/mgr/cephadm/services/cephadmservice.py