From 4ae817f703560232e96c0d58ae76a9e194e20996 Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Tue, 1 Apr 2025 14:01:28 +0530 Subject: [PATCH] mgr/dashboard: enable ha by default on subsystem POST API Fixes: https://tracker.ceph.com/issues/70745 Signed-off-by: Nizamudeen A --- src/pybind/mgr/dashboard/controllers/nvmeof.py | 2 +- src/pybind/mgr/dashboard/openapi.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/controllers/nvmeof.py b/src/pybind/mgr/dashboard/controllers/nvmeof.py index 3ca1775349a..cdcef8cbfc2 100644 --- a/src/pybind/mgr/dashboard/controllers/nvmeof.py +++ b/src/pybind/mgr/dashboard/controllers/nvmeof.py @@ -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( diff --git a/src/pybind/mgr/dashboard/openapi.yaml b/src/pybind/mgr/dashboard/openapi.yaml index fd28133c30f..546a93e119b 100755 --- a/src/pybind/mgr/dashboard/openapi.yaml +++ b/src/pybind/mgr/dashboard/openapi.yaml @@ -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': -- 2.39.5