RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 837690 - [rhevm-log-collector] log-collector should not prompt for hosts passwords
Summary: [rhevm-log-collector] log-collector should not prompt for hosts passwords
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.3
Hardware: x86_64
OS: Linux
high
unspecified
Target Milestone: rc
: ---
Assignee: Alon Bar-Lev
QA Contact: Haim
URL:
Whiteboard: infra
: 855624 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-04 19:44 UTC by Kiril Nesenko
Modified: 2014-07-11 00:09 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-04 09:45:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Kiril Nesenko 2012-07-04 19:44:43 UTC
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
root.lab.tlv.redhat.com's password: root.lab.tlv.redhat.com's password: root.lab.tlv.redhat.com's password: root.lab.tlv.redhat.com's password: root.lab.tlv.redhat.com's password: root.lab.tlv.redhat.com's password: root.lab.tlv.redhat.com's password:



Version-Release number of selected component (if applicable):
rhevm-log-collector-3.1.0-1.el6ev.noarch

How reproducible:
Always

Steps to Reproduce:
1. Try to collect logs
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Keith Robertson 2012-07-09 20:15:08 UTC
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>

Comment 3 Kiril Nesenko 2012-07-11 14:59:49 UTC
Closing the bz. Issue was on my local machine.

Comment 4 Kiril Nesenko 2012-08-02 12:26:07 UTC
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 root.lab
root.lab's password:

As Keith said in  Comment 2 , seems like public/private key authentication wasn't set up.

Comment 6 Barak 2012-08-26 13:14:33 UTC
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

Comment 7 Alon Bar-Lev 2012-08-27 12:59:04 UTC
Hello Kiril,

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

Thanks!

Comment 8 Kiril Nesenko 2012-09-04 09:45:48 UTC
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.
Closing.

Comment 9 Alon Bar-Lev 2012-09-27 11:26:47 UTC
*** Bug 855624 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.