more info: When deploying make sure your hosts are all online. If host listed is not reachable, you’ll get traceback like this, and the deployment will stop even if the next host to access is online and available
Adding ssh key to cs8-2
Non-zero exit code 1 from sudo -u root ssh-copy-id -f -i /etc/ceph/ceph.pub -o StrictHostKeyChecking=no root@cs8-2
sudo: stderr /bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/etc/ceph/ceph.pub"
sudo: stderr ssh: connect to host cs8-2 port 22: No route to host
Traceback (most recent call last):
File "/usr/local/bin/cephadm", line 8230, in <module>
main()
File "/usr/local/bin/cephadm", line 8218, in main
r = ctx.func(ctx)
File "/usr/local/bin/cephadm", line 1759, in _default_image
return func(ctx)
File "/usr/local/bin/cephadm", line 4197, in command_bootstrap
out, err, code = call_throws(ctx, ['sudo', '-u', ctx.ssh_user, 'ssh-copy-id', '-f', '-i', ssh_key, '-o StrictHostKeyChecking=no', '%s@%s' % (ctx.ssh_user, split[1])])
File "/usr/local/bin/cephadm", line 1453, in call_throws
raise RuntimeError('Failed command: %s' % ' '.join(command))
RuntimeError: Failed command: sudo -u root ssh-copy-id -f -i /etc/ceph/ceph.pub -o StrictHostKeyChecking=no root@cs8-2