Repository navigation
tentacle: mgr/dashboard : Carbonize configuration form - #70466
abhidesai6 wants to merge 2 commits into
Conversation
|
@abhidesai6 make check failing |
|
/audit retest |
|
🔄 Audit Retest Triggered by @nmunet. |
bcef3f1 to
606be07
Compare
|
jenkins test windows |
|
jenkins test dashboard cephadm |
|
jenkins test dashboard |
|
jenkins test dashboard cephadm |
|
@afreen23 Can you review the PR for audit override tag. Conflict resolution is explained. |
|
✅ Audit Override Applied by @afreen23. |
|
This PR has been added to wip-yuri9-testing-20260803.203514-tentacle. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
afreen23
left a comment
There was a problem hiding this comment.
@abhidesai6 needs rebase
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
606be07 to
e20dc4c
Compare
|
New commits were pushed to this PR, so the previous override has been removed. |
There was a problem hiding this comment.
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
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)
src/pybind/mgr/dashboard/controllers/cluster_configuration.pysrc/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/configuration.po.tssrc/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
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)
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
@abhidesai6 after angular bump we would need a re-push. |
|
This PR has been added to wip-yuri5-testing-20261005.150507-tentacle. |
|
✅ Audit Override Applied by @afreen23. |
backport tracker: https://tracker.ceph.com/issues/78412
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/78550
backport of #70278
parent tracker: https://tracker.ceph.com/issues/78332