]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: prepend config section to name passed to nvme-gw commands
authorAdam King <adking@redhat.com>
Fri, 19 Jul 2024 13:20:44 +0000 (09:20 -0400)
committerAlexander Indenbaum <aindenba@redhat.com>
Thu, 20 Nov 2025 08:55:27 +0000 (10:55 +0200)
Resolves: rhbz#2298861

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/services/nvmeof.py

index 76441ef06d928fabe9d4da2b1f38b5b9b7673d31..cd18f05046050bd801ec15a2183d52d9ab09334b 100644 (file)
@@ -101,7 +101,7 @@ class NvmeofService(CephService):
             # Notify monitor about this gateway creation
             cmd = {
                 'prefix': 'nvme-gw create',
-                'id': dd.daemon_id,
+                'id': f'{utils.name_to_config_section("nvmeof")}.{dd.daemon_id}',
                 'group': group,
                 'pool': pool
             }
@@ -197,7 +197,7 @@ class NvmeofService(CephService):
         # Notify monitor about this gateway deletion
         cmd = {
             'prefix': 'nvme-gw delete',
-            'id': daemon.daemon_id,
+            'id': f'{utils.name_to_config_section("nvmeof")}.{daemon.daemon_id}',
             'group': group,
             'pool': pool
         }