Skip to content

mgr/dashboard: fix listener add errors - #68745

Merged
Hezko merged 1 commit into
ceph:mainfrom
Hezko:bugfix-13279
May 31, 2026
Merged

Hezko merged 1 commit into
ceph:mainfrom
Hezko:bugfix-13279

Conversation

@Hezko

@Hezko Hezko commented May 5, 2026

Copy link
Copy Markdown
Contributor

Some internal warnings were treated like errors

Before:

[root@test-node1 ~]# ceph nvmeof listener add --nqn=nqn.2016-06.io.spdk:cnode5.mygroup1 --host-name=test-node2 --traddr=********
Error EINVAL: Host name mismatch, listener will only be active when the appropriate gateway is up

After:

[root@test-node1 ~]# ceph nvmeof listener add --nqn=nqn.2016-06.io.spdk:cnode5.mygroup1 --host-name=test-node2 --traddr=********
Adding nqn.2016-06.io.spdk:cnode5.mygroup1 listener at ********:4420: Successful

Before

fixes: https://tracker.ceph.com/issues/76418

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.

Copilot AI 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.

Pull request overview

This PR changes the Dashboard NVMe-oF error handling path so that a gateway-side EREMOTE status from listener creation is no longer surfaced as a hard failure, and adds unit coverage around the shared NVMe-oF error decorator.

Changes:

  • Treat errno.EREMOTE as non-fatal inside handle_nvmeof_error.
  • Add unit tests covering success, error, gRPC exception, and missing-status cases for the decorator.
  • Extend test coverage with a listener-add regression scenario based on the reported hostname-mismatch warning.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
src/pybind/mgr/dashboard/services/nvmeof_client.py Broadens the shared NVMe-oF error decorator to allow EREMOTE responses through without raising DashboardException.
src/pybind/mgr/dashboard/tests/test_nvmeof_client.py Adds new decorator-focused unit tests, including the listener-add EREMOTE regression case.

@Hezko
Hezko force-pushed the bugfix-13279 branch 3 times, most recently from 5e69cdd to d9548ac Compare May 5, 2026 10:01
@Hezko

Hezko commented May 18, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@nizamial09 nizamial09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make check failure might be real on lint and py3
https://jenkins.ceph.com/job/ceph-pull-requests/181504

[0m: [NON-XML-CHAR-0x1B][1;31mW293[NON-XML-CHAR-0x1B][0m blank line contains whitespace
1     E127 continuation line over-indented for visual indent
1     E303 too many blank lines (3)
8     W293 blank line contains whitespace
lint: exit 1 (1.13 seconds) /ceph/src/pybind/mgr/dashboard> flake8 pid=191460
  lint: FAIL code 1 (32.91=setup[31.78]+cmd[1.13] seconds)
  evaluation failed :( (33.07 seconds)

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard May 20, 2026
@Hezko
Hezko force-pushed the bugfix-13279 branch 3 times, most recently from a330817 to 420537f Compare May 20, 2026 22:33
@Hezko

Hezko commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@Hezko

Hezko commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

1 similar comment
@Hezko

Hezko commented May 31, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@Hezko
Hezko merged commit 03bb4f7 into ceph:main May 31, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard May 31, 2026
@Hezko
Hezko deleted the bugfix-13279 branch May 31, 2026 08:04
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