Project

General

Profile

Documentation #44905

cephadm troubleshooting SSH errors

Added by Sebastian Wagner 7 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
cephadm
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

<wowas> I'm getting:
<wowas> execnet.gateway_bootstrap.HostNotFound: -F /tmp/cephadm-conf-kbqvkrkw root@10.10.1.2
<wowas> raise OrchestratorError('Failed to connect to %s (%s).  Check that the host is reachable and accepts connections using the cephadm SSH key' % (host, addr)) from e
<wowas> orchestrator._interface.OrchestratorError: Failed to connect to 10.10.1.2 (10.10.1.2).  Check that the host is reachable and accepts connections using the cephadm SSH key

Things users can do:

1. ensure, we can connect to the host via ssh:


[root@mon1 ~]# cephadm shell -- ceph config-key get mgr/cephadm/ssh_identity_key > key
INFO:cephadm:Inferring fsid f8edc08a-7f17-11ea-8707-000c2915dd98
INFO:cephadm:Using recent ceph image docker.io/ceph/ceph:v15
obtained 'mgr/cephadm/ssh_identity_key'
[root@mon1 ~]# chmod 0600 key

If this fails, cephadm doesn't have a key. Fix this by:

[root@mon1 ~]# cephadm shell -- ceph cephadm generate-ssh-key

or
[root@mon1 ~]# cat key | cephadm shell -- ceph cephadm set-ssk-key -i -

2. ensure the ssh config is correct

[root@mon1 ~]# cephadm shell -- ceph cephadm get-ssh-config > config

3. Verify we can connect to the host:

[root@mon1 ~]# ssh -F config -i key root@mon1
ssh: connect to host mon1 port 22: Connection timed out

4. There is a limitation right now. the ssh user is root. Hardcoded.


Related issues

Related to Orchestrator - Bug #45097: cephadm: UX: Traceback, if `orch host add mon1` fails. Resolved

History

#1 Updated by Sebastian Wagner 7 months ago

  • Priority changed from Normal to High

#2 Updated by Sebastian Wagner 7 months ago

  • Description updated (diff)

#3 Updated by Sebastian Wagner 6 months ago

  • Assignee set to Daniel Pivonka

#4 Updated by Zac Dover 6 months ago

<SebastianW> 1. ceph cephadm get-ssh-config > config
<SebastianW> 2. ceph config-key get mgr/cephadm/ssh_identity_key > key
<SebastianW> 3. ssh -F config -i key root@mon1

#5 Updated by Sebastian Wagner 6 months ago

  • Related to Bug #45097: cephadm: UX: Traceback, if `orch host add mon1` fails. added

#6 Updated by Sebastian Wagner 6 months ago

  • Description updated (diff)

#7 Updated by Sebastian Wagner 6 months ago

  • Description updated (diff)

#8 Updated by Daniel Pivonka 6 months ago

  • Assignee changed from Daniel Pivonka to Zac Dover

#9 Updated by Sebastian Wagner 6 months ago

  • Status changed from New to Pending Backport
  • Pull request ID set to 34612

#10 Updated by Sebastian Wagner 6 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF