Repository navigation
mgr/dashboard: introduce traddr for backward compatibility - #68393
Conversation
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
There was a problem hiding this comment.
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) alongsideserver_addressin many NVMeoF REST/CLI controller method signatures. - Coalesce
server_addressfromserver_address/traddrin handlers before creatingNVMeoFClient. - Expand
@EndpointDocparameter documentation to includeserver_addressand deprecatedtraddracross NVMeoF endpoints.
Comments suppressed due to low confidence (2)
src/pybind/mgr/dashboard/controllers/nvmeof.py:2358
gw_groupis 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_groupis 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 makegw_groupoptional 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,
daebb8c to
5433baa
Compare
nizamial09
left a comment
There was a problem hiding this comment.
lgtm, just wondering, can you give a context of what the error was?
|
jenkins test windows |
@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. |
|
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]>
a while ago we renamed
traddrtoserver_address(#66822). We had some difficulties and decided to keeptraddras 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
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.