Bug 929047

Summary: [RHS-C] engine-log-collector is trying to fetch information about hypervisors/datacenters
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Prasanth <pprakash>
Component: rhsc-log-collectorAssignee: Aravinda VK <avishwan>
Status: CLOSED ERRATA QA Contact: Prasanth <pprakash>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: avishwan, dpati, dtsang, knarra, mmahoney, pprakash, rhs-bugs, sabose, sharne, ssampat
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 2.1.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 2.1.2.0 cb5 Doc Type: Bug Fix
Doc Text:
Previously, the engine-log-collector command to collect data from hypervisors/servers was failing. Now, running the engine-log-collector command completes successfully.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-25 07:28:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Prasanth 2013-03-29 06:28:23 UTC
Description of problem:

engine-log-collector is trying to fetch information about hypervisors


Version-Release number of selected component (if applicable): rhsc-2.1.0-0.qa9.el6rhs.noarch


How reproducible: 100%


Steps to Reproduce:
1. In RHS-C engine, run engine-log-collector and see the CLI output
2.
3.
  
Actual results: Following is the CLI output:

-----------------------
[root@engine ~]# engine-log-collector 
INFO: /tmp/logcollector does not exist.  It will be created.
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to skip): 
ERROR: Failure fetching information about hypervisors from API . Error: 'API' object has no attribute 'datacenters'
INFO: No hypervisors were selected, therefore no hypervisor data will be collected.
INFO: Gathering PostgreSQL the oVirt Engine database and log files from localhost...
INFO: Gathering oVirt Engine information...
INFO: Log files have been collected and placed in /tmp/logcollector/sosreport-LogCollector-engine-20130329115004-6b37.tar.xz.
      The MD5 for this file is b588fe85fe0dc8933659f22013c76b37 and its size is 12.6M
--------------------------


Expected results: It shouldn't try to fetch for information from hypervisors or datacenters as there is no such concept in RHS-C. 

Whatever not specific to RHS-C should be removed from engine-log-collector


Additional info:

Comment 2 Aravinda VK 2013-06-25 11:21:35 UTC
Downstream patch sent for review.
https://code.engineering.redhat.com/gerrit/#/c/9295/

Comment 3 Aravinda VK 2013-06-27 10:14:43 UTC
RPMs available in 
https://brewweb.devel.redhat.com/taskinfo?taskID=5951743

Comment 4 Prasanth 2013-06-27 15:22:52 UTC
(In reply to Aravinda VK from comment #2)
> Downstream patch sent for review.
> https://code.engineering.redhat.com/gerrit/#/c/9295/

RHS servers are definitely not hypervisors, but log-collector says that it's going to collect information from hypervisors. See below:

------------
# rhsc-log-collector 
Please provide the REST API username for oVirt Engine (CTRL+D to skip): admin@internal
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to skip): 
About to collect information from 3 hypervisors. Continue? (Y/n): y
INFO: Gathering information from selected hypervisors...
------------

Are we going to stick with the name "hypervisors" instead of a more accurate name??

Comment 5 Prasanth 2013-07-02 06:17:28 UTC
Moving back to assigned based on #Comment 4

Comment 6 Aravinda VK 2013-10-23 06:08:16 UTC
Fixed in version: 2.1.2.0 cb5

--no-hypervisors option is changed to --no-servers

Comment 7 Prasanth 2013-10-28 10:47:29 UTC
Verified in 2.1.2.0 cb5

----------------
# rhsc-log-collector 
INFO: Gathering oVirt Engine information...
INFO: Gathering PostgreSQL the oVirt Engine database and log files from localhost...
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to skip):
About to collect information from 2 servers. Continue? (Y/n): n
INFO: Aborting server collection...
Creating compressed archive...
INFO: Log files have been collected and placed in /tmp/sosreport-LogCollector-20131028160507.tar.xz.
The MD5 for this file is 241c32efa123632743c9d175fc6365c9 and its size is 67.9M
----------------

Comment 8 Shalaka 2014-01-21 08:36:46 UTC
Please review the edited DocText and signoff.

Comment 9 Aravinda VK 2014-01-21 11:20:09 UTC
doc text looks good to me.

Comment 11 errata-xmlrpc 2014-02-25 07:28:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0208.html