Repository navigation
mgr/orchestrator: show how to give orch host add more than one label - #67071
Conversation
|
Docs lgtm. Seems like PR 66835 might need to be backported before this one, I'll put that to the top of the queue next week if you intend to backport this. |
|
I tend to mess things up trying to backport, but go for it if you have the chops. This is relatively minor. |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins make check |
|
jenkins test make check |
1 similar comment
|
jenkins test make check |
|
jenkins retest this please |
1 similar comment
|
jenkins retest this please |
batrick
left a comment
There was a problem hiding this comment.
orchestrator/module.py:501:9: F841 local variable 'usage' is assigned to but never used
1 F841 local variable 'usage' is assigned to but never used
|
The button to accept Patrick's suggest claims to sign off the new commit, which didn't used to happen, so hopefully that doesn't mess things up here now. |
|
jenkins retest this please |
1 similar comment
|
jenkins retest this please |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
|
Bump |
| """Add a host | ||
| Usage: | ||
| ceph orch host add <newhost> [<ip>] [--labels <label1>[,<label2>...]] | ||
| """ |
There was a problem hiding this comment.
The indent here is invalid and will cause a syntax error (not merely a linter error). The opening triple quote must be aligned with the same level of indent the previous code had.
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
803b245 to
32bc988
Compare
|
Reopened and reworked, rebased onto current main as two commits (code, docs):
Tests: Assisted by Claude Opus-5.5 |
32bc988 to
fa4b8eb
Compare
|
Squashed into one commit, as requested. The tracker for backports is https://tracker.ceph.com/issues/81492, and the description now references it. |
The usage line the CLI builds for orch host add is orch host add <hostname> [<addr>] [<labels>...] [--maintenance] and the command's description is only "Add a host", so nothing says how to give more than one label. Two forms work: --labels with a comma-separated list, or labels listed after <addr> separated by spaces. The positional form needs <addr>; without it, "ceph orch host add host1 mylabel" takes mylabel as the address. Say so in the description, which the CLI prints after the usage line, and show the --labels form, with a multi-label example, in the host management docs. Signed-off-by: Anthony D'Atri <[email protected]> Assisted by Claude Opus-5.5
fa4b8eb to
5003381
Compare
|
I reworded the docstring and the description around the actual gap: nothing in the old message showed how to give more than one label. The code change is still docstring-only, in one commit. |
code now works
|
failures appear to be unrelated. |
|
jenkins test dashboard cephadm |
|
jenkins test rook e2e |
The usage line the CLI generates for
ceph orch host addisNothing in it says how to give more than one label. Two forms work:
--labelswith a comma-separated list (added by the https://tracker.ceph.com/issues/50062 fix), or labels listed after<addr>separated by spaces. The positional form needs<addr>; without it,ceph orch host add host1 mylabeltakesmylabelas the address, which is the #50062 confusion.The command's signature is unchanged, so every form that works today keeps working. The command's description, which the CLI prints after the usage line, now gives the multi-label syntax:
The docs now show the
--labelsform in the synopsis, with a multi-label example.Tested:
orchestrator/tests(28 passed) and flake8 under the mgr tox config (clean). The parse behavior above was checked withceph_argparse.validate_commandagainst the generated signature.Fixes: https://tracker.ceph.com/issues/81492
Assisted by Claude Opus-5.5
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.