From: Abhishek Desai Date: Fri, 20 Mar 2026 06:00:55 +0000 (+0530) Subject: mgr/dashboard : Select replicated rule by default in pools form X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=195cc2f8c23b8ae327f769ab7aca0f460d6029ab;p=ceph.git mgr/dashboard : Select replicated rule by default in pools form fixes : https://tracker.ceph.com/issues/75632 Signed-off-by: Abhishek Desai --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts index ad5672aee44a..38250f685786 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts @@ -1,7 +1,7 @@ import { Validators } from '@angular/forms'; import { SelectMessages } from '~/app/shared/components/select/select-messages.model'; -import { Pool } from '../pool'; +import { Pool, PoolType } from '../pool'; export class PoolFormData { poolTypes: string[]; @@ -10,13 +10,13 @@ export class PoolFormData { applications: any; readonly APP_LABELS: Record = { - cephfs: $localize`Filesystem (CephFS)`, + cephfs: $localize`File system (CephFS)`, rbd: $localize`Block (RBD)`, rgw: $localize`Object (RGW)` }; constructor() { - this.poolTypes = ['erasure', 'replicated']; + this.poolTypes = [PoolType.ERASURE, PoolType.REPLICATED]; this.applications = { selected: [], default: ['cephfs', 'rbd', 'rgw'], diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html index 9b44da73c00b..f4d207d0bf8f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html @@ -268,29 +268,13 @@ > - @if (form.showError('size', formDir)) { - -
    -
  • - Minimum: {{ getMinSize() }} -
  • -
  • - Maximum: {{ getMaxSize() }} -
  • -
-
- } @if (form.showError('size', formDir)) { - The size specified is out of range. A value from {{ getMinSize() }} to - {{ getMaxSize() }} is usable. + Invalid input. Replicated size must be between {{ getMinSize() }} and + {{ getMaxSize() }}. }
@@ -668,9 +652,6 @@ [invalid]="crushRuleRef.isInvalid" [invalidText]="crushRuleError" > - @for (rule of current.rules; track rule.rule_name) {