From 2d8962da40a5fd105fbdd27c414701b836d519bd Mon Sep 17 00:00:00 2001 From: Sagar Gopale Date: Mon, 16 Mar 2026 15:14:21 +0530 Subject: [PATCH] mgr/dashboard: fix-add-node-issue Fixes:https://tracker.ceph.com/issues/75500 Signed-off-by: Sagar Gopale (cherry picked from commit 93376e060aa6f2b91853efa093919f36ac2edbe1) --- .../nvmeof-gateway-node-add-modal.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-node/nvmeof-gateway-node-add-modal/nvmeof-gateway-node-add-modal.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-node/nvmeof-gateway-node-add-modal/nvmeof-gateway-node-add-modal.component.ts index 93d856dd8e1d..c6f1937f315b 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-node/nvmeof-gateway-node-add-modal/nvmeof-gateway-node-add-modal.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-node/nvmeof-gateway-node-add-modal/nvmeof-gateway-node-add-modal.component.ts @@ -150,12 +150,13 @@ export class NvmeofGatewayNodeAddModalComponent extends CdForm implements OnInit }, error: (e) => { this.loadingReady(); + const errorDetail = e?.error?.detail || e?.message || ''; this.notificationService.show( NotificationType.error, this.taskMessageService.messages[this.ADD_GATEWAY_NODE_TASK].failure({ group_name: this.groupName }), - e + errorDetail ); } }); @@ -178,6 +179,10 @@ export class NvmeofGatewayNodeAddModalComponent extends CdForm implements OnInit modifiedSpec.placement = {}; } + if ('locations' in modifiedSpec.placement) { + delete (modifiedSpec.placement as any).locations; + } + modifiedSpec.placement.hosts = newHosts; return modifiedSpec; -- 2.47.3