Skip to content

mgr/dashboard: introduce traddr for backward compatibility - #68393

Merged
Hezko merged 1 commit into
ceph:mainfrom
Hezko:traddr-compat
Apr 20, 2026
Merged

Hezko merged 1 commit into
ceph:mainfrom
Hezko:traddr-compat

Conversation

@Hezko

@Hezko Hezko commented Apr 15, 2026 •

Copy link
Copy Markdown
Contributor

a while ago we renamed traddr to server_address(#66822). We had some difficulties and decided to keep traddr as a fallback until we will deprecate it later on.

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

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.

@Hezko
Hezko requested review from afreen23 and nizamial09 April 15, 2026 17:31
@Hezko Hezko self-assigned this Apr 15, 2026
@Hezko
Hezko requested a review from a team as a code owner April 15, 2026 17:31
Copilot AI review requested due to automatic review settings April 15, 2026 17:31
@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

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

Reintroduces traddr as a deprecated fallback parameter for NVMeoF dashboard endpoints to preserve backward compatibility after the rename to server_address, ensuring older clients can continue to target specific NVMeoF gateways.

Changes:

  • Add traddr (deprecated) alongside server_address in many NVMeoF REST/CLI controller method signatures.
  • Coalesce server_address from server_address/traddr in handlers before creating NVMeoFClient.
  • Expand @EndpointDoc parameter documentation to include server_address and deprecated traddr across NVMeoF endpoints.
Comments suppressed due to low confidence (2)

src/pybind/mgr/dashboard/controllers/nvmeof.py:2358

  • gw_group is required in the method signature (gw_group: str), but the EndpointDoc marks it as optional (Param(..., True, None)). Please align the docs with the implementation (or adjust the signature) so API consumers see the correct required/optional behavior.
        @Endpoint(method='DELETE', path="/namespace/{nsid}/host")
        @EndpointDoc("Remove on or more initiator hosts from an NVMeoF subsystem",
                     parameters={

src/pybind/mgr/dashboard/controllers/nvmeof.py:2320

  • gw_group is required in the method signature (gw_group: str), but the EndpointDoc marks it as optional (Param(..., True, None)). This makes the generated API docs inaccurate; either make gw_group optional in the handler or update the doc to mark it required.
                         "host_nqn": Param(str, 'Comma separated list of NVMeoF host NQN.'),
                         "force": Param(
                             bool,

@Hezko
Hezko force-pushed the traddr-compat branch 5 times, most recently from daebb8c to 5433baa Compare April 15, 2026 18:48
@Hezko
Hezko requested a review from Copilot April 15, 2026 18:48

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

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

lgtm, just wondering, can you give a context of what the error was?

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

Hezko commented Apr 16, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test windows

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

@Hezko just confused, was it that you want to get rid of it in umbrella ?

@Hezko

Hezko commented Apr 17, 2026

Copy link
Copy Markdown
Contributor Author

@Hezko just confused, was it that you want to get rid of it in umbrella ?

@afreen23 Yes, I add it so we have both params, and then we can be aligned with both tentacle and ds. this is to solve the current state which is: every addition of cli endpoints requires manual changes in the backport to adapt all "server_address" occurences to "traddr". This is easy to forget, error prone and confusing to the user.
Ensuring they all have both server_address and traddr will remove this barrier and will make the backports of new cli endpoints trivial.
Then, in umbrella we will delete the traddr param from all places.
Does this makes sense?

@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

… for backward compatibilty

Signed-off-by: Tomer Haskalovitch <[email protected]>
@Hezko
Hezko merged commit e9562b7 into ceph:main Apr 20, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Apr 20, 2026
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