]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: enable ha by default on subsystem POST API 62598/head
authorNizamudeen A <nia@redhat.com>
Tue, 1 Apr 2025 08:31:28 +0000 (14:01 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 1 Apr 2025 08:31:28 +0000 (14:01 +0530)
Fixes: https://tracker.ceph.com/issues/70745
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/controllers/nvmeof.py
src/pybind/mgr/dashboard/openapi.yaml

index 3ca1775349aafc490ede35c865ccabc8c4364e20..cdcef8cbfc25afaf31b89280266ce10a906f4d99 100644 (file)
@@ -168,7 +168,7 @@ else:
         @NvmeofCLICommand("nvmeof subsystem add")
         @empty_response
         @handle_nvmeof_error
-        def create(self, nqn: str, enable_ha: bool, max_namespaces: int = 1024,
+        def create(self, nqn: str, enable_ha: bool = True, max_namespaces: int = 1024,
                    gw_group: Optional[str] = None):
             return NVMeoFClient(gw_group=gw_group).stub.create_subsystem(
                 NVMeoFClient.pb2.create_subsystem_req(
index fd28133c30fd4ab4c6b6367141423396933104b5..546a93e119b8c504021a6008c4c3f2266b83ff2e 100755 (executable)
@@ -8512,6 +8512,7 @@ paths:
             schema:
               properties:
                 enable_ha:
+                  default: true
                   description: Enable high availability
                   type: boolean
                 gw_group:
@@ -8526,7 +8527,6 @@ paths:
                   type: string
               required:
               - nqn
-              - enable_ha
               type: object
       responses:
         '201':