Skip to content

mgr/dashboard: Nvmeof expand namespace size - #67328

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:edit-namespace-task
Feb 25, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:edit-namespace-task

Conversation

@sagargopale2233

@sagargopale2233 sagargopale2233 commented Feb 12, 2026 •

Copy link
Copy Markdown

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

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

Commit to review:

c068b0d2b9a5b5dc778ae19a66568749620e2f7a

Screenshot From 2026-02-16 15-48-32 Screenshot From 2026-02-16 15-48-19

Screencast:

Screencast.From.2026-02-13.12-23-37.mp4
image

PR description :

Description:

  1. Dedicated Modal: Replaced the generic edit page with a focused modal specifically for expanding namespace size.
  2. Validation Logic: Enforced rules to ensure the new image size is strictly greater than the current size.
  3. Input Constraints: Bound the input's minimum value to the current size, automatically disabling the decrement button to prevent invalid selection.
  4. Enhanced UX: Decoupled the submit button state to allow clicking "Expand" to trigger and display validation errors immediately.
  5. UI Polish: Updated typography and layout to match Carbon Design System standards and added initial focus support.

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 marked this pull request as ready for review February 12, 2026 15:20
@sagargopale2233 sagargopale2233 changed the title mgr/dashboard: Nvmeof edit namespace size mgr/dashboard: Nvmeof expand namespace size Feb 13, 2026
@sagargopale2233
sagargopale2233 marked this pull request as draft February 13, 2026 08:40
@sagargopale2233
sagargopale2233 marked this pull request as ready for review February 13, 2026 08:40
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@pujaoshahu

Copy link
Copy Markdown

Fix linting error
image

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@pujaoshahu

Copy link
Copy Markdown

The test cases are failing, please fix them
image

@sagargopale2233

sagargopale2233 commented Feb 23, 2026 •

Copy link
Copy Markdown
Author

@sagargopale2233 I am very often getting this error while creating namespace,

Image also i am not able to list the namespace, hence can't test the expand functionality

@nmunet The Couldn't lock the OMAP file error occurs when the entered namespace size isn't a multiple of the block size (typically 512 bytes).

To prevent this confusion, I've added a frontend validation check on the Namespace size input field to ensure the value is a multiple of 512.

If a user enters an invalid size like 513, the form will now block submission and display a clear error message: 'Size must be a multiple of the block size'.
Screenshot From 2026-02-23 16-41-50

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

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Feb 23, 2026
@sagargopale2233
sagargopale2233 force-pushed the edit-namespace-task branch 2 times, most recently from 4e1df19 to e7a6ed8 Compare February 24, 2026 09:16
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test make check arm64

@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test make check

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@afreen23
afreen23 merged commit 32b7a72 into ceph:main Feb 25, 2026
6 checks passed
@afreen23
afreen23 deleted the edit-namespace-task branch February 25, 2026 01:24
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Feb 25, 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 32b7a725c59af573fc60e74d734894621372ca6f^..32b7a725c59af573fc60e74d734894621372ca6f

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

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