Project

General

Profile

Actions

Documentation #44905

closed

cephadm troubleshooting SSH errors

Added by Sebastian Wagner about 4 years ago. Updated almost 4 years 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 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Sebastian Wagner about 4 years ago

  • Priority changed from Normal to High
Actions #2

Updated by Sebastian Wagner about 4 years ago

  • Description updated (diff)
Actions #3

Updated by Sebastian Wagner about 4 years ago

  • Assignee set to Daniel Pivonka
Actions #4

Updated by Zac Dover about 4 years 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

Actions #5

Updated by Sebastian Wagner about 4 years ago

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

Updated by Sebastian Wagner about 4 years ago

  • Description updated (diff)
Actions #7

Updated by Sebastian Wagner about 4 years ago

  • Description updated (diff)
Actions #8

Updated by Daniel Pivonka about 4 years ago

  • Assignee changed from Daniel Pivonka to Zac Dover
Actions #9

Updated by Sebastian Wagner about 4 years ago

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

Updated by Sebastian Wagner almost 4 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF