From 532fbcfe9bb6d2245af7958e1f8401625afc1fba Mon Sep 17 00:00:00 2001 From: Afreen Misbah Date: Fri, 21 Mar 2025 07:23:32 +0530 Subject: [PATCH] mgr/dashboard: KiB not supported size for namespace creation Fixes https://tracker.ceph.com/issues/70106 Signed-off-by: Afreen Misbah --- .../nvmeof-namespaces-form.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts index 8a2b05b9c7a1..a3644836606a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts @@ -38,7 +38,7 @@ export class NvmeofNamespacesFormComponent implements OnInit { nsForm: CdFormGroup; subsystemNQN: string; rbdPools: Array = null; - units: Array = ['KiB', 'MiB', 'GiB', 'TiB']; + units: Array = ['MiB', 'GiB', 'TiB']; nsid: string; currentBytes: number; invalidSizeError: boolean; @@ -121,7 +121,7 @@ export class NvmeofNamespacesFormComponent implements OnInit { validators: [Validators.required] }), image_size: new UntypedFormControl(1, [CdValidators.number(false), Validators.min(1)]), - unit: new UntypedFormControl(this.units[2]), + unit: new UntypedFormControl(this.units[1]), nsCount: new UntypedFormControl(this.MAX_NAMESPACE_CREATE, [ Validators.required, Validators.max(this.MAX_NAMESPACE_CREATE), -- 2.47.3