From: Sagar Gopale Date: Mon, 16 Mar 2026 09:44:21 +0000 (+0530) Subject: mgr/dashboard: fix-add-node-issue X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2d8962da40a5fd105fbdd27c414701b836d519bd;p=ceph.git mgr/dashboard: fix-add-node-issue Fixes:https://tracker.ceph.com/issues/75500 Signed-off-by: Sagar Gopale (cherry picked from commit 93376e060aa6f2b91853efa093919f36ac2edbe1) --- 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;