]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: KiB not supported size for namespace creation 62423/head
authorAfreen Misbah <afreen@ibm.com>
Fri, 21 Mar 2025 01:53:32 +0000 (07:23 +0530)
committerAfreen Misbah <afreen@ibm.com>
Tue, 25 Mar 2025 01:01:57 +0000 (06:31 +0530)
Fixes https://tracker.ceph.com/issues/70106

Signed-off-by: Afreen Misbah <afreen@ibm.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts

index 8a2b05b9c7a11c56ceec4492a71f886f5349bd35..a3644836606a04b9862a64b4f42ddb57decf43bc 100644 (file)
@@ -38,7 +38,7 @@ export class NvmeofNamespacesFormComponent implements OnInit {
   nsForm: CdFormGroup;
   subsystemNQN: string;
   rbdPools: Array<Pool> = null;
-  units: Array<string> = ['KiB', 'MiB', 'GiB', 'TiB'];
+  units: Array<string> = ['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),