Project

General

Profile

Actions

Fix #48664

closed

attempting to add a host that doesn't have py3 install results in the wrong message

Added by Paul Cuzner over 3 years ago. Updated over 3 years ago.

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

100%

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

Description

if you attempt to add a host that doesn;t have py3, the response is

ceph: root@maint-1 /]# ceph orch host add maint-4
Error EINVAL: Failed to connect to maint-4 (maint-4).
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@maint-4

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@maint-4

So the admin is told to check for the wrong issue

As small change to the remote_connection function can provide this instead
[ceph: root@maint-1 /]# ceph orch host add maint-4
Error EINVAL: Can't communicate with remote host `maint-4`, possibly because python3 is not installed there: cannot send (already closed?)

Actions #1

Updated by Paul Cuzner over 3 years ago

  • Status changed from Fix Under Review to Closed
Actions

Also available in: Atom PDF