Repository navigation
mgr/dashboard: Add option should be enabled even if allow all host access is enabled in nvme/tcp - #68180
Conversation
8685db5 to
a408016
Compare
|
@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 |
|
Some issue with subsystem @pujaoshahu |
Recheck again |
|
I’m able to add the subsystem successfully. Please find the reference screencast attached. Screencast.From.2026-04-16.15-25-48.mp4 |
|
jenkins test make check arm64 |
|
jenkins test dashboard |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
457ce39 to
5fab760
Compare
afreen23
left a comment
There was a problem hiding this comment.
please add some unit tests for behvioral changes.
…cess is enabled in nvme/tcp Fixes: https://tracker.ceph.com/issues/75509 Signed-off-by: pujaoshahu <[email protected]>
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
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. |
…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]>
…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]>





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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.