Repository navigation
mgr/dashboard: replace traddr with server_address in NVMeoF CLI - #66822
Conversation
| @@ -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): | |||
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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.
|
jenkins test make check |
|
jenkins test make check arm64 |
cc05dfd to
5074432
Compare
… listener related commands Signed-off-by: Tomer Haskalovitch <[email protected]> update openapi.yaml
5074432 to
ccdcbe9
Compare
- 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]>
change
traddrto 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
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.