Skip to content

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

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:stretched-cluster-pool-size
Apr 20, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:stretched-cluster-pool-size

Conversation

@abhidesai6

@abhidesai6 abhidesai6 commented Mar 23, 2026 •

Copy link
Copy Markdown

fixes : https://tracker.ceph.com/issues/75667
Signed-off-by: Abhishek Desai [email protected]

normal cluster :

min : 1
max: 3

image

Streched cluster :

min : 2
max: 4
image

image image

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@abhidesai6

Copy link
Copy Markdown
Author

@abhidesai6

Copy link
Copy Markdown
Author

Thanks for the help @nizamial09

@cloudbehl cloudbehl 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.

We need to have one place to change the min, max values for maintainability purpose.

@abhidesai6
abhidesai6 force-pushed the stretched-cluster-pool-size branch 2 times, most recently from 2478db8 to 9eaaf15 Compare March 23, 2026 18:40

@nizamial09 nizamial09 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.

Thanks @abhidesai6. let's set the Replicated size to 4 and make that form control readonly in stretch mode. It doesn't accept any other values for pool_size apart from 4 and min_size is also always fixed to 2. So it doesn't make sense to edit that out.

@nizamial09

Copy link
Copy Markdown
Member

Also we can add a doc text on why its readonly..

@abhidesai6
abhidesai6 force-pushed the stretched-cluster-pool-size branch 2 times, most recently from d774bfc to 57abe10 Compare March 30, 2026 07:23
@abhidesai6

Copy link
Copy Markdown
Author
Screencast.From.2026-03-30.13-12-43.mp4

Stretched mode support for pools-form

@abhidesai6

Copy link
Copy Markdown
Author

Incorporating changes suggested by UX team.

@cloudbehl

cloudbehl commented Apr 2, 2026 •

Copy link
Copy Markdown
Contributor

Screencast.From.2026-03-30.13-12-43.mp4
Stretched mode support for pools-form

I saw the recording, I can see the data protection still says replica * 3 for the stretch pool
image

@cloudbehl

Copy link
Copy Markdown
Contributor

I would recommend to have inline info to say

Erasure-coded pools are disabled because they are not supported in stretch cluster configurations.

@abhidesai6

Copy link
Copy Markdown
Author
Screencast.From.2026-04-03.17-13-03.mp4

UX changes adaption video,
also replaced nav with cds-tabs

@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

@abhidesai6
abhidesai6 force-pushed the stretched-cluster-pool-size branch from 57abe10 to 5d47eb0 Compare April 15, 2026 07:09
@abhidesai6
abhidesai6 force-pushed the stretched-cluster-pool-size branch 2 times, most recently from c61d412 to 46d63f2 Compare April 15, 2026 09:01
@abhidesai6

Copy link
Copy Markdown
Author
image

cc @nizamial09 @cloudbehl

@abhidesai6
abhidesai6 force-pushed the stretched-cluster-pool-size branch from 46d63f2 to 9e844d0 Compare April 15, 2026 09:17

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

LGTM, need to test

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Apr 15, 2026

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

Why have we removed the info alert ? It was pretty good. @abhidesai6

@@ -97,11 +97,13 @@
formControlName="poolType"
cdRequiredField="Pool type"
data-testid="pool-type-select"
[helperText]="isStretchMode ? 'Erasure pool type is not supported for stretch cluster.' : ''"

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.

This should be a hover tip or info alert, not a helper text.

Image

@github-project-automation github-project-automation Bot moved this from Reviewer approved to Review in progress in Ceph-Dashboard Apr 16, 2026
@afreen23

Copy link
Copy Markdown
Contributor

@abhidesai6 we need to have crush rule default selected or give out an error as I dont see that happening on submit.

Screencast.From.2026-04-16.17-52-55.mp4

@abhidesai6

abhidesai6 commented Apr 16, 2026 •

Copy link
Copy Markdown
Author

Why have we removed the info alert ? It was pretty good. @abhidesai6

I was thinking of adding it in carbonization PR, as I wanted to keep bare minimum things in this PR in case of backports

@abhidesai6
abhidesai6 force-pushed the stretched-cluster-pool-size branch from 9e844d0 to 3cb0518 Compare April 17, 2026 06:38
@abhidesai6

Copy link
Copy Markdown
Author
image

didn't add carbonization changes here hence avoiding the info alert over the banner
rest all the changes are completed
cc @afreen23

@abhidesai6
abhidesai6 force-pushed the stretched-cluster-pool-size branch from 3cb0518 to 6fa8d64 Compare April 19, 2026 18:39
@github-project-automation github-project-automation Bot moved this from Review in progress to Reviewer approved in Ceph-Dashboard Apr 20, 2026
@afreen23

Copy link
Copy Markdown
Contributor

@abhidesai6 we need to have crush rule default selected or give out an error as I dont see that happening on submit.

Screencast.From.2026-04-16.17-52-55.mp4

Still its there , kindly take care of it in a followup PR, rest I see coming well.
As its a bug bit not related to this PR.

@afreen23
afreen23 merged commit 9693f78 into ceph:main Apr 20, 2026
6 checks passed
@afreen23
afreen23 deleted the stretched-cluster-pool-size branch April 20, 2026 08:46
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Apr 20, 2026
@abhidesai6

Copy link
Copy Markdown
Author

@abhidesai6 we need to have crush rule default selected or give out an error as I dont see that happening on submit.
Screencast.From.2026-04-16.17-52-55.mp4

Still its there , kindly take care of it in a followup PR, rest I see coming well. As its a bug bit not related to this PR.

image

We are giving out an error on submit for crushRule set.
We already have PR in review for selecting crushRule by default

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