Skip to content

mgr/dashboard: fix delete subsystem issue - #68160

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-delete-subsystem
Apr 21, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-delete-subsystem

Conversation

@sagargopale2233

@sagargopale2233 sagargopale2233 commented Apr 1, 2026 •

Copy link
Copy Markdown

mgr/dashboard: fix delete subsystem issue

Fixes: https://tracker.ceph.com/issues/75847

Signed-off-by: Sagar Gopale [email protected]

PR Description:PR Description:

  • Fixes the issue where deleting an NVMe-oF subsystem via the Dashboard fails with the error: "Namespace is still using the subsystem. Either remove it or use the '--force' command line option."
  • The backend delete_subsystem endpoint already supports a force parameter (defaults to false), but the frontend was not passing it.
  • Adds force=true to the deleteSubsystem API call so subsystems with existing namespaces can be deleted directly from the Dashboard.
  • This is consistent with how deleteListener already passes force: true in the same service.
  • The delete confirmation modal already warns the user that all associated configurations and resources will be removed, making force-delete the expected behavior.

Updated screencast :

Screencast.From.2026-04-02.20-04-17.mp4

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.

@cloudbehl

Copy link
Copy Markdown
Contributor

mgr/dashboard: fix delete subsystem issue

Fixes: https://tracker.ceph.com/issues/74114

Signed-off-by: Sagar Gopale [email protected]

PR Description:PR Description:

  • Fixes the issue where deleting an NVMe-oF subsystem via the Dashboard fails with the error: "Namespace is still using the subsystem. Either remove it or use the '--force' command line option."

Is force flag going to delete namespace as well? If yes, probably the force should have checkbox that they agree it would delete namespace as part of subsystem deletion,

@sagargopale2233
sagargopale2233 force-pushed the fix-delete-subsystem branch 2 times, most recently from fe3a1a4 to c3a3993 Compare April 2, 2026 08:26
@sagargopale2233

sagargopale2233 commented Apr 2, 2026 •

Copy link
Copy Markdown
Author

mgr/dashboard: fix delete subsystem issue
Fixes: https://tracker.ceph.com/issues/74114
Signed-off-by: Sagar Gopale [email protected]
PR Description:PR Description:

  • Fixes the issue where deleting an NVMe-oF subsystem via the Dashboard fails with the error: "Namespace is still using the subsystem. Either remove it or use the '--force' command line option."

Is force flag going to delete namespace as well? If yes, probably the force should have checkbox that they agree it would delete namespace as part of subsystem deletion,

@cloudbehl Functionally, I have updated the subsystem delete flow to add an explicit acknowledgement for force deletion.

What changed:

  • In high-impact subsystem delete, user must now:
    1. type the subsystem name, and
    2. check an additional checkbox acknowledging force-delete impact (namespaces may also be removed).
  • Delete action remains disabled until both confirmations are completed.
  • This checkbox is conditionally shown only for this force-delete scenario, so existing delete flows are not impacted.

I am attaching a screencast to show the updated behavior end-to-end.

Screencast.From.2026-04-02.20-04-17.mp4

@github-project-automation github-project-automation Bot moved this from New to Review in progress in Ceph-Dashboard Apr 2, 2026
@sagargopale2233
sagargopale2233 requested a review from afreen23 April 3, 2026 05:40
@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test make check

@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test windows

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

Copy link
Copy Markdown
Contributor

jenkins test api

@afreen23
afreen23 merged commit 0ae6ff5 into ceph:main Apr 21, 2026
6 checks passed
@afreen23
afreen23 deleted the fix-delete-subsystem branch April 21, 2026 10:47
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Apr 21, 2026
@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 0ae6ff5b0108f79a572dae95cfa967ef64716b1f^..0ae6ff5b0108f79a572dae95cfa967ef64716b1f

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/24718214031

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