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: v19.2.3~200^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=90016674e1e533eac75ec42847f7b470f4f8a795;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 (cherry picked from commit 4ae817f703560232e96c0d58ae76a9e194e20996) --- diff --git a/src/pybind/mgr/dashboard/controllers/nvmeof.py b/src/pybind/mgr/dashboard/controllers/nvmeof.py index 9e22d069861..323996b245d 100644 --- a/src/pybind/mgr/dashboard/controllers/nvmeof.py +++ b/src/pybind/mgr/dashboard/controllers/nvmeof.py @@ -157,7 +157,7 @@ else: ) @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 f309fea6f87..9a013180577 100644 --- a/src/pybind/mgr/dashboard/openapi.yaml +++ b/src/pybind/mgr/dashboard/openapi.yaml @@ -8099,6 +8099,7 @@ paths: schema: properties: enable_ha: + default: true description: Enable high availability type: boolean gw_group: @@ -8113,7 +8114,6 @@ paths: type: string required: - nqn - - enable_ha type: object responses: '201':