Skip to content

mgr/dashboard: Pool deletion enhancements - #70643

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-pool-deletion
Jul 30, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-pool-deletion

Conversation

@afreen23

@afreen23 afreen23 commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Admin role:

  • show modal that pool deletion is disabled
  • allow enabling pool deletion
  • changed text for pool deletion
Screencast.From.2026-07-29.18-07-44.mp4

Pool mgr role

  • show modal that pool deletion is disabled
Screencast.From.2026-07-29.17-52-19.mp4

Bug fixes

  • Alert title not coming
  • delete modal showing weird texting - ">Deleting will remove all associated pools"
  • some dead code removal

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.

*ngIf="available === false"
title="iSCSI Targets not available"
i18n-title
alertTitle="iSCSI Targets not available"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

need to chnage as it was matching with html "title" attribute and not showing up as input prop.

@cloudbehl

Copy link
Copy Markdown
Contributor

Great addition and I like the pattern as well and it could be followed across.

The only thing is we need to enhance text to say why it was disabled. Also the resource we are trying to delete is not mentioned, apart from typing it. So it should be clear on which resource are we trying to delete.

@afreen23

Copy link
Copy Markdown
Contributor Author

Great addition and I like the pattern as well and it could be followed across.

The only thing is we need to enhance text to say why it was disabled. Also the resource we are trying to delete is not mentioned, apart from typing it. So it should be clear on which resource are we trying to delete.

Sure, there are inconsistencies as pointed offline, I am updating PR after syncing with Chandan. Thanks for review!

@afreen23
afreen23 force-pushed the fix-pool-deletion branch from 568980d to ea5928f Compare July 29, 2026 12:37
@@ -0,0 +1,59 @@
<cds-modal

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the modal that should be shown, carbon does not allow showing warnings/info like stuff, already being used by nvmeof , imported in shared so pools and nvmeof both can use. This is as per latest CDS.

@Optional()
@Inject('callBackAtionObservable')
public callBackAtionObservable?: () => Observable<any>,
@Optional() @Inject('hasAssociatedResources') public hasAssociatedResources?: boolean,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

to toggle between texts when resource has assoc resources and when its not.

@afreen23

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

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

looks good overall, few comments though

One observation is that the pool delete enable modal comes only one time, and if i try to delete any other pool then it directly allows me to delete it, is this intended? Also, we have a similar way of updation in configuration form where we say force edit a rgw configuration which is not editable by default (you can also check that modal), and maybe we can introduce force deletion here?

I keep seeing these alert panels with warning, information, danger texts at many places which we can remove

Image Image

@afreen23
afreen23 force-pushed the fix-pool-deletion branch from ea5928f to 398a1a8 Compare July 29, 2026 17:53
@afreen23

afreen23 commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor Author

looks good overall, few comments though

One observation is that the pool delete enable modal comes only one time, and if i try to delete any other pool then it directly allows me to delete it, is this intended?

Yes, thats the feature.

Also, we have a similar way of updation in configuration form where we say force edit a rgw configuration which is not editable by default (you can also check that modal), and maybe we can introduce force deletion here?

Create a tracker with image will review/drop in slack. As this PR is for pool deletion we cannot cover that but also dont want to miss it.

I keep seeing these alert panels with warning, information, danger texts at many places which we can remove

[Image 1]

So as per CDS we dont need warnings in modals and should avoid that , the new shared guard modal in this PR should be used instead - open a tracker for this so we dont miss.

<Image 2>
This is service form I guess, in forms we can have inline warnings,etc. This would be fine.

@afreen23
afreen23 force-pushed the fix-pool-deletion branch from 398a1a8 to 2b99e81 Compare July 29, 2026 18:06
@nmunet

nmunet commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

looks good overall, few comments though
One observation is that the pool delete enable modal comes only one time, and if i try to delete any other pool then it directly allows me to delete it, is this intended?

Yes, thats the feature.

Also, we have a similar way of updation in configuration form where we say force edit a rgw configuration which is not editable by default (you can also check that modal), and maybe we can introduce force deletion here?

Create a tracker with image will review/drop in slack. As this PR is for pool deletion we cannot cover that but also dont want to miss it.

I keep seeing these alert panels with warning, information, danger texts at many places which we can remove
[Image 1]

So as per CDS we dont need warnings in modals and should avoid that , the new shared guard modal in this PR should be used instead - open a tracker for this so we dont miss.

<Image 2> This is service form I guess, in forms we can have inline warnings,etc. This would be fine.

I was talking about the word appearing warning, information, danger,
Also make check is failing @afreen23

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Jul 30, 2026
class="cds--type-body-01 cds--mb-05"
i18n
>
Pool deletion is currently disabled. Enable it to proceed with deletion.

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.

While I like this, maybe we need to reword something here? Because it feels like you are doing it for a single pool and not globally? can we add something more to elaborate the action will be global?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

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.

thank you for this 🥳

@afreen23

Copy link
Copy Markdown
Contributor Author

I was talking about the word appearing warning, information, danger, Also make check is failing @afreen23

I see now, again can you raise bugs for those ?

@afreen23

Copy link
Copy Markdown
Contributor Author

jenkin test make check

@afreen23

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@afreen23
afreen23 force-pushed the fix-pool-deletion branch 2 times, most recently from 30ab10f to 511ac81 Compare July 30, 2026 16:05
Admin role:
- show confirmation modal that pool deletion is disabled
- allow enabling pool deletion
- fix pool deletion text

Pool mgr role
- show a modal that pool deletion is disabled

Signed-off-by: Afreen Misbah <[email protected]>
@afreen23
afreen23 force-pushed the fix-pool-deletion branch from 511ac81 to d0add82 Compare July 30, 2026 16:18
@afreen23
afreen23 merged commit 1066090 into ceph:main Jul 30, 2026
6 checks passed
@afreen23
afreen23 deleted the fix-pool-deletion branch July 30, 2026 19:40
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Jul 30, 2026
@afreen23

Copy link
Copy Markdown
Contributor Author

I was talking about the word appearing warning, information, danger, Also make check is failing @afreen23

I checked this, its the default fallback added in when no title provided , may we should remove this fallback.

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