]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.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, 22 Aug 2023 14:05:21 +0000 (10:05 -0400)
commit178cbdab33f0eed2d0916524162b2533653865fd
treefdcf653185239f2c76b8fd8512e68d2d87be15cf
parent267a9351ec1b10e8c115e73e19f939390b6586aa
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>
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