Skip to content

mgr/dashboard: replace traddr with server_address in NVMeoF CLI - #66822

Merged
Hezko merged 1 commit into
ceph:mainfrom
Hezko:nvme-gw-addr-param
Jan 20, 2026
Merged

Hezko merged 1 commit into
ceph:mainfrom
Hezko:nvme-gw-addr-param

Conversation

@Hezko

@Hezko Hezko commented Jan 7, 2026 •

Copy link
Copy Markdown
Contributor

change traddr to server_addressto be identical as the old CLI. preservedtraddrin addition toserver_addressin listener related commands Also fixed some wront parameters atEndpointDoc` decorators here and there.

the parameter rename is a breaking change, but as much as I know the API doesn't use the traddr parameter, and the break will be only between 9.0 and 9.0z1, so we knowingly decided this is our preferred way forward.

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

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 self-assigned this Jan 7, 2026
@Hezko
Hezko requested a review from a team as a code owner January 7, 2026 10:54
@Hezko
Hezko requested review from cloudbehl and nizamial09 January 7, 2026 10:54
@Hezko
Hezko requested a review from afreen23 January 12, 2026 09:46
@@ -39,8 +39,11 @@ class NVMeoFGateway(RESTController):
@EndpointDoc("Get information about the NVMeoF gateway")
@convert_to_model(model.GatewayInfo)
@handle_nvmeof_error
def list(self, gw_group: Optional[str] = None, traddr: Optional[str] = None):
return NVMeoFClient(gw_group=gw_group, traddr=traddr).stub.get_gateway_info(
def list(self, gw_group: Optional[str] = None, server_address: Optional[str] = None):

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.

even though it looks like a small change, I think its going to break the backward compatibility with the existing clients (not just the dashboard). If we want to have parity with the older CLI, then I'd ask you to keep them both and do something like

traddr = server_address

and maybe deprecate one of it eventually. I think server_address is more meaningful here so I'd be in favor of getting rid of this but only after giving a heads up to the clients.

We never added these things in our Release notes before but probably REST API deprecations should also be there in the release notes. Additionally the EndpointDoc should have had the parameter information so it can be specified there too.

Swagger UI can mark things as deprecated if EndpointDoc has a parameter called deprecated: true but we don't support it yet.
https://swagger.io/docs/specification/v3_0/paths-and-operations/

cc: @afreen23

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What you say makes a lot of sense. Actually we talked about it internally in the team, and knowingly decided to remove the traddr param, mostly since the traddr parameter is new(introduced in 9.0), so currently I didn't find any usages of it in the API, so we assumed deprecating it fast will be less harmful than deprecating it with a long process, hence I still tend to just drop it. wdyt?
I will happily add it to the release notes, do you know how I can do it? never done that before :)

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.

no need, if this a recent change then its fine. probably this didn't have made into any upstream release yet so no upstream notes too.

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

Hezko commented Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@Hezko

Hezko commented Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@Hezko
Hezko force-pushed the nvme-gw-addr-param branch 7 times, most recently from cc05dfd to 5074432 Compare January 20, 2026 08:09
… listener related commands

Signed-off-by: Tomer Haskalovitch <[email protected]>

update openapi.yaml
mertsunacoglu pushed a commit to mertsunacoglu/ceph that referenced this pull request Aug 26, 2026
- the server_addr is used as traddr
- this change is not backported yet hence ceph#66822 renaming to the convention used in tentacle

Signed-off-by: Afreen Misbah <[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.

2 participants