Skip to content

mgr/dashboard : Implement dependent resource handling for gateway Deletion - #69487

Merged
nizamial09 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-4878
Jun 29, 2026
Merged

nizamial09 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-4878

Conversation

@pujaoshahu

@pujaoshahu pujaoshahu commented Jun 15, 2026 •

Copy link
Copy Markdown
image

Fixes: https://tracker.ceph.com/issues/77403
Signed-off-by: pujaoshahu [email protected]

Summary:

Added a pre-deletion check to prevent deleting a gateway group that still has associated resources.
Display a modal dialog when deletion is blocked, clearly explaining why the action cannot proceed.
List all connected subsystems linked to the selected gateway group.
Provide direct navigation links to the dependent subsystems for easier cleanup.
Guide users to remove dependent resources before retrying the deletion.

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.

@sagargopale2233 sagargopale2233 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test windows

@pujaoshahu
pujaoshahu requested a review from nizamial09 June 17, 2026 08:13

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

Whay cant we use exiting modal DeleteConfirmationModalComponent ?

@pujaoshahu

Copy link
Copy Markdown
Author

Whay cant we use exiting modal DeleteConfirmationModalComponent ?

I intentionally did not add this logic to DeleteConfirmationModalComponent because it is already handling multiple scenarios with several conditional (if/else) branches. In this case, after deleting the subsystem, we need to open another delete confirmation modal, which would add even more complexity to the existing component.

@afreen23

Copy link
Copy Markdown
Contributor

Whay cant we use exiting modal DeleteConfirmationModalComponent ?

I intentionally did not add this logic to DeleteConfirmationModalComponent because it is already handling multiple scenarios with several conditional (if/else) branches. In this case, after deleting the subsystem, we need to open another delete confirmation modal, which would add even more complexity to the existing component.

Why cant we make that simpler - this will be moving away from consistency, we should see to it. Lets discuss on a call the hiccups.

@pujaoshahu

Copy link
Copy Markdown
Author

Whay cant we use exiting modal DeleteConfirmationModalComponent ?

I intentionally did not add this logic to DeleteConfirmationModalComponent because it is already handling multiple scenarios with several conditional (if/else) branches. In this case, after deleting the subsystem, we need to open another delete confirmation modal, which would add even more complexity to the existing component.

Why cant we make that simpler - this will be moving away from consistency, we should see to it. Lets discuss on a call the hiccups.

@Afreen, let’s proceed with merging this for now. I’ll set up a tracker for the generic code, and we can separate it later once the work is delivered

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test windows

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test dashboard cephadm

@nizamial09

Copy link
Copy Markdown
Member

jenkins test windows

@nizamial09

nizamial09 commented Jun 29, 2026 •

Copy link
Copy Markdown
Member

let’s proceed with merging this for now. I’ll set up a tracker for the generic code, and we can separate it later once the work is delivered

if you are planning to do that separately, please create a tracker with necessary context in it. So that, if not you, somebody else can also pick that up and do things..

@pujaoshahu

Copy link
Copy Markdown
Author

let’s proceed with merging this for now. I’ll set up a tracker for the generic code, and we can separate it later once the work is delivered

if you are planning to do that separately, please create a tracker with necessary context in it. So that, if not you, somebody else can also pick that up and do things..

Whay cant we use exiting modal DeleteConfirmationModalComponent ?

I intentionally did not add this logic to DeleteConfirmationModalComponent because it is already handling multiple scenarios with several conditional (if/else) branches. In this case, after deleting the subsystem, we need to open another delete confirmation modal, which would add even more complexity to the existing component.

Why cant we make that simpler - this will be moving away from consistency, we should see to it. Lets discuss on a call the hiccups.

@Afreen, let’s proceed with merging this for now. I’ll set up a tracker for the generic code, and we can separate it later once the work is delivered

Please find the tracker for reference
https://tracker.ceph.com/issues/77774

@pujaoshahu

Copy link
Copy Markdown
Author

let’s proceed with merging this for now. I’ll set up a tracker for the generic code, and we can separate it later once the work is delivered

if you are planning to do that separately, please create a tracker with necessary context in it. So that, if not you, somebody else can also pick that up and do things..

Please find the tracker for reference
https://tracker.ceph.com/issues/77774

@nizamial09
nizamial09 merged commit 7163b73 into ceph:main Jun 29, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Jun 29, 2026
@nizamial09
nizamial09 deleted the fix-4878 branch June 29, 2026 12:33
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log 7163b736cd645c2b93ca446e6beb5905f14319d0^..7163b736cd645c2b93ca446e6beb5905f14319d0

The referenced tickets are:

Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them.

Update Log: https://github.com/ceph/ceph/actions/runs/28372273096

yzaken pushed a commit to yzaken/ceph that referenced this pull request Jul 13, 2026
mgr/dashboard : Implement dependent resource handling for gateway Deletion

Reviewed-by: Nizamudeen A <[email protected]>
Reviewed-by: Sagar Gopale <[email protected]>
Reviewed-by: Afreen Misbah <[email protected]>
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