Bug 784579

Summary: oVirt-Engine-LogCollector - Need to press on "Enter" button to see the next question: "postgressql password"
Product: [Retired] oVirt Reporter: Ortal <ogvura>
Component: ovirt-engine-logcollectorAssignee: Barak <bazulay>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, iheim, mgoldboi, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-17 07:26:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ortal 2012-01-25 12:57:42 UTC
Description of problem:

oVirt-Engine-LogCollector - Need to click on "Enter" button to see the next question: "postgressql password"

Version-Release number of selected component (if applicable):
ovirt-engine-log-collector-3.0.0_0001-1.3.fc16.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Run engine-log-collector tool
2. When asking to collect logs from all hosts --> choose y --> Click enter
  
Actual results:

To see the next question regarding postgresql password you should press on "Enter" button

Expected results:

Should see the question after collecting from hosts is finished, without pressing on "Enter" button

Additional info:
About to collect information from 2 hypervisors. Continue? (Y/n): y
INFO: Gathering information from selected hypervisors...
INFO: collecting information from navy-vds3.qa.lab.tlv.redhat.com
INFO: collecting information from navy-vds1.qa.lab.tlv.redhat.com
root.lab.tlv.redhat.com's password: root.lab.tlv.redhat.com's password:
DEBUG: returncode(0)
DEBUG: STDOUT(
sosreport (version 2.1)

This utility will collect some detailed  information about the
hardware and setup of your Fedora system.
The information is collected and an archive is  packaged under
/tmp, which you can send to a support representative.
Fedora will use this information for diagnostic purposes ONLY
and it will be considered confidential information.

This process may take a while to complete.
No changes will be made to your system.


  Running plugins. Please wait ...

  Completed [11/11] ...
Creating compressed archive...

Your sosreport has been generated and saved in:
  /tmp/sosreport-navy-vds1-20120125103736-187b.tar.xz

The md5sum is: ffc402701c553714c54c3b413136187b

Please send this file to your support representative.

)
DEBUG: STDERR(Warning: Identity file /etc/pki/engine/keys/engine_id_rsa not accessible: No such file or directory.
)
DEBUG: filename(sosreport-navy-vds1-20120125103736-187b.tar.xz)
DEBUG: path(/tmp/sosreport-navy-vds1-20120125103736-187b.tar.xz)
DEBUG: checksum(ffc402701c553714c54c3b413136187b)
root.lab.tlv.redhat.com's password:
DEBUG: returncode(0)
DEBUG: STDOUT(
sosreport (version 2.1)

This utility will collect some detailed  information about the
hardware and setup of your Fedora system.
The information is collected and an archive is  packaged under
/tmp, which you can send to a support representative.
Fedora will use this information for diagnostic purposes ONLY
and it will be considered confidential information.

This process may take a while to complete.
No changes will be made to your system.


  Running plugins. Please wait ...

  Completed [11/11] ...
Creating compressed archive...

Your sosreport has been generated and saved in:
  /tmp/sosreport-navy-vds3-20120125103805-7647.tar.xz

The md5sum is: d3fe5fcf5e3964c9a810478b9a017647

Please send this file to your support representative.

)
DEBUG: STDERR(Warning: Identity file /etc/pki/engine/keys/engine_id_rsa not accessible: No such file or directory.
)
DEBUG: filename(sosreport-navy-vds3-20120125103805-7647.tar.xz)
DEBUG: path(/tmp/sosreport-navy-vds3-20120125103805-7647.tar.xz)
DEBUG: checksum(d3fe5fcf5e3964c9a810478b9a017647)
root.lab.tlv.redhat.com's password:
DEBUG: returncode(0)
DEBUG: STDOUT()
DEBUG: STDERR(Warning: Identity file /etc/pki/engine/keys/engine_id_rsa not accessible: No such file or directory.
)
root.lab.tlv.redhat.com's password:
DEBUG: returncode(0)
DEBUG: STDOUT()
DEBUG: STDERR(Warning: Identity file /etc/pki/engine/keys/engine_id_rsa not accessible: No such file or directory.
)
root.lab.tlv.redhat.com's password:
DEBUG: returncode(0)
DEBUG: STDOUT()
DEBUG: STDERR(Warning: Identity file /etc/pki/engine/keys/engine_id_rsa not accessible: No such file or directory.
)
root.lab.tlv.redhat.com's password:
DEBUG: returncode(0)
DEBUG: STDOUT()
DEBUG: STDERR(Warning: Identity file /etc/pki/engine/keys/engine_id_rsa not accessible: No such file or directory.
)
root.lab.tlv.redhat.com's password:
DEBUG: returncode(0)
DEBUG: STDOUT(Wed, 25 Jan 2012 08:38:36 +0000
)
DEBUG: STDERR(Warning: Identity file /etc/pki/engine/keys/engine_id_rsa not accessible: No such file or directory.
)
DEBUG: host <navy-vds1.qa.lab.tlv.redhat.com> time: 2012-01-25T08:38:36
DEBUG: local <localhost> time: 2012-01-25T08:39:26.282401
INFO: finished collecting information from navy-vds1.qa.lab.tlv.redhat.com


DEBUG: returncode(255)
DEBUG: STDOUT()
DEBUG: STDERR(Warning: Identity file /etc/pki/engine/keys/engine_id_rsa not accessible: No such file or directory.
Connection closed by 10.35.102.23
)
ERROR: Failed to collect logs from: navy-vds3.qa.lab.tlv.redhat.com; Warning: Identity file /etc/pki/engine/keys/engine_id_rsa not accessible: No such file or directory.
Connection closed by 10.35.102.23

DEBUG: Traceback (most recent call last):
DEBUG:   File "/usr/bin/engine-log-collector", line 462, in run
DEBUG:     stdout = self.caller.call('%(ssh_cmd)s "/bin/date -uR"')
DEBUG:   File "/usr/bin/engine-log-collector", line 84, in call
DEBUG:     raise Exception(stderr)
DEBUG: Exception: Warning: Identity file /etc/pki/engine/keys/engine_id_rsa not accessible: No such file or directory.
DEBUG: Connection closed by 10.35.102.23
DEBUG:
DEBUG: Configuration for navy-vds3.qa.lab.tlv.redhat.com:
DEBUG: {'archive_name': 'navy-vds3.qa.lab.tlv.redhat.com-sosreport-navy-vds3-20120125103805-7647.tar.xz',
DEBUG:  'bc_reports': 'vdsm,general,networking,hardware,process,yum,filesys',
DEBUG:  'checksum': 'd3fe5fcf5e3964c9a810478b9a017647',
DEBUG:  'enable_jmx': False,
DEBUG:  'engine': 'localhost:8443',
DEBUG:  'filename': 'sosreport-navy-vds3-20120125103805-7647.tar.xz',
DEBUG:  'hostname': 'navy-vds3.qa.lab.tlv.redhat.com',
DEBUG:  'hosts': set([('ZVIDC', 'ZVIC', 'navy-vds1.qa.lab.tlv.redhat.com'),
DEBUG:                ('ZVIDC', 'ZVIC', 'navy-vds3.qa.lab.tlv.redhat.com')]),
DEBUG:  'hypervisor_dir': '/tmp/logcollector/RHEVH-and-PostgreSQL-reports/navy-vds3.qa.lab.tlv.redhat.com',
DEBUG:  'jboss.appxml': 'all',
DEBUG:  'jboss.home': '/var/lib/jbossas',
DEBUG:  'jboss.javahome': '/usr/lib/jvm/java',
DEBUG:  'jboss.logsize': 15,
DEBUG:  'jboss.profile': 'engine-slimmed',
DEBUG:  'jboss.user': 'admin',
DEBUG:  'key_file': '/etc/pki/engine/keys/engine_id_rsa',
DEBUG:  'local_scratch_dir': '/tmp/logcollector/RHEVH-and-PostgreSQL-reports',
DEBUG:  'local_tmp_dir': '/tmp/logcollector',
DEBUG:  'log_file': '/var/log/engine/engine-log-collector.log',
DEBUG:  'max_connections': 10,
DEBUG:  'no_hypervisor': False,
DEBUG:  'no_postgresql': False,
DEBUG:  'passwd': '123456',
DEBUG:  'path': '/tmp/sosreport-navy-vds3-20120125103805-7647.tar.xz',
DEBUG:  'pg_dbhost': 'localhost',
DEBUG:  'pg_dbname': 'engine',
DEBUG:  'pg_ssh_user': 'root',
DEBUG:  'pg_user': 'postgres',
DEBUG:  'quiet': False,
DEBUG:  'reports': 'libvirt,vdsm,general,networking,hardware,process,yum,filesys,devicemapper,selinux,kernel',
DEBUG:  'scp_cmd': '/usr/bin/scp -P 22 -i /etc/pki/engine/keys/engine_id_rsa -oStrictHostKeyChecking=no root.lab.tlv.redhat.com',
DEBUG:  'ssh_cmd': '/usr/bin/ssh -p 22 -i /etc/pki/engine/keys/engine_id_rsa -oStrictHostKeyChecking=no root.lab.tlv.redhat.com',
DEBUG:  'ssh_port': 22,
DEBUG:  'user': 'admin@internal',
DEBUG:  'verbose': True}
INFO: finished collecting information from navy-vds3.qa.lab.tlv.redhat.com
Please provide the password for the PostgreSQL user, postgres, to dump the engine PostgreSQL database instance (CTRL+D to skip):
INFO: Gathering PostgreSQL the oVirt Engine database and log files from localhost...
DEBUG: returncode(0)
DEBUG: STDOUT(
sosreport (version 2.1)

This utility will collect some detailed  information about the
hardware and setup of your Fedora system.
The information is collected and an archive is  packaged under
/tmp, which you can send to a support representative.
Fedora will use this information for diagnostic purposes ONLY
and it will be considered confidential information.

This process may take a while to complete.
No changes will be made to your system.


  Running plugins. Please wait ...

  Completed [1/1] ...
Creating compressed archive...

Your sosreport has been generated and saved in:
  /tmp/logcollector/RHEVH-and-PostgreSQL-reports/sosreport-zvi-upstream-20120125104840-3c40.tar.xz

The md5sum is: dd38ff7ac520b97993ffe852a23a3c40

Please send this file to your support representative.

)
DEBUG: STDERR()
DEBUG: filename(sosreport-zvi-upstream-20120125104840-3c40.tar.xz)
DEBUG: path(/tmp/logcollector/RHEVH-and-PostgreSQL-reports/sosreport-zvi-upstream-20120125104840-3c40.tar.xz)
DEBUG: checksum(dd38ff7ac520b97993ffe852a23a3c40)
INFO: Gathering oVirt Engine information...
DEBUG: returncode(1)
DEBUG: STDOUT(
sosreport (version 2.1)

)
DEBUG: STDERR(unable to set option for disabled or non-existing plugin (engine)
a non-existing plugin (rhevm) was specified in the command line
)
ERROR: unable to set option for disabled or non-existing plugin (engine)
ERROR: a non-existing plugin (rhevm) was specified in the command line
Use the -h option to see usage.
DEBUG: Configuration:
DEBUG: command: collect
DEBUG: Traceback (most recent call last):
DEBUG:   File "/usr/bin/engine-log-collector", line 1065, in <module>
DEBUG:     collector.get_engine_data()
DEBUG:   File "/usr/bin/engine-log-collector", line 791, in get_engine_data
DEBUG:     stdout = collector.sosreport()
DEBUG:   File "/usr/bin/engine-log-collector", line 520, in sosreport
DEBUG:     stdout = self.caller.call('/usr/sbin/sosreport --batch --report --tmp-dir=%(local_tmp_dir)s  -o %(reports)s %(sos_options)s')
DEBUG:   File "/usr/bin/engine-log-collector", line 84, in call
DEBUG:     raise Exception(stderr)
DEBUG: Exception: unable to set option for disabled or non-existing plugin (engine)
DEBUG: a non-existing plugin (rhevm) was specified in the command line
DEBUG:
[root@zvi-upstream ~]#

Comment 1 Itamar Heim 2012-12-17 07:26:20 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.