Skip to content

mgr/dashboard: Add option should be enabled even if allow all host access is enabled in nvme/tcp - #68180

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:bug-13712
Jul 1, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:bug-13712

Conversation

@pujaoshahu

@pujaoshahu pujaoshahu commented Apr 2, 2026 •

Copy link
Copy Markdown
Screencast.From.2026-04-02.17-02-50.mp4

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

Signed-off-by: pujaoshahu [email protected]


Summery:

This PR fixes issues on the NVMe/TCP Initiators page related to the “Allow all hosts” behavior and UI updates.
Added a proper handler for the “Edit host access” link in the alert banner, making it functional.
Ensured that after switching from “Allow all hosts” to restricted access via the Add Initiator form, the initiators table updates immediately and the alert panel is correctly dismissed.
Improved the hasAllHostsAllowed() logic to avoid relying solely on the * wildcard, making the check more reliable even when backend updates are delayed.

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 Review in progress in Ceph-Dashboard Apr 6, 2026
@pujaoshahu
pujaoshahu force-pushed the bug-13712 branch 2 times, most recently from 8685db5 to a408016 Compare April 10, 2026 07:35
@pujaoshahu
pujaoshahu requested a review from afreen23 April 10, 2026 07:36
@dnyanee1997

Copy link
Copy Markdown
Contributor

@pujaoshahu , i am not able to delete Gateway node getting 500 server error.

Screencast.From.2026-04-10.14-56-01.mp4

@pujaoshahu

Copy link
Copy Markdown
Author

@pujaoshahu , i am not able to delete Gateway node getting 500 server error.

Screencast.From.2026-04-10.14-56-01.mp4

We have a separate PR for this—please refer to it
#68302

@dnyanee1997

Copy link
Copy Markdown
Contributor

Some issue with subsystem @pujaoshahu
image (1)

@pujaoshahu

Copy link
Copy Markdown
Author

Some issue with subsystem @pujaoshahu image (1)

Recheck again

@pujaoshahu

Copy link
Copy Markdown
Author

I’m able to add the subsystem successfully. Please find the reference screencast attached.

Screencast.From.2026-04-16.15-25-48.mp4

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

Fix Make Check.

Tested locally.
LGTM

Thanks @pujaoshahu

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

@cloudbehl

Copy link
Copy Markdown
Contributor

Puja quick review, maybe its not for this PR but doesn't look good=.

Notification just looks weird to me. We have created subsystem and which subsystem is created. Should just be part of it.

some step created, is something doesn't make sense. We can either say resource created or we can skip mentioning them.

image

Why is all text in bold. Maybe just resource should be. If this is generic behaviour we would need to fix it.

image

Breadcrums and heading is not inclined.

image

@Pegonzal

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test dashboard

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

please add some unit tests for behvioral changes.

@github-project-automation github-project-automation Bot moved this from Review in progress to Reviewer approved in Ceph-Dashboard Jul 1, 2026
@afreen23
afreen23 merged commit cfe1230 into ceph:main Jul 1, 2026
6 checks passed
@afreen23
afreen23 deleted the bug-13712 branch July 1, 2026 10:51
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

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 cfe12305fb1530d7163b687986f59e964c54d610^..cfe12305fb1530d7163b687986f59e964c54d610

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

tchaikov added a commit to tchaikov/ceph that referenced this pull request Jul 2, 2026
…lict

mgr-dashboard-frontend-unittests has been failing on main since 2026-07-01,
unrelated to whatever PR triggers it. Bisected to cfe1230, the merge
commit for PR ceph#68180.

6182e67 ("mgr/dashboard: NVMe Onboarding Setup Cards") moved gateway
group selection out of NvmeofSubsystemsComponent and
NvmeofNamespacesListComponent into a new NvmeofGatewayGroupFilterComponent,
dropping gwGroups, updateGroupSelectionState, handleGatewayGroupsError,
onGroupClear, and getSubsystems from both. Clean on its own.

PR ceph#68180 forked from main in April, before that refactor existed, and
added three new tests against the old API. Also clean on its own, and never
rebased. Both PRs only touch lines the other doesn't, so when ceph#68180 merged
34 minutes after 6182e67, git's 3-way merge combined them without a
conflict. The merge is the only place the bug exists: new tests calling
methods the sibling parent had already deleted. TypeError at runtime,
TS2339/TS2551 from tsc, every run since. CI never caught it: GitHub was
showing ceph#68180's make check as green from a run a full day older than
6182e67.

nvmeof-namespaces-list.component.spec.ts: the dedup test is real, current
logic, it just called the old listNamespaces() instead of fetchData().
Fixed the call. The other two duplicate NvmeofGatewayGroupFilterComponent's
own spec; removed.

nvmeof-subsystems.component.spec.ts: same story, all three duplicate the
filter component's spec; removed.

Both removed error tests also checked preventDefault() on the error object,
which had no coverage elsewhere. Added that to
NvmeofGatewayGroupFilterComponent's spec, and hit a second bug while writing
it: the file's throwError(() => err) is the RxJS 7 factory overload, this
project is on RxJS 6.6.3, so it was emitting the arrow function itself as
the error. The existing error test never noticed since it only checks side
effects, not the error's identity. Used throwError(err) instead.

Verified: jest passes on all three spec files (was 6 failing), tsc -p
tsconfig.spec.json --noEmit is clean (was 17 errors), full block/nvmeof
sweep is 29/29 suites, 216/216 tests.

Fixes: cfe1230
Signed-off-by: Kefu Chai <[email protected]>
@tchaikov

tchaikov commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

@afreen23 i suspect that this change introduced a regression. and created a fix at #69894 . would be great if you could take a look.

AnuragRaut08 pushed a commit to AnuragRaut08/ceph that referenced this pull request Sep 30, 2026
…lict

mgr-dashboard-frontend-unittests has been failing on main since 2026-07-01,
unrelated to whatever PR triggers it. Bisected to cfe1230, the merge
commit for PR ceph#68180.

6182e67 ("mgr/dashboard: NVMe Onboarding Setup Cards") moved gateway
group selection out of NvmeofSubsystemsComponent and
NvmeofNamespacesListComponent into a new NvmeofGatewayGroupFilterComponent,
dropping gwGroups, updateGroupSelectionState, handleGatewayGroupsError,
onGroupClear, and getSubsystems from both. Clean on its own.

PR ceph#68180 forked from main in April, before that refactor existed, and
added three new tests against the old API. Also clean on its own, and never
rebased. Both PRs only touch lines the other doesn't, so when ceph#68180 merged
34 minutes after 6182e67, git's 3-way merge combined them without a
conflict. The merge is the only place the bug exists: new tests calling
methods the sibling parent had already deleted. TypeError at runtime,
TS2339/TS2551 from tsc, every run since. CI never caught it: GitHub was
showing ceph#68180's make check as green from a run a full day older than
6182e67.

nvmeof-namespaces-list.component.spec.ts: the dedup test is real, current
logic, it just called the old listNamespaces() instead of fetchData().
Fixed the call. The other two duplicate NvmeofGatewayGroupFilterComponent's
own spec; removed.

nvmeof-subsystems.component.spec.ts: same story, all three duplicate the
filter component's spec; removed.

Both removed error tests also checked preventDefault() on the error object,
which had no coverage elsewhere. Added that to
NvmeofGatewayGroupFilterComponent's spec, and hit a second bug while writing
it: the file's throwError(() => err) is the RxJS 7 factory overload, this
project is on RxJS 6.6.3, so it was emitting the arrow function itself as
the error. The existing error test never noticed since it only checks side
effects, not the error's identity. Used throwError(err) instead.

Verified: jest passes on all three spec files (was 6 failing), tsc -p
tsconfig.spec.json --noEmit is clean (was 17 errors), full block/nvmeof
sweep is 29/29 suites, 216/216 tests.

Fixes: cfe1230
Signed-off-by: Kefu Chai <[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.

9 participants