From: Nizamudeen A Date: Tue, 1 Apr 2025 08:31:28 +0000 (+0530) Subject: mgr/dashboard: enable ha by default on subsystem POST API X-Git-Tag: v20.3.0~202^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4ae817f703560232e96c0d58ae76a9e194e20996;p=ceph.git mgr/dashboard: enable ha by default on subsystem POST API Fixes: https://tracker.ceph.com/issues/70745 Signed-off-by: Nizamudeen A --- diff --git a/src/pybind/mgr/dashboard/controllers/nvmeof.py b/src/pybind/mgr/dashboard/controllers/nvmeof.py index 3ca1775349aa..cdcef8cbfc25 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 fd28133c30fd..546a93e119b8 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':