Project

General

Profile

Actions

Bug #45286

closed

cephadm: Adding hosts to the cluster fails

Added by max liccardo about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
cephadm
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

hi,
using centos8 can't add an host to the cluster via cephadm.
Following the docs i was able to boostrap a new cluster but asap i try to add another hosts i get an error

c8-oc-osd1 is my host I'm trying to add
c8-oc-admin is my admin node previously configured

so, when i try to add c8-oc-osd1:

[root@c8-oc-admin ceph]#  ssh-copy-id -f -i /etc/ceph/ceph.pub root@c8-oc-osd1
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/etc/ceph/ceph.pub" 
root@c8-oc-osd1's password: 

Number of key(s) added: 1

Now try logging into the machine, with:

ssh 'root@c8-oc-osd1'

and check to make sure that only the key(s) you wanted were added.

ok, then

[root@c8-oc-admin ceph]#  ceph orch host add c8-oc-osd1
Error ENOENT: Failed to connect to c8-oc-osd1 (c8-oc-osd1).  Check that the host is reachable and accepts connections using the cephadm SSH key
you may want to run: 
> ssh -F =(ceph cephadm get-ssh-config) -i =(ceph config-key get mgr/cephadm/ssh_identity_key) root@c8-oc-osd1

and

ssh -F =(ceph cephadm get-ssh-config) -i =(ceph config-key get mgr/cephadm/ssh_identity_key) root@c8-oc-osd1
-bash: syntax error near unexpected token `('
Actions #1

Updated by Sebastian Wagner almost 4 years ago

  • Description updated (diff)

Right

command =(other command)

is a zsh-ism. I need to find a different example here.

Does https://docs.ceph.com/docs/master/cephadm/troubleshooting/#ssh-errors work for you?

Actions #2

Updated by Sebastian Wagner almost 4 years ago

  • Status changed from New to Need More Info
Actions #3

Updated by Sebastian Wagner almost 4 years ago

  • Status changed from Need More Info to Closed
Actions

Also available in: Atom PDF