From: Gil Bregman Date: Wed, 4 Feb 2026 09:14:58 +0000 (+0200) Subject: mgr/cephadm: Add IO statistics enable field to the cephadm NVMEoF spec file. X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=66831bc8955c251668bbc9fbd99bc6e3668839db;p=ceph.git mgr/cephadm: Add IO statistics enable field to the cephadm NVMEoF spec file. Fixes: https://tracker.ceph.com/issues/74750 Signed-off-by: Gil Bregman --- diff --git a/src/pybind/mgr/cephadm/templates/services/nvmeof/ceph-nvmeof.conf.j2 b/src/pybind/mgr/cephadm/templates/services/nvmeof/ceph-nvmeof.conf.j2 index 2f9d6a84f86..37f0a60d22f 100644 --- a/src/pybind/mgr/cephadm/templates/services/nvmeof/ceph-nvmeof.conf.j2 +++ b/src/pybind/mgr/cephadm/templates/services/nvmeof/ceph-nvmeof.conf.j2 @@ -52,6 +52,7 @@ subsystem_cache_expiration = {{ spec.subsystem_cache_expiration }} force_tls = {{ spec.force_tls }} # This is a development flag, do not change it max_message_length_in_mb = {{ spec.max_message_length_in_mb }} +io_stats_enabled = {{ spec.io_stats_enabled }} [gateway-logs] log_level = {{ spec.log_level }} diff --git a/src/pybind/mgr/cephadm/tests/test_services.py b/src/pybind/mgr/cephadm/tests/test_services.py index 485f1e63fff..5290328f2eb 100644 --- a/src/pybind/mgr/cephadm/tests/test_services.py +++ b/src/pybind/mgr/cephadm/tests/test_services.py @@ -502,6 +502,7 @@ subsystem_cache_expiration = 30 force_tls = False # This is a development flag, do not change it max_message_length_in_mb = 4 +io_stats_enabled = True [gateway-logs] log_level = INFO diff --git a/src/python-common/ceph/deployment/service_spec.py b/src/python-common/ceph/deployment/service_spec.py index 93c804816fe..d1b7a678f86 100644 --- a/src/python-common/ceph/deployment/service_spec.py +++ b/src/python-common/ceph/deployment/service_spec.py @@ -1697,6 +1697,7 @@ class NvmeofServiceSpec(ServiceSpec): subsystem_cache_expiration: Optional[int] = 30, force_tls: Optional[bool] = False, max_message_length_in_mb: Optional[int] = 4, + io_stats_enabled: Optional[bool] = True, server_key: Optional[str] = None, server_cert: Optional[str] = None, client_key: Optional[str] = None, @@ -1853,6 +1854,8 @@ class NvmeofServiceSpec(ServiceSpec): self.force_tls = force_tls #: ``max_message_length_in_mb`` max protobuf message length, in mb self.max_message_length_in_mb = max_message_length_in_mb + #: ``io_stats_enabled`` enables controller IO statistics + self.io_stats_enabled = io_stats_enabled #: ``allowed_consecutive_spdk_ping_failures`` # of ping failures before aborting gateway self.allowed_consecutive_spdk_ping_failures = allowed_consecutive_spdk_ping_failures #: ``spdk_ping_interval_in_seconds`` sleep interval in seconds between SPDK pings @@ -2098,6 +2101,7 @@ class NvmeofServiceSpec(ServiceSpec): "Subsystem cache expiration period") verify_boolean(self.force_tls, "Force TLS") verify_positive_int(self.max_message_length_in_mb, "Max protocol message length") + verify_boolean(self.io_stats_enabled, "Enable IO statistics") verify_non_negative_number(self.monitor_timeout, "Monitor timeout") verify_non_negative_int(self.port, "Port") verify_non_negative_int(self.discovery_port, "Discovery port")