Hi Antonio - you need to set !requiretty in your sudoers file.  This is documented here: http://docs.ceph.com/docs/jewel/start/quick-ceph-deploy/   but it appears that section may not have been copied into the current docs.

You can test this by running 'ssh sds@node1 sudo whoami' from your admin node.

    -- jacob


On 05/18/2018 09:00 AM, Antonio Novaes wrote:
I tried create new cluster ceph, but on the my first command, received this erro in blue. Searched on the gogle about this erro, but believe that is error of the ssh, and dont of the ceph.

I tried:
alias ssh="ssh -t" on the admin node

I Modifyed the file

Host node01
   Hostname node01.domain.local
   User sds
   PreferredAuthentications publickey
   IdentityFile /home/sds/.ssh/id_rsa

also try,
- start the command wtih sudo
-  Add PermitRootLogin whitout-password on /etc/ssh/sshd_config on the host node01

But, erro hold

[ceph_deploy.new][DEBUG ] Creating new cluster named ceph
[ceph_deploy.new][INFO  ] making sure passwordless SSH succeeds
[node01][DEBUG ] connected to host: cadmfsd001.tjba.jus.br <http://cadmfsd001.tjba.jus.br>
[node01][INFO ] Running command: ssh -CT -o BatchMode=yes node01
[ceph_deploy.new][WARNIN] could not connect via SSH
[ceph_deploy.new][INFO  ] will connect again with password prompt
[node01][DEBUG ] connected to host: sds@node01
[node01][DEBUG ] detect platform information from remote host
[node01][DEBUG ] detect machine type
[ceph_deploy.new][INFO  ] adding public keys to authorized_keys
[node01][DEBUG ] append contents to file
[node01][DEBUG ] connection detected need for sudo
*sudo: I'm sorry, you should have a tty to run sudo*
*[ceph_deploy][ERROR ] RuntimeError: connecting to host: sds@node01 resulted in errors: IOError cannot send (already closed?)*

Someone can help me?

Att,
Antonio Novaes de C. Jr
Analista TIC - Sistema e Infraestrutura
Especialista em Segurança de Rede de Computadores
Information Security Foundation based on ISO/IEC 27002 | ISFS
EXIN Cloud Computing (CLOUDF)
Red Hat Certified Engineer (RHCE)
Red Hat Certified Jboss Administrator (RHCJA)
Linux Certified Engineer (LPIC-2)
Novell Certified Linux Administrator (SUSE CLA)
ID Linux: 481126 | LPI000255169
LinkedIN: Perfil Público <https://www.linkedin.com/in/antonio-novaes-de-carvalho-jr-isfs-rhce-rcja-13860850/>




_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to