Skip to content

tentacle: mgr/dashboard : Carbonize configuration form - #70466

Open
abhidesai6 wants to merge 2 commits into
ceph:tentaclefrom
rhcs-dashboard:wip-78412-tentacle
Open

abhidesai6 wants to merge 2 commits into
ceph:tentaclefrom
rhcs-dashboard:wip-78412-tentacle

Conversation

@abhidesai6
abhidesai6 requested a review from a team as a code owner July 23, 2026 07:30
@abhidesai6 abhidesai6 added this to the tentacle milestone Jul 23, 2026
@github-actions github-actions Bot added pybind releng-audit-fail Release engineering: failed backport verification audit. labels Jul 23, 2026
github-actions[bot]

This comment was marked as outdated.

@nmunet

nmunet commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

@abhidesai6 make check failing
ERROR in /ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
[lint:html ]
[lint:html ] src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
[lint:html ] 232:8 File should use 2 space indentation
[lint:html ] 253:4 File should use 2 space indentation
[lint:html ] 268:0 File should use 2 space indentation
[lint:html ]
[lint:html ]

@nmunet

nmunet commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

/audit retest

@github-actions

Copy link
Copy Markdown

🔄 Audit Retest Triggered by @nmunet.

View workflow run

@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Jul 23, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 23, 2026
@nmunet
nmunet force-pushed the wip-78412-tentacle branch from bcef3f1 to 606be07 Compare July 24, 2026 05:54
@abhidesai6

Copy link
Copy Markdown
Author

jenkins test windows

@abhidesai6

Copy link
Copy Markdown
Author

jenkins test dashboard cephadm

@abhidesai6

Copy link
Copy Markdown
Author

jenkins test dashboard

@abhidesai6

Copy link
Copy Markdown
Author

jenkins test dashboard cephadm

@abhidesai6

Copy link
Copy Markdown
Author

@afreen23 Can you review the PR for audit override tag. Conflict resolution is explained.

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Jul 29, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Jul 29, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @afreen23.

View workflow run

@yuriw

yuriw commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri9-testing-20260803.203514-tentacle.

@kamoltat

Copy link
Copy Markdown
Member

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@afreen23 afreen23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abhidesai6 needs rebase

@github-project-automation github-project-automation Bot moved this from Reviewer approved to Review in progress in Ceph-Dashboard Aug 21, 2026
Abhishek Desai and others added 2 commits September 8, 2026 11:02
fixes : https://tracker.ceph.com/issues/76778
Signed-off-by: Abhishek Desai <[email protected]>

(cherry picked from commit 1262dee)

 Conflicts:
	src/pybind/mgr/dashboard/controllers/cluster_configuration.py
        - empty conflicts. All the current changes were empty in
	  conflict resolution
	src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/configuration.po.ts
	src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html

 Conflicts:
	src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
        - Lint errors only
…nfiguration individually, when multiple rgw service exist

fixes: https://tracker.ceph.com/issues/78332

Before
===
The configuration form had a TypeScript compilation error and could not properly support editing client-specific configurations. The form lacked the ability to:

- Configure different values for specific client entities (e.g., client.rgw.*, client.admin, client.radosgw-gateway)
- No way to Add/remove multiple client entity entries dynamically
- No way to provide autocomplete suggestions for existing client entities

After
===
Users can now edit configuration options individually for any client entity, with a clean UI that supports:

- Generic client entity support: Configure any client.* entity (RGW daemons, admin users, CephFS clients, etc.)
- Autocomplete with custom values: Select from existing client entities or enter custom ones (e.g., client.rgw.my-daemon, client.admin)
- Dynamic entry management: Add/remove multiple client configuration entries

Conflicts:
	 Merge conflict in src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html (accepted incoming changes)

Signed-off-by: Naman Munet <[email protected]>
(cherry picked from commit 967e888)

 Conflicts:
	src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
        - fixed lint errors
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

⚠️ Audit Override Removed

New commits were pushed to this PR, so the previous override has been removed.

View workflow run

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #70466 SOURCE PR SOURCE STATUS
f5d709d mgr/dashboard : Carbonize configuration form PR #69070 1262dee mgr/dashboard : Carbonize configuration form
e20dc4c mgr/dashboard: Edit should support setting one or more rgw service configuration individually, when multiple rgw service exist PR #70278 967e888 mgr/dashboard: Edit should support setting one or more rgw service configuration individually, when multiple rgw service exist

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport f5d709d (cherry-pick of 1262dee)

Affected File(s)

Range Diff

Click to expand
--- Original (1262deed)
+++ Backport (f5d709d4)
@@ -1,3 +1,16 @@
 mgr/dashboard : Carbonize configuration form
 fixes : https://tracker.ceph.com/issues/76778
 Signed-off-by: Abhishek Desai <[email protected]>
+
+(cherry picked from commit 1262deedb2d5c796eecf5ba3ae7f6204b0be09a6)
+
+ Conflicts:
+	src/pybind/mgr/dashboard/controllers/cluster_configuration.py
+        - empty conflicts. All the current changes were empty in
+	  conflict resolution
+	src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/configuration.po.ts
+	src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
+
+ Conflicts:
+	src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
+        - Lint errors only

================================================================================
RANGE DIFF
================================================================================

1:  1262deedb2d < -:  ----------- mgr/dashboard : Carbonize configuration form fixes : https://tracker.ceph.com/issues/76778 Signed-off-by: Abhishek Desai <[email protected]>
-:  ----------- > 1:  f5d709d4dd4 mgr/dashboard : Carbonize configuration form fixes : https://tracker.ceph.com/issues/76778 Signed-off-by: Abhishek Desai <[email protected]>

Deviation in Backport e20dc4c (cherry-pick of 967e888)

Affected File(s)

Range Diff

Click to expand
--- Original (967e8886)
+++ Backport (e20dc4c1)
@@ -18,4 +18,12 @@
 - Autocomplete with custom values: Select from existing client entities or enter custom ones (e.g., client.rgw.my-daemon, client.admin)
 - Dynamic entry management: Add/remove multiple client configuration entries
 
+Conflicts:
+	 Merge conflict in src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html (accepted incoming changes)
+
 Signed-off-by: Naman Munet <[email protected]>
+(cherry picked from commit 967e8886827d149f0c774a3501230cb8f31b06d1)
+
+ Conflicts:
+	src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
+        - fixed lint errors

================================================================================
RANGE DIFF
================================================================================

1:  967e8886827 ! 1:  e20dc4c1cb1 mgr/dashboard: Edit should support setting one or more rgw service configuration individually, when multiple rgw service exist
    @@ Commit message
         - Autocomplete with custom values: Select from existing client entities or enter custom ones (e.g., client.rgw.my-daemon, client.admin)
         - Dynamic entry management: Add/remove multiple client configuration entries
     
    +    Conflicts:
    +             Merge conflict in src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html (accepted incoming changes)
    +
         Signed-off-by: Naman Munet <[email protected]>
    +    (cherry picked from commit 967e8886827d149f0c774a3501230cb8f31b06d1)
    +
    +     Conflicts:
    +            src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
    +            - fixed lint errors
     
      ## src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/configuration.e2e-spec.ts ##
     @@ src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/configuration.e2e-spec.ts: describe('Configuration page', () => {
    @@ src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/configuration.po.ts: expor
     
      ## src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html ##
     @@
    -           </div>
    - 
    -           @for (section of availSections; track section) {
    --            @if (type === 'bool') {
    -+            <div
    -+              cdsRow
    -+              class="form-item"
    -+            >
    -+              <ng-container
    -+                *ngTemplateOutlet="
    -+                  configFieldTemplate;
    -+                  context: {
    -+                    controlName: section,
    -+                    label: section,
    -+                    id: section,
    -+                    control: configForm.get('values')?.get(section)
    -+                  }
    -+                "
    -+              ></ng-container>
    -+            </div>
    -+          }
    -+        </div>
    -+
    -+        <!-- Client-specific configuration entries -->
    -+        <div
    -+          cdsRow
    -+          class="form-heading cds-mt-4"
    -+        >
    -+          <h3 i18n>Client Configuration</h3>
    -+        </div>
    -+
    -+        <div
    -+          cdsRow
    -+          class="form-item"
    -+        >
    -+          <p class="cds--type-body-01">
    -+            <span i18n
    -+              >Configure this option for specific client entities. Select from the dropdown or enter
    -+              custom values like
    -+            </span>
    -+            <code>client.rgw.my-daemon</code>
    -+            <span i18n> or </span>
    -+            <code>client.admin</code>
    -+            <span i18n>.</span>
    -+          </p>
    -+        </div>
    -+
    -+        <div formArrayName="clientEntries">
    -+          @for (entry of clientEntries.controls; track entry; let i = $index) {
    -+            <div
    -+              [formGroupName]="i"
    -+              cdsRow
    -+              class="cds-mt-6"
    -+            >
    -               <div
    --                cdsRow
    --                class="form-item"
    -+                cdsCol
    -+                [columnNumbers]="{ lg: 4 }"
    -               >
    --                <cds-select
    --                  [formControlName]="section"
    --                  [label]="section"
    --                  [id]="section"
    --                  [labelInputID]="section"
    --                  cdValidate
    --                  #sectionValidate="cdValidate"
    --                  [invalid]="sectionValidate.isInvalid"
    --                  [invalidText]="sectionErrors"
    -+                <cds-text-label
    -+                  [labelInputID]="'client-entity-' + i"
    -+                  [invalid]="entityValidate.isInvalid"
    -+                  [invalidText]="entityErrors"
    -                 >
    --                  <option
    --                    [ngValue]="null"
    --                    i18n
    --                  >
    --                    -- Default --
    --                  </option>
    --                  <option
    --                    [ngValue]="true"
    --                    i18n
    --                  >
    --                    true
    --                  </option>
    --                  <option
    --                    [ngValue]="false"
    --                    i18n
    --                  >
    --                    false
    --                  </option>
    --                </cds-select>
    --                <ng-template #sectionErrors>
    -+                  <span i18n>Client Entity</span>
    -+                  <input
    -+                    cdsText
    -+                    cdValidate
    -+                    #entityValidate="cdValidate"
    -+                    type="text"
    -+                    [id]="'client-entity-' + i"
    -+                    formControlName="clientEntity"
    -+                    placeholder="e.g., client.rgw.my-daemon, client.admin"
    -+                    i18n-placeholder
    -+                    [invalid]="entityValidate.isInvalid"
    -+                    list="client-entity-datalist"
    -+                  />
    -+                </cds-text-label>
    -+                <datalist id="client-entity-datalist">
    -+                  @for (option of clientEntityOptions; track option.content) {
    -+                    <option [value]="option.content">{{ option.content }}</option>
    -+                  }
    -+                </datalist>
    -+                <ng-template #entityErrors>
    -                   <ng-container
    -                     *ngTemplateOutlet="
    -                       validationErrors;
    --                      context: { control: configForm.get(section) }
    -+                      context: { control: entry.get('clientEntity') }
    -                     "
    -                   ></ng-container>
    -                 </ng-template>
                    </div>
    --            }
    - 
    --            @if (type !== 'bool' && inputType === 'number') {
    -               <div
    --                cdsRow
    --                class="form-item"
    -+                cdsCol
    -+                [columnNumbers]="{ lg: 4 }"
    -               >
    --                <cds-number
    --                  [formControlName]="section"
    --                  [label]="section"
    --                  [id]="section"
    --                  [step]="getStep(type, configForm.getValue(section))"
    --                  [min]="minValue"
    --                  [max]="maxValue"
    --                  cdValidate
    --                  #sectionValidate="cdValidate"
    --                  [invalid]="sectionValidate.isInvalid"
    --                  [invalidText]="sectionErrors"
    --                >
    --                </cds-number>
    --                <ng-template #sectionErrors>
    --                  <ng-container
    --                    *ngTemplateOutlet="
    --                      validationErrors;
    --                      context: { control: configForm.get(section) }
    --                    "
    --                  ></ng-container>
    --                </ng-template>
    -+                <ng-container
    -+                  *ngTemplateOutlet="
    -+                    configFieldTemplate;
    -+                    context: {
    -+                      controlName: 'value',
    -+                      label: 'Value',
    -+                      id: 'client-value-' + i,
    -+                      control: entry.get('value')
    -+                    }
    -+                  "
    -+                ></ng-container>
    -               </div>
    --            }
    - 
    --            @if (type !== 'bool' && inputType !== 'number') {
    -               <div
    --                cdsRow
    --                class="form-item"
    -+                cdsCol
    -+                class="item-action-btn"
    -               >
    --                <cds-text-label
    --                  [labelInputID]="section"
    --                  [invalid]="sectionValidate.isInvalid"
    --                  [invalidText]="sectionErrors"
    -+                <cds-icon-button
    -+                  kind="danger"
    -+                  size="sm"
    -+                  description="Remove client entry"
    -+                  i18n-description
    -+                  (click)="removeClientEntry(i)"
    -                 >
    --                  {{ section }}
    --                  <input
    --                    cdsText
    --                    cdValidate
    --                    #sectionValidate="cdValidate"
    --                    [type]="inputType"
    --                    [id]="section"
    --                    [formControlName]="section"
    --                    [invalid]="sectionValidate.isInvalid"
    --                  />
    --                </cds-text-label>
    --                <ng-template #sectionErrors>
    --                  <ng-container
    --                    *ngTemplateOutlet="
    --                      validationErrors;
    --                      context: { control: configForm.get(section) }
    --                    "
    --                  ></ng-container>
    --                </ng-template>
    -+                  <svg
    -+                    cdsIcon="trash-can"
    -+                    size="32"
    -+                    class="cds--btn__icon"
    -+                  ></svg>
    -+                </cds-icon-button>
    -               </div>
    --            }
    -+            </div>
    +             }
                }
     +
     +          <div
    @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configurati
      </ng-container>
      
     +<!-- Reusable template for configuration fields -->
    -+<ng-template
    + <ng-template
    +-  #validationErrors
     +  #configFieldTemplate
     +  let-controlName="controlName"
     +  let-label="label"
     +  let-id="id"
    -+  let-control="control"
    -+>
    -+  @if (control) {
    -+    @if (type === 'bool') {
    -+      <cds-select
    -+        [formControl]="control"
    -+        [label]="label"
    -+        i18n-label
    -+        [id]="id"
    -+        cdValidate
    -+        #fieldValidate="cdValidate"
    -+        [invalid]="fieldValidate.isInvalid"
    -+        [invalidText]="fieldErrors"
    -+      >
    -+        <option
    -+          [ngValue]="null"
    -+          i18n
    -+        >
    -+          -- Default --
    -+        </option>
    -+        <option
    -+          [ngValue]="true"
    -+          i18n
    -+        >
    -+          true
    -+        </option>
    -+        <option
    -+          [ngValue]="false"
    -+          i18n
    -+        >
    -+          false
    -+        </option>
    -+      </cds-select>
    -+      <ng-template #fieldErrors>
    -+        <ng-container
    -+          *ngTemplateOutlet="validationErrors; context: { control: control }"
    -+        ></ng-container>
    -+      </ng-template>
    -+    }
    -+
    -+    @if (type !== 'bool' && inputType === 'number') {
    -+      <cds-number
    -+        [formControl]="control"
    -+        [label]="label"
    -+        i18n-label
    -+        [id]="id"
    -+        [min]="minValue"
    -+        [max]="maxValue"
    -+        [step]="getStep(type, control?.value) ?? 1"
    -+        cdValidate
    -+        #fieldValidate="cdValidate"
    -+        [invalid]="fieldValidate.isInvalid"
    -+        [invalidText]="fieldErrors"
    -+      >
    -+      </cds-number>
    -+      <ng-template #fieldErrors>
    -+        <ng-container
    -+          *ngTemplateOutlet="validationErrors; context: { control: control }"
    -+        ></ng-container>
    -+      </ng-template>
    -+    }
    -+
    -+    @if (type !== 'bool' && inputType !== 'number') {
    -+      <cds-text-label
    -+        [labelInputID]="id"
    -+        [invalid]="fieldValidate.isInvalid"
    -+        [invalidText]="fieldErrors"
    -+      >
    -+        <span i18n>{{ label }}</span>
    -+        <input
    -+          cdsText
    -+          cdValidate
    -+          #fieldValidate="cdValidate"
    -+          [type]="inputType"
    -+          [id]="id"
    -+          [formControl]="control"
    -+          [invalid]="fieldValidate.isInvalid"
    -+        />
    -+      </cds-text-label>
    -+      <ng-template #fieldErrors>
    -+        <ng-container
    -+          *ngTemplateOutlet="validationErrors; context: { control: control }"
    -+        ></ng-container>
    -+      </ng-template>
    -+    }
    -+  }
    -+</ng-template>
    -+
    - <ng-template
    -   #validationErrors
        let-control="control"
      >
        @if (control?.invalid && (control.dirty || control.touched)) {
    -+    @if (control.hasError('required')) {
    -+      <div
    -+        class="invalid-feedback"
    -+        i18n
    -+      >
    -+        This field is required.
    -+      </div>
    -+    }
    -+    @if (control.hasError('clientPrefix')) {
    -+      <div
    -+        class="invalid-feedback"
    -+        i18n
    -+      >
    -+        Client entity must start with 'client.' <br />
    -+        (e.g., client.admin, client.rgw.my-daemon)
    -+      </div>
    -+    }
    -+    @if (control.hasError('clientEntityDuplicate')) {
    -+      <div
    -+        class="invalid-feedback"
    -+        i18n
    -+      >
    -+        This client entity is already configured. <br />
    -+        Each client entity can only be configured once.
    -+      </div>
    -+    }
    -     @if (control.hasError('min')) {
    -       <span
    -         class="invalid-feedback"
     
      ## src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.spec.ts ##
     @@

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added releng-audit-fail Release engineering: failed backport verification audit. and removed needs-rebase labels Sep 8, 2026
@afreen23

afreen23 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

@abhidesai6 after angular bump we would need a re-push.

@yuriw

yuriw commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri5-testing-20261005.150507-tentacle.

@yuriw yuriw added needs-merge QA-approved, awaiting merge window wip-yuri5-testing and removed wip-yuri5-testing needs-merge QA-approved, awaiting merge window labels Nov 11, 2026
@github-project-automation github-project-automation Bot moved this from Review in progress to Reviewer approved in Ceph-Dashboard Nov 25, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Nov 25, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @afreen23.

View workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Reviewer approved

Development

Successfully merging this pull request may close these issues.

5 participants