From: Shweta Bhosale Date: Fri, 24 Oct 2025 11:00:16 +0000 (+0530) Subject: mgr/cephadm: For updating NFS backends in HAProxy, send a SIGHUP signal to reload... X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3fd005168b7687cd3a615a9c00e5a2746f43df90;p=ceph-ci.git mgr/cephadm: For updating NFS backends in HAProxy, send a SIGHUP signal to reload the configuration instead of restart Fixes: https://tracker.ceph.com/issues/73633 Signed-off-by: Shweta Bhosale Resolves: rhbz#2401776 Conflicts: src/pybind/mgr/cephadm/serve.py --- diff --git a/src/pybind/mgr/cephadm/serve.py b/src/pybind/mgr/cephadm/serve.py index de04c50c0a3..32ac4de8505 100644 --- a/src/pybind/mgr/cephadm/serve.py +++ b/src/pybind/mgr/cephadm/serve.py @@ -1385,6 +1385,17 @@ class CephadmServe: else: skip_restart_for_reconfig = True send_signal_to_daemon = 'SIGHUP' + elif dd.daemon_type == 'haproxy': + if spec and hasattr(spec, 'backend_service'): + backend_spec = self.mgr.spec_store[spec.backend_service].spec + if backend_spec.service_type == 'nfs': + if all(s.startswith(f'nfs.{backend_spec.service_id}') for s in list(sym_diff)): + # this means only nfs daemons has changed and we don't need to + # restart haproxy during redeploy + self.log.debug(f'Reconfigure HAProxy daemon {dd.name()} with SIGHUP ' + 'due to change in NFS backend.') + skip_restart_for_reconfig = True + send_signal_to_daemon = 'SIGHUP' elif dd.daemon_type == 'haproxy': if spec and hasattr(spec, 'backend_service'): backend_spec = self.mgr.spec_store[spec.backend_service].spec