Repository navigation
umbrella: mgr/dashboard : Carbonize configuration form - #70527
Conversation
fixes : https://tracker.ceph.com/issues/76778 Signed-off-by: Abhishek Desai <[email protected]> (cherry picked from commit 1262dee)
…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)
f902693 to
979702a
Compare
|
/audit retest |
|
🔄 Audit Retest Triggered by @abhidesai6. |
|
@afreen23 Can you review the PR for audit override tag. Conflict resolution is explained. |
|
jenkins test dashboard |
|
jenkins test docs |
|
✅ Audit Override Applied by @afreen23. |
|
jenkins test dashboard |
|
This PR has been added to wip-yuri15-testing-20260803.134326-umbrella. |
|
This PR has been added to wip-yuri10-testing-20260804.162800-umbrella. |
There was a problem hiding this comment.
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
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)
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
✅ Audit Override Applied by @batrick. |
backport tracker: https://tracker.ceph.com/issues/78600
backport of #69070
parent tracker: https://tracker.ceph.com/issues/76778
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh
COMMIT 2:
backport tracker: https://tracker.ceph.com/issues/78549
backport of #70278
parent tracker: https://tracker.ceph.com/issues/78332