Red Hat Bugzilla – Bug 837690
[rhevm-log-collector] log-collector should not prompt for hosts passwords
Last modified: 2014-07-10 20:09:09 EDT
Description of problem:
log-collector should not promt for hosts passwords
[root@vm-17-67 ~]# rhevm-log-collector collect
Please provide the REST API password for the admin@internal RHEV-M user (CTRL+D to skip):
About to collect information from 7 hypervisors. Continue? (Y/n): y
INFO: Gathering information from selected hypervisors...
INFO: collecting information from white-vdse.eng.lab.tlv.redhat.com
INFO: collecting information from nari11.eng.lab.tlv.redhat.com
INFO: collecting information from nari13.eng.lab.tlv.redhat.com
INFO: collecting information from loki11.eng.lab.tlv.redhat.com
INFO: collecting information from nari12.eng.lab.tlv.redhat.com
INFO: collecting information from white-vdsg.eng.lab.tlv.redhat.com
INFO: collecting information from nott01.eng.lab.tlv.redhat.com
firstname.lastname@example.org's password: email@example.com's password: firstname.lastname@example.org's password: email@example.com's password: firstname.lastname@example.org's password: email@example.com's password: firstname.lastname@example.org's password:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Try to collect logs
The root cause of this problem is that your installer (or your config) hasn't properly set up public/private key authentication between the Engine and the node. You can easily confirm this with the following SSH command. If you execute the command and are prompted for a PW then you know that public/private key auth is not working.
Further, if you are prompted for a PW then you shd know that this is not a LC problem. It is an installer problem or an engine problem. The LC will manifest the problem by prompting you for a PW but it is not the source of the problem.
ssh -i /etc/pki/ovirt-engine/keys/engine_id_rsa root@<node here>
Closing the bz. Issue was on my local machine.
I still can reproduce this on si13 build. log-collector promts for passwords and this command doesn't works for me.
[root@vm-17-5 yum.repos.d]# ssh -i /etc/pki/ovirt-engine/keys/engine_id_rsa email@example.com
As Keith said in Comment 2 , seems like public/private key authentication wasn't set up.
There are 2 ends for above public/private auth isse:
1 - rhevm-setup that produces the host SSH keys
2 - vdsm_bootsrap that configures the host to allow the ssh key-pair access
How did you install the nari11.eng.lab node?
Can you please check if ~root/.ssh/authorized_keys has anything and/or the correct public key?
Public key can be acquired using:
# ssh-keygen -y -f /etc/pki/ovirt-engine/keys/engine_id_rsa
Alon, I tested it once again and it works. Key was copied to the host and log-collect does not promts for a password any more.
*** Bug 855624 has been marked as a duplicate of this bug. ***