]> 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>
Tue, 23 Jul 2024 14:37:22 +0000 (10:37 -0400)
commite6e543bbe7feae471c9f585e280cf68dc2fd6ec3
treec6c09c245453503551a5b41f69552e98ce7c3dd7
parent95df52350d1cdb33236773ce65217709da78529b
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
src/cephadm/tests/test_agent.py
src/cephadm/tests/test_cephadm.py
src/cephadm/cephadm
src/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/serve.py
src/pybind/mgr/cephadm/services/cephadmservice.py
src/pybind/mgr/cephadm/services/monitoring.py
src/pybind/mgr/cephadm/tests/test_services.py
src/pybind/mgr/mgr_util.py