Hi,
Didn't earlier check the journalctl -xe, but only /var/log/ceph logs.
Found out that ceph script is informing that python3 is missing. And indeed
it is missing from the machines. After installation of python3 to other
servers, everything started to work.
Thanks for all!
On Wed, Nov 18, 2020 at 11:44 PM Mika Saari <mika.saari(a)gmail.com> wrote:
Hi,
Thanks for help. Tested creating new ssh config file, and added it to
ceph. Unfortunately this didn't make any change to the current behaviour of
the "ceph orch host add ceph2" command. (Tested restarting sshd, and
finally the machines as well, just in case)
Thanks a lot!
On Wed, Nov 18, 2020 at 10:05 PM Tony Liu <tonyliu0592(a)hotmail.com> wrote:
See if this helps.
* Create "ssh-config".
```
Host *
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
LogLevel ERROR
```
* Add it to cephadm.
```
ceph cephadm set-ssh-config -i ssh-config
```
Then try to add host again.
Tony
-----Original Message-----
From: Mika Saari <mika.saari(a)gmail.com>
Sent: Wednesday, November 18, 2020 11:28 AM
To: ceph-users(a)ceph.io
Subject: [ceph-users] CentOS 8, Ceph Octopus, ssh private key
Hi,
Installing Ceph Octopus using cephadm. I managed to install ceph-
common with cephadm and when trying to add new hosts with "ceph orch
host add ceph2" I get error
"Error EINVAL: Failed to connect to ceph2 (ceph2). Check that the host
is reachable and accepts connection using the cephadm SSH key".
I verified that I am able to ssh login to the ceph2 server with ceph
private_key like it was described in the error message. But since adding
new hosts to the ceph wasn't working, I tried generating the new private
key and updating the public keys to the remote servers with:
# ceph cephadm clear-key
# ceph cephadm generate-key
# ceph cephadm get-pub-key > ceph.pub
# ceph config-key get mgr/cephadm/ssh_identity_key > ceph.priv
# ssh-copy-id -f -i /etc/ceph/ceph.pub root@ceph1
# ssh-copy-id -f -i /etc/ceph/ceph.pub root@ceph2
# ssh-copy-id -f -i /etc/ceph/ceph.pub root@ceph3
And then testing that the private key really is working:
# chmod 600 ceph.priv
# ssh -i ceph.priv root@ceph2
At this point ssh works with passwordless login. But still the ceph
orch host add ceph2 doesn't work (giving exactly the same error)
I also tried restarting the manager with "ceph mgr fail" which was
informed somewhere -> no effect. Also tried rebooting the machines -> no
effect.
Any tips I could still try ?
Thank you very much!
_______________________________________________
ceph-users mailing list -- ceph-users(a)ceph.io To unsubscribe send an
email to ceph-users-leave(a)ceph.io