Actions
Documentation #44905
closedcephadm troubleshooting SSH errors
% 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.
Updated by Sebastian Wagner about 4 years ago
- Priority changed from Normal to High
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
Updated by Sebastian Wagner about 4 years ago
- Related to Bug #45097: cephadm: UX: Traceback, if `orch host add mon1` fails. added
Updated by Daniel Pivonka about 4 years ago
- Assignee changed from Daniel Pivonka to Zac Dover
Updated by Sebastian Wagner about 4 years ago
- Status changed from New to Pending Backport
- Pull request ID set to 34612
Updated by Sebastian Wagner almost 4 years ago
- Status changed from Pending Backport to Resolved
Actions