Skip to content

umbrella: mgr/dashboard : Carbonize configuration form - #70527

Merged
batrick merged 2 commits into
ceph:umbrellafrom
rhcs-dashboard:wip-78600-umbrella
Aug 5, 2026
Merged

batrick merged 2 commits into
ceph:umbrellafrom
rhcs-dashboard:wip-78600-umbrella

Conversation

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 24, 2026
…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)
@nmunet
nmunet force-pushed the wip-78600-umbrella branch from f902693 to 979702a Compare July 27, 2026 06:23
@abhidesai6

Copy link
Copy Markdown
Author

/audit retest

@github-actions

Copy link
Copy Markdown

🔄 Audit Retest Triggered by @abhidesai6.

View workflow run

@github-actions github-actions Bot added releng-audit-fail Release engineering: failed backport verification audit. and removed releng-audit-fail Release engineering: failed backport verification audit. labels Jul 28, 2026
github-actions[bot]

This comment was marked as outdated.

@abhidesai6

Copy link
Copy Markdown
Author

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

@abhidesai6

Copy link
Copy Markdown
Author

jenkins test dashboard

@afreen23

Copy link
Copy Markdown
Contributor

jenkins test docs

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

Copy link
Copy Markdown

✅ Audit Override Applied by @afreen23.

View workflow run

@afreen23

Copy link
Copy Markdown
Contributor

jenkins test dashboard

@yuriw

yuriw commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri15-testing-20260803.134326-umbrella.

@yuriw

yuriw commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri10-testing-20260804.162800-umbrella.

@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 #70527 SOURCE PR SOURCE STATUS
c19ae0f mgr/dashboard : Carbonize configuration form PR #69070 1262dee mgr/dashboard : Carbonize configuration form
979702a 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 979702a (cherry-pick of 967e888)

Affected File(s)

Range Diff

Click to expand
--- Original (967e8886)
+++ Backport (979702ac)
@@ -18,4 +18,8 @@
 - 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)

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

1:  967e8886827 ! 1:  979702ac9fe 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)
     
      ## 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/src/app/ceph/cluster/configuration/configurati
      
                @for (section of availSections; track section) {
     -            @if (type === 'bool') {
    -+            <div
    -+              cdsRow
    -+              class="form-item"
    -+            >
    +             <div
    +               cdsRow
    +               class="form-item"
    +             >
    +-              <cds-select
    +-                [formControlName]="section"
    +-                [label]="section"
    +-                [id]="section"
    +-                [labelInputID]="section"
    +-                cdValidate
    +-                #sectionValidate="cdValidate"
    +-                [invalid]="sectionValidate.isInvalid"
    +-                [invalidText]="sectionErrors"
    +-              >
    +-                <option
    +-                  [ngValue]="null"
    +-                  i18n
    +-                >-- Default --</option>
    +-                <option
    +-                  [ngValue]="true"
    +-                  i18n
    +-                >true</option>
    +-                <option
    +-                  [ngValue]="false"
    +-                  i18n
    +-                >false</option>
    +-              </cds-select>
    +-              <ng-template #sectionErrors>
    +-                <ng-container
    +-                  *ngTemplateOutlet="validationErrors; context: { control: configForm.get(section) }"
    +-                ></ng-container>
    +-              </ng-template>
     +              <ng-container
     +                *ngTemplateOutlet="
     +                  configFieldTemplate;
    @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configurati
     +                  }
     +                "
     +              ></ng-container>
    -+            </div>
    +             </div>
    +-            }
     +          }
     +        </div>
     +
    @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configurati
     +            <span i18n>.</span>
     +          </p>
     +        </div>
    -+
    + 
    +-            @if (type !== 'bool' && inputType === 'number') {
     +        <div formArrayName="clientEntries">
     +          @for (entry of clientEntries.controls; track entry; let i = $index) {
    -+            <div
    +             <div
     +              [formGroupName]="i"
    -+              cdsRow
    +               cdsRow
    +-              class="form-item"
     +              class="cds-mt-6"
    -+            >
    -               <div
    --                cdsRow
    --                class="form-item"
    +             >
    +-              <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"
    ++              <div
     +                cdsCol
     +                [columnNumbers]="{ lg: 4 }"
                    >
    --                <cds-select
    --                  [formControlName]="section"
    --                  [label]="section"
    --                  [id]="section"
    --                  [labelInputID]="section"
    --                  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>
    +-            </div>
    +-            }
     +                <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
    @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configurati
     +                  }
     +                </datalist>
     +                <ng-template #entityErrors>
    -                   <ng-container
    -                     *ngTemplateOutlet="
    -                       validationErrors;
    --                      context: { control: configForm.get(section) }
    ++                  <ng-container
    ++                    *ngTemplateOutlet="
    ++                      validationErrors;
     +                      context: { control: entry.get('clientEntity') }
    -                     "
    -                   ></ng-container>
    -                 </ng-template>
    -               </div>
    --            }
    ++                    "
    ++                  ></ng-container>
    ++                </ng-template>
    ++              </div>
      
    --            @if (type !== 'bool' && inputType === 'number') {
    -               <div
    --                cdsRow
    --                class="form-item"
    +-            @if (type !== 'bool' && inputType !== 'number') {
    +-            <div
    +-              cdsRow
    +-              class="form-item"
    +-            >
    +-              <cds-text-label
    +-                [labelInputID]="section"
    +-                [invalid]="sectionValidate.isInvalid"
    +-                [invalidText]="sectionErrors"
    ++              <div
     +                cdsCol
     +                [columnNumbers]="{ lg: 4 }"
                    >
    --                <cds-number
    --                  [formControlName]="section"
    --                  [label]="section"
    --                  [id]="section"
    --                  [step]="getStep(type, configForm.getValue(section))"
    --                  [min]="minValue"
    --                  [max]="maxValue"
    +-                {{ section }}
    +-                <input
    +-                  cdsText
     -                  cdValidate
     -                  #sectionValidate="cdValidate"
    +-                  [type]="inputType"
    +-                  [id]="section"
    +-                  [formControlName]="section"
     -                  [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
    +-                />
    +-              </cds-text-label>
    +-              <ng-template #sectionErrors>
    +                 <ng-container
    +-                  *ngTemplateOutlet="validationErrors; context: { control: configForm.get(section) }"
     +                  *ngTemplateOutlet="
     +                    configFieldTemplate;
     +                    context: {
    @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configurati
     +                      control: entry.get('value')
     +                    }
     +                  "
    -+                ></ng-container>
    -               </div>
    --            }
    - 
    --            @if (type !== 'bool' && inputType !== 'number') {
    -               <div
    --                cdsRow
    --                class="form-item"
    +                 ></ng-container>
    +-              </ng-template>
    ++              </div>
    ++
    ++              <div
     +                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>
     -            }
    -+            </div>
                }
     +
     +          <div
    @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configurati
     +      </div>
     +    }
          @if (control.hasError('min')) {
    -       <span
    -         class="invalid-feedback"
    +     <span
    +       class="invalid-feedback"
     
      ## src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.spec.ts ##
     @@
    @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configurati
          } else {
            this.router.navigate(['/configuration']);
          }
    +
    + ## src/pybind/mgr/dashboard/frontend/src/app/shared/components/productive-card/productive-card.component.scss ##
    +@@
    +     background-image:
    +       // cyan left edge
    +       radial-gradient(120% 60% at -15% 100%, rgba(colors.$cyan-60, 0.13) 0%, transparent 65%),
    +-      // cyan right edge
    +-      radial-gradient(120% 60% at 115% 100%, rgba(colors.$cyan-60, 0.1) 0%, transparent 65%),
    +-      // pink center
    +-      radial-gradient(120% 60% at 50% 100%, rgba(colors.$magenta-60, 0.11) 0%, transparent 70%);
    ++      /* cyan right edge*/
    ++        radial-gradient(120% 60% at 115% 100%, rgba(colors.$cyan-60, 0.1) 0%, transparent 65%),
    ++      /* pink center*/
    ++        radial-gradient(120% 60% at 50% 100%, rgba(colors.$magenta-60, 0.11) 0%, transparent 70%);
    +     box-shadow: var(--cds-ai-drop-shadow), inset 0 0 0 1px var(--cds-ai-inner-shadow);
    +   }
    + }
    +
    + ## src/pybind/mgr/dashboard/frontend/src/styles/themes/_default.scss ##
    +@@ src/pybind/mgr/dashboard/frontend/src/styles/themes/_default.scss: $base: (
    +   support-info: vv.$info,
    +   notification-background-info: vv.$info,
    +   button-danger-primary: vv.$danger,
    +-  // Sizes
    +-  heading-03: 1.75rem,
    ++  /* Sizes*/ heading-03: 1.75rem,
    +   spacing-03: 0.5rem
    + );
    + 

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 the releng-audit-fail Release engineering: failed backport verification audit. label Aug 5, 2026
@batrick batrick modified the milestones: umbrella, v21.1.1 Aug 5, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

✅ Audit Override Applied by @batrick.

View workflow run

@batrick
batrick merged commit 22b3b25 into ceph:umbrella Aug 5, 2026
17 of 18 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants