Skip to content

mgr/dashboard: fix subsystem creation issue - #68045

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-subsystem-creation
Mar 27, 2026
Merged

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

Conversation

@sagargopale2233

Copy link
Copy Markdown

mgr/dashboard: fix subsystem creation issue

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

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

PR descripition :

Problem

The NVMe-oF subsystem creation from the dashboard was failing with a 500 Internal Server Error.

The frontend was sending enable_ha as part of the createSubsystem request payload. However, the backend controller (controllers/nvmeof.py → create()) does not accept enable_ha as a parameter — it is hardcoded to True internally in the gRPC create_subsystem_req call. This caused the backend to reject the request with a 500 error.

Solution

Removed enable_ha from the frontend request payload so that only the parameters the backend actually supports (nqn, gw_group, dhchap_key) are sent.

Changes:

  • nvmeof.service.ts — Removed enable_ha: boolean from the createSubsystem request type signature.
  • nvmeof-subsystems-form.component.ts — Removed enable_ha: true from the createSubsystem call payload.
  • nvmeof.service.spec.ts — Updated unit test to remove enable_ha and initiators from the test request object.
  • nvmeof-subsystems-form.component.spec.ts — Updated unit test expectation to remove enable_ha.

Screencast:

Screencast.From.2026-03-27.12-37-54.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.

@nizamial09

Copy link
Copy Markdown
Member

Regression from #67810

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Mar 27, 2026
@afreen23
afreen23 merged commit 5256a51 into ceph:main Mar 27, 2026
6 of 7 checks passed
@afreen23
afreen23 deleted the fix-subsystem-creation branch March 27, 2026 12:58
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Mar 27, 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 5256a5170007eae2237c5a94606b7c9d89531bf9^..5256a5170007eae2237c5a94606b7c9d89531bf9

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

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.

3 participants