Project

General

Profile

Actions

Bug #50062

closed
DP DP

orch host add with multiple labels and no addr

Bug #50062: orch host add with multiple labels and no addr

Added by Daniel Pivonka over 5 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Daniel Pivonka
Category:
cephadm
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v17.0.0-2801-g91eb165167
Released In:
v17.2.0~2435
Upkeep Timestamp:
2025-07-14T17:56:12+00:00

Description

Host add operation throws error saying connection issue as below, if add operation is executed with labels and skipped address with it.

No host address is provided, it takes 'mon' as the addr but the error doesnt really tell you thats the problem
-----------------------------
  1. ceph orch host add <host> [<labels>]

[ceph: root@vm-00 /]# ceph orch host add vm-01 mon osd
Error EINVAL: Failed to connect to vm-01 (mon).
Please make sure that the host is reachable and accepts connections using the cephadm SSH key

To add the cephadm SSH key to the host:

ceph cephadm get-pub-key > ~/ceph.pub
ssh-copy-id -f -i ~/ceph.pub root@vm-01

To check that the host is reachable:

ceph cephadm get-ssh-config > ssh_config
ceph config-key get mgr/cephadm/ssh_identity_key > ~/cephadm_private_key
ssh -F ssh_config -i ~/cephadm_private_key root@vm-01

Worked when address is provided:
--------------------------------

[ceph: root@vm-00 /]# ceph orch host add vm-01 192.168.0.123 mon osd
Added host 'vm-01'

Worked when empty address sting address is provided:
-----------------------------------------------------

[ceph: root@vm-00 /]# ceph orch host add vm-01 '' mon osd
Added host 'vm-01'

The node was reachable, which is proved when adding it to the cluster when addr positional argument is filled.
But Host add with label(s) and not having address positional argument fails by throwing ssh connection error message, here error message is misleading.

the orch host add command can not add a host with multiple labels and no addr without using a empty string in the addr positional argument
ceph host add vm-01 --labels=label1,label2 saves a single label "label1,label2"


Related issues 1 (0 open — 1 closed)

Related to Orchestrator - Bug #81492: orch host add: usage message does not show how to specify more than one labelBackportingAnthony D'Atri

Actions

DP Updated by Daniel Pivonka over 5 years ago Actions #1

  • Status changed from New to Fix Under Review
  • Pull request ID set to 40508

KD Updated by Ken Dreyer over 5 years ago Actions #2

  • Backport set to pacific

SW Updated by Sage Weil over 5 years ago Actions #3

  • Status changed from Fix Under Review to Pending Backport

DP Updated by Daniel Pivonka over 5 years ago Actions #4

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #5

  • Merge Commit set to 91eb165167185e65aec1d15e69644dee894fec87
  • Fixed In set to v17.0.0-2801-g91eb165167
  • Released In set to v17.2.0~2435
  • Upkeep Timestamp set to 2025-07-14T17:56:12+00:00

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

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

Also available in: PDF Atom