]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/cephadm: add all known good IPs for hosts to haproxy list
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 11 Jul 2023 21:07:25 +0000 (17:07 -0400)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:36:15 +0000 (13:36 -0400)
commita312e3986a94a021f050fd67127d26e6c25f5db6
tree00c535e18a55ef3df77b4300c4467b77af466c25
parent607dfacb790667c75ccf17d80dd60784524743e1
pybind/mgr/cephadm: add all known good IPs for hosts to haproxy list

Fixes: https://tracker.ceph.com/issues/61852
It was discovered that when the primary IP address of hosts managed by
cephadm are not all on the same subnet, then there's a chance that
ganesha will reject haproxy protocol connections.

Expand the list to all valid addresses for the hosts under management
such that we will not reject proxy protocol messages from the hosts
under cephadm management. This method was chosen over more sophisticated
possible approaches because we do not want to complicate the workflow
for the people setting up haxproxy+ganesha and do not want to miss any
possible subtle edge cases by trying to come up with the "perfect" list
of addresses.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit aab6a04df274e74d873827724247a1145797441b)
src/pybind/mgr/cephadm/services/nfs.py