Fix #48664
closedattempting to add a host that doesn't have py3 install results in the wrong message
100%
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?)
Updated by Paul Cuzner over 3 years ago
- Status changed from Fix Under Review to Closed