Skip to content

mgr/dashboard: fix namespace block size in namespace form - #68377

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-namespace-block-size
Apr 21, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-namespace-block-size

Conversation

@sagargopale2233

@sagargopale2233 sagargopale2233 commented Apr 15, 2026 •

Copy link
Copy Markdown

mgr/dashboard: fix namespace block size in namespace form

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

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

Screencast :

Screencast.From.2026-04-15.11-28-45.mp4

Description:

What changed and why:
Currently, the "Namespace block size (bytes)" input field in the NVMe-oF Namespace creation form acts as a cosmetic field. Whatever custom block size a user enters (e.g., 1024 or 4096) is entirely ignored during the API request, resulting in the backend always creating the namespace with the default 512 bytes.

This PR fixes the bug by properly retrieving the namespace_size value from the Angular form and mapping it to the block_size property in the NamespaceCreateRequest payload.

Additionally, it updates the corresponding frontend unit tests which were previously enforcing this bug by incorrectly asserting that block_size should remain undefined.

How to test:

  1. Access the Dashboard and navigate to Block -> NVMe-oF -> Subsystems.
  2. Select an existing subsystem, view its namespaces, and click Add.
  3. Fill in the required form fields and enter 1024 for the "Namespace block size (bytes)".
  4. Submit the form.
  5. Verify in the UI or via CLI (ceph nvmeof namespace list <nqn> --nsid <nsid>) that the namespace is successfully created with a Block Size of 1024 bytes (1 KiB) instead of 512 bytes.

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.

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

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

1 similar comment
@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test make check arm64

@afreen23
afreen23 merged commit 649a25a into ceph:main Apr 21, 2026
26 of 28 checks passed
@afreen23
afreen23 deleted the fix-namespace-block-size branch April 21, 2026 07:57
@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 649a25a6083cb650020dcf3b1c492d8989067c31^..649a25a6083cb650020dcf3b1c492d8989067c31

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

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