Skip to content

tentacle: mgr/dashboard : add stretch cluster validation for pools form - #68476

Merged
batrick merged 4 commits into
ceph:tentaclefrom
rhcs-dashboard:wip-76132-tentacle
May 13, 2026
Merged

batrick merged 4 commits into
ceph:tentaclefrom
rhcs-dashboard:wip-76132-tentacle

Conversation

@abhidesai6

@abhidesai6 abhidesai6 commented Apr 20, 2026 •

Copy link
Copy Markdown

This is a batch backport PR for pool form related changes and includes following PRs:

#67952
#67841
#68658

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Apr 21, 2026
@afreen23 afreen23 modified the milestones: tentacle, v20.2.2 Apr 28, 2026

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Automated Backport Parity Review - Multiple PRs Detected

This backport appears to pull commits from multiple main PRs including: PR #67952, PR #67841.

This must be explicitly documented in the backport PR description. Furthermore, each backport tracker ticket associated with these main PRs must be linked to this PR.

Commit Parity Visualizer:

================================================================================
COMMIT PARITY VISUALIZER
================================================================================
BACKPORT PR #68476                             SOURCE PR / STATUS
--------------------------------------------------------------------------------
[ feed9f7e ] mgr/dashboard : add stret...      PR #67952 [ 6fa8d64e ] mgr/dashboard : add ...

[ b5a660b5 ] mgr/dashboard : Fix appli...      PR #67841 [ 5c29aa59 ] mgr/dashboard : Fix ...
[ 8763578b ] mgr/dashboard : Select re...                [ 195cc2f8 ] mgr/dashboard : Sele...
================================================================================

When you are ready for this to be reviewed and QA'd again, please add the pdonnell-tentacle-RFA label to this PR.

@github-project-automation github-project-automation Bot moved this from Reviewer approved to Review in progress in Ceph-Dashboard Apr 30, 2026
@batrick batrick added releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-fail Release engineering: failed backport verification audit. and removed releng-audit-queue Release engineering: queued for backport verification audit. labels Apr 30, 2026

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Automated Backport Parity Review - Backport Deviation Alert

A conflict or unapproved deviation was detected during the simulation of this backport, and the changes appear to be incorrect or undocumented. Please review the highlighted files. Make sure Conflict markers are left into cherry-picks with explanations.

Be familiar with the rules and guidelines for writing backports.

Affected File(s):

Commit Parity Visualizer:

================================================================================
COMMIT PARITY VISUALIZER
================================================================================
BACKPORT PR #68476                             SOURCE PR / STATUS
--------------------------------------------------------------------------------
[ feed9f7e ] mgr/dashboard : add stret...      PR #67952 [ 6fa8d64e ] mgr/dashboard : add ...

[ b5a660b5 ] mgr/dashboard : Fix appli...      PR #67841 [ 5c29aa59 ] mgr/dashboard : Fix ...
[ 8763578b ] mgr/dashboard : Select re...                [ 195cc2f8 ] mgr/dashboard : Sele...
================================================================================

Range Diff:

Click to expand
--- Original (195cc2f8)
+++ Backport (8763578b)
@@ -1,3 +1,5 @@
 mgr/dashboard : Select replicated rule by default in pools form
 fixes : https://tracker.ceph.com/issues/75632
 Signed-off-by: Abhishek Desai <[email protected]>
+
+(cherry picked from commit 195cc2f8c23b8ae327f769ab7aca0f460d6029ab)

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

1:  195cc2f8c23 ! 1:  8763578b6bb mgr/dashboard : Select replicated rule by default in pools form fixes : https://tracker.ceph.com/issues/75632 Signed-off-by: Abhishek Desai <[email protected]>
    @@ Commit message
         fixes : https://tracker.ceph.com/issues/75632
         Signed-off-by: Abhishek Desai <[email protected]>
     
    +    (cherry picked from commit 195cc2f8c23b8ae327f769ab7aca0f460d6029ab)
    +
      ## src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts ##
     @@
      import { Validators } from '@angular/forms';
    @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.componen
      import { PoolFormComponent } from './pool-form.component';
      
     @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.spec.ts: describe('PoolFormComponent', () => {
    + 
    +     it('is invalid at the beginning all sub forms are valid', () => {
            expect(form.valid).toBeFalsy();
    -       // With default poolType 'replicated', expect 'name' required.
    -       ['name'].forEach((name) => formHelper.expectError(name, 'required'));
    --      // For replicated type with multiple crush rules, 'crushRule' is required.
    --      formHelper.expectError('crushRule', 'required');
    +-      ['name', 'poolType', 'pgNum'].forEach((name) => formHelper.expectError(name, 'required'));
    +-      ['size', 'crushRule', 'erasureProfile', 'ecOverwrites'].forEach((name) =>
    +-        formHelper.expectValid(name)
    +-      );
    ++      // With default poolType 'replicated', expect 'name' required.
    ++      ['name'].forEach((name) => formHelper.expectError(name, 'required'));
     +      // crushRule is auto-selected when replicated rules exist, so it is valid.
     +      formHelper.expectValid('crushRule');
    -       // Other fields are valid by default.
    -       ['size', 'erasureProfile', 'ecOverwrites'].forEach((name) => formHelper.expectValid(name));
    ++      // Other fields are valid by default.
    ++      ['size', 'erasureProfile', 'ecOverwrites'].forEach((name) => formHelper.expectValid(name));
            expect(component.form.get('compression').valid).toBeTruthy();
    +     });
    + 
    +@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.spec.ts: describe('PoolFormComponent', () => {
    +     });
    + 
    +     it('validates poolType', () => {
    +-      formHelper.expectError('poolType', 'required');
    ++      // Default is replicated; the control is not empty, so there is no required error.
    ++      formHelper.expectValid('poolType');
    ++      expect(form.getValue('poolType')).toBe(PoolType.REPLICATED);
    +       formHelper.expectValidChange('poolType', 'erasure');
    +       formHelper.expectValidChange('poolType', 'replicated');
    +     });
    + 
    +     it('validates that pgNum is required creation mode', () => {
    ++      // After getInfo(), pgCalc() fills pgNum automatically; clear and mark dirty so
    ++      // auto-calc does not overwrite empty (see poolTypeChange / pgCalc guards).
    ++      formHelper.setValue('pgNum', '', true);
    ++      fixture.detectChanges();
    +       formHelper.expectError(form.get('pgNum'), 'required');
    +     });
    + 
     @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.spec.ts: describe('PoolFormComponent', () => {
            expect(form.valid).toBeTruthy();
          });
    @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.componen
      import { PoolEditModeResponseModel } from '../../block/mirroring/pool-edit-mode-modal/pool-edit-mode-response.model';
      import { RbdMirroringService } from '~/app/shared/api/rbd-mirroring.service';
     @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts: interface MonitorResponse {
    -   standalone: false
    +   styleUrls: ['./pool-form.component.scss']
      })
      export class PoolFormComponent extends CdForm implements OnInit {
     +  private static readonly DEFAULT_RULE_NAME = 'replicated_rule';
    @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.componen
                  })
                ]
              }),
    --        poolType: new UntypedFormControl('replicated', {
    +-        poolType: new UntypedFormControl('', {
     +        poolType: new UntypedFormControl(PoolType.REPLICATED, {
                validators: [Validators.required]
              }),
    @@ src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.componen
            }
            this.listenToChanges();
            this.setComplexValidators();
    --      this.poolTypeChange('replicated');
     +      this.poolTypeChange(PoolType.REPLICATED);
          });
          this.loadingReady();

batrick
batrick previously requested changes May 2, 2026

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Automated Redmine Linkage Audit

The following tracking irregularities were found:

  • Missing PR Link: Backport tracker #76141 has no 'Pull Request ID' set. Please link it to PR #68476.

When you are ready for this to be reviewed and QA'd again, please add the pdonnell-tentacle-RFA label to this PR.

@yuriw

yuriw commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

@abhidesai6 @afreen23 this broke the build, pls fix

Auto-merging src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts
CONFLICT (content): Merge conflict in src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts
Automatic merge failed; fix conflicts and then commit the result.
Unable to access https://github.com/rhcs-dashboard/ceph.git, retrying..
error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm '
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
Traceback (most recent call last):
File "/tank/home/yuriw/wip_master/src/script/build-integration-branch", line 193, in
main()
File "/tank/home/yuriw/wip_master/src/script/build-integration-branch", line 175, in main
raise Exception(message)
Exception: Unable to resolve conflict when merging PR#68476

@afreen23

afreen23 commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

All the tests are passing on this.
It seems like it is getting conflict with some other PR in the current batch
Moving on, all dashboard backports should be in a single PR, this new release cadence is giving some hiccups in managing the backport PRs individually.

Thanks Yuri for helping with re-scheduling those.

@abhidesai6
abhidesai6 force-pushed the wip-76132-tentacle branch from c81823c to ea577af Compare May 6, 2026 18:29
@abhidesai6
abhidesai6 force-pushed the wip-76132-tentacle branch from ea577af to e4e27ce Compare May 6, 2026 18:39
@abhidesai6

abhidesai6 commented May 6, 2026 •

Copy link
Copy Markdown
Author

Added conflict resolution messages in commit.
Rebase the PR as well

@yuriw

yuriw commented May 7, 2026

Copy link
Copy Markdown
Contributor

From https://github.com/rhcs-dashboard/ceph

  • branch wip-76132-tentacle -> FETCH_HEAD
    Auto-merging src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.spec.ts
    CONFLICT (content): Merge conflict in src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.spec.ts
    Auto-merging src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts
    CONFLICT (content): Merge conflict in src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts
    Automatic merge failed; fix conflicts and then commit the result.
    Unable to access https://github.com/rhcs-dashboard/ceph.git, retrying..
    error: Pulling is not possible because you have unmerged files.
    hint: Fix them up in the work tree, and then use 'git add/rm '
    hint: as appropriate to mark resolution and make a commit.
    fatal: Exiting because of an unresolved conflict.
    Traceback (most recent call last):
    File "/tank/home/yuriw/wip_master/src/script/build-integration-branch", line 193, in
    main()
    File "/tank/home/yuriw/wip_master/src/script/build-integration-branch", line 175, in main
    raise Exception(message)
    Exception: Unable to resolve conflict when merging PR#68476

Still @abhidesai6 @afreen23

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Automated PR Review - Rebase Required

This PR currently has merge conflicts with the target base branch. Please rebase and resolve the conflicts.


Automated Backport Parity Review - Multiple PRs Detected

This backport appears to pull commits from multiple main PRs including: PR #67841, PR #67952, PR #68658.

This must be made explicit in the backport PR description. Furthermore, each backport tracker ticket associated with these main PRs must be linked to this PR.


Commit Parity Visualizer

BACKPORT PR #68476 SOURCE PR SOURCE STATUS
52cb63f5f9b36d090054072d187a782e3e287ddb mgr/dashboard : add stretch cluster validation for pools form PR #67952 6fa8d64 mgr/dashboard : add stretch cluster validation for pools form
2bd92b773b810743c4db368af887477f7e7f9bde mgr/dashboard : Fix application names in pools form PR #67841 5c29aa5 mgr/dashboard : Fix application names in pools form
4b0eb4b909223e5190ce846756e1356de8ad2f29 mgr/dashboard : Select replicated rule by default in pools form 195cc2f mgr/dashboard : Select replicated rule by default in pools form
e4e27ce94699bb713484a82c6db7f4f48ff3ed70 mgr/dashboard: Update permissions for pool-manager role PR #68658 f476cd5 mgr/dashboard: Update permissions for pool-manager role

🛟 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.

@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown

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

Abhishek Desai and others added 4 commits May 8, 2026 20:36
Signed-off-by: Abhishek Desai <[email protected]>

(cherry picked from commit 5c29aa5)
fixes : https://tracker.ceph.com/issues/75632
Signed-off-by: Abhishek Desai <[email protected]>

(cherry picked from commit 195cc2f)

Conflicts :
  - src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.spec.ts
     changes already present in tentacle
  - src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts
     changes already present in tentacle
Fixes https://tracker.ceph.com/issues/76307

-  says denied access when clicked on create pool table action
- this was happening due to the failing monitor API added for stretch cluster configuration
- also updates overview nav permissions

Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit f476cd5)
@abhidesai6

Copy link
Copy Markdown
Author

Rebased the PR. Added conflict resolution .

@abhidesai6
abhidesai6 requested a review from batrick May 8, 2026 15:33
@batrick batrick added needs-qa releng-audit-pass Release engineering: passed backport verification audit. and removed pdonnell-tentacle-RFA releng-audit-fail Release engineering: failed backport verification audit. labels May 9, 2026
@batrick
batrick dismissed their stale review May 13, 2026 12:41

addressed

@batrick
batrick merged commit f1d0028 into ceph:tentacle May 13, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Review in progress to Done in Ceph-Dashboard May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard needs-qa pybind releng-audit-pass Release engineering: passed backport verification audit.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants