Project

General

Profile

Actions

Bug #81492

closed
AD AD

orch host add: usage message does not show how to specify more than one label

Bug #81492: orch host add: usage message does not show how to specify more than one label

Added by Anthony D'Atri about 2 months ago. Updated about 2 months ago.

Status:
Backporting
Priority:
Normal
Category:
orchestrator
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella, tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-4070-gcd3b4f097a
Released In:
Upkeep Timestamp:
2026-10-07T07:36:16+00:00

Description

The usage line the ceph CLI builds for orch host add is

orch host add <hostname> [<addr>] [<labels>...] [--maintenance] :  Add a host

Nothing in it says how to specify more than one label. Two forms work: --labels with a comma-separated list, which the #50062 fix added, or labels listed after <addr> separated by spaces:

ceph orch host add host1 --labels mylabel1,mylabel2
ceph orch host add host1 10.0.0.1 mylabel1 mylabel2

The positional form needs <addr>. Without it, ceph orch host add host1 mylabel takes mylabel as the address and then fails to connect to it; that is the #50062 trap. doc/cephadm/host-management.rst gives the synopsis as ceph orch host add <newhost> [<ip>] [<label1> ...], which doesn't show the --labels form either.

https://github.com/ceph/ceph/pull/67071 keeps the command's signature, so every form that works today keeps working. It puts the multi-label syntax in the command's description, which the CLI prints after the usage line, and shows the --labels form with a multi-label example in the docs. I was not able to get the syntax of the code change right at first: an unused usage variable tripped flake8 F841, and then a docstring was at the wrong indentation. The current revision is a correctly indented docstring only.


Related issues 4 (2 open — 2 closed)

Related to Orchestrator - Bug #68748: [RFE] Support adding multiple labels to a ceph host in one commandBackportingAnuradha Gadge

Actions
Related to Orchestrator - Bug #50062: orch host add with multiple labels and no addr ResolvedDaniel Pivonka

Actions
Copied to Orchestrator - Backport #81508: umbrella: orch host add: usage message does not show how to specify more than one labelFix Under ReviewAnthony D'Atri

Actions
Copied to Orchestrator - Backport #81509: tentacle: orch host add: usage message does not show how to specify more than one labelFix Under ReviewAnthony D'Atri

Actions

AD Updated by Anthony D'Atri about 2 months ago Actions #1

  • Subject changed from orch host add: usage implies labels can be given without an address to orch host add: usage message does not show how to specify more than one label
  • Description updated (diff)

AD Updated by Anthony D'Atri about 2 months ago Actions #2

  • Related to Bug #68748: [RFE] Support adding multiple labels to a ceph host in one command added

AD Updated by Anthony D'Atri about 2 months ago Actions #3

  • Related to Bug #50062: orch host add with multiple labels and no addr added

UB Updated by Upkeep Bot about 2 months ago Actions #4

  • Copied to Backport #81508: umbrella: orch host add: usage message does not show how to specify more than one label added

UB Updated by Upkeep Bot about 2 months ago Actions #5

  • Copied to Backport #81509: tentacle: orch host add: usage message does not show how to specify more than one label added

UB Updated by Upkeep Bot about 2 months ago Actions #6

  • Status changed from Fix Under Review to Backporting
  • Merge Commit set to cd3b4f097a00b0103ff1d8a88e52efbc5bf304ea
  • Fixed In set to v21.3.0-4070-gcd3b4f097a
  • Upkeep Timestamp set to 2026-10-07T07:36:16+00:00
Actions

Also available in: PDF Atom