From: Afreen Misbah Date: Fri, 21 Mar 2025 01:53:32 +0000 (+0530) Subject: mgr/dashboard: KiB not supported size for namespace creation X-Git-Tag: v20.3.0~272^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=532fbcfe9bb6d2245af7958e1f8401625afc1fba;p=ceph.git mgr/dashboard: KiB not supported size for namespace creation Fixes https://tracker.ceph.com/issues/70106 Signed-off-by: Afreen Misbah --- 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 8a2b05b9c7a11..a3644836606a0 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),