From: Sagar Gopale Date: Fri, 27 Mar 2026 07:38:55 +0000 (+0530) Subject: mgr/dashboard: fix subsystem creation issue X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F68045%2Fhead;p=ceph.git mgr/dashboard: fix subsystem creation issue Fixes: https://tracker.ceph.com/issues/75748 Signed-off-by: Sagar Gopale --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.spec.ts index 57185bdc1505..b4e46bc97e1c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.spec.ts @@ -103,7 +103,6 @@ describe('NvmeofSubsystemsFormComponent', () => { expect(nvmeofService.createSubsystem).toHaveBeenCalledWith({ nqn: expectedNqn, gw_group: mockGroupName, - enable_ha: true, dhchap_key: 'Q2VwaE52bWVvRkNoYXBTeW50aGV0aWNLZXkxMjM0NTY=' }); }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.ts index 4c3eadc393f2..b3d46425568a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.ts @@ -163,7 +163,6 @@ export class NvmeofSubsystemsFormComponent implements OnInit { .createSubsystem({ nqn: payload.nqn, gw_group: this.group, - enable_ha: true, dhchap_key: payload.subsystemDchapKey }) .subscribe({ diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/api/nvmeof.service.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/api/nvmeof.service.spec.ts index 70b7dcc2a29c..4e670f455b7f 100755 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/api/nvmeof.service.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/api/nvmeof.service.spec.ts @@ -164,8 +164,6 @@ describe('NvmeofService', () => { it('should call createSubsystem', () => { const request = { nqn: mockNQN, - enable_ha: true, - initiators: '*', gw_group: mockGroupName, dhchap_key: null }; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/api/nvmeof.service.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/api/nvmeof.service.ts index ba5810aba7b0..1cfdf54e656a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/api/nvmeof.service.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/api/nvmeof.service.ts @@ -186,12 +186,7 @@ export class NvmeofService { return this.http.get(`${API_PATH}/subsystem/${subsystemNQN}?gw_group=${group}`); } - createSubsystem(request: { - nqn: string; - enable_ha: boolean; - gw_group: string; - dhchap_key: string; - }) { + createSubsystem(request: { nqn: string; gw_group: string; dhchap_key: string }) { return this.http.post(`${API_PATH}/subsystem`, request, { observe: 'response' }); }