]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: make enable_monitor_client configurable for nvmeof
authorAdam King <adking@redhat.com>
Tue, 9 Apr 2024 16:19:06 +0000 (12:19 -0400)
committerAlexander Indenbaum <aindenba@redhat.com>
Thu, 20 Nov 2025 08:55:27 +0000 (10:55 +0200)
Currently, the mon client work is not merged on main, but our
default nvmeof container will attempt to make use of it by default,
causing it to crash. This makes it configurable and defaults the
behavior to false. That can be changed once the work is actually
present in main.

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 3276471ff765b0118105a7820a13d9e5efa9934b)
(cherry picked from commit 4cf2a8ab7ef08f0aaa898db641547cd113cec434)

Resolves: rhbz#2276900

src/pybind/mgr/cephadm/tests/test_services.py
src/python-common/ceph/deployment/service_spec.py

index c40715fbbaa67338171ccc95ec4df7e9a6ee98c6..71f91c77316b6d8144c85f87175a3cad9d7ea7dc 100644 (file)
@@ -388,7 +388,7 @@ omap_file_update_reloads = 10
 allowed_consecutive_spdk_ping_failures = 1
 spdk_ping_interval_in_seconds = 2.0
 ping_spdk_under_lock = False
-enable_monitor_client = False
+enable_monitor_client = True
 
 [gateway-logs]
 log_level = INFO
index 04f635f5f0ae2fcd7c62e04f0b2a1ecc2d5a4950..6ce5a868a19008b89a6fd199ddf8bdb23717ff8b 100644 (file)
@@ -1273,7 +1273,7 @@ class NvmeofServiceSpec(ServiceSpec):
                  max_log_directory_backups: Optional[int] = 10,
                  log_directory: Optional[str] = '/var/log/ceph/',
                  monitor_timeout: Optional[float] = 1.0,
-                 enable_monitor_client: bool = False,
+                 enable_monitor_client: bool = True,
                  placement: Optional[PlacementSpec] = None,
                  unmanaged: bool = False,
                  preview_only: bool = False,