Bug 1254228 - rhevm-log-collector is missing sos dependency on RHEL 6.7
rhevm-log-collector is missing sos dependency on RHEL 6.7
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-log-collector (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ovirt-3.6.0-rc
: 3.6.0
Assigned To: Sandro Bonazzola
: EasyFix, Regression, ZStream
Depends On:
Blocks: 1254526
  Show dependency treegraph
Reported: 2015-08-17 09:11 EDT by Ying Cui
Modified: 2017-07-31 18:24 EDT (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
This fix resolves dependencies which allow rhevm-log-collector to correctly handle sos 3.2 shipped within Red Hat Enterprise Linux 6.7.
Story Points: ---
Clone Of:
: 1254526 (view as bug list)
Last Closed: 2016-03-09 15:00:37 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: Integration
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 45005 master MERGED packaging: spec: add missing require on sos Never
oVirt gerrit 45006 ovirt-log-collector-3.6 MERGED packaging: spec: add missing require on sos Never

  None (edit)
Description Ying Cui 2015-08-17 09:11:09 EDT
sos rpm is not built in rhevm-appliance which is required by rhevm-log-collector

# rhevm-log-collector
Traceback (most recent call last):
  File "/usr/bin/rhevm-log-collector", line 39, in <module>
    import sos
ImportError: No module named sos


Test steps:
1. Installed RHEV-H
2. Setup Hosted-Engine on RHEV-H by rhevm-appliance ova
3. login rhevm-appliance ova to setup rhevm successful.
4. Try to collect all log in rhevm, but failed, here need to yum install sos in RHEL channel.

Actual result:
# rhevm-log-collector -h
Traceback (most recent call last):
  File "/usr/bin/rhevm-log-collector", line 39, in <module>
    import sos
ImportError: No module named sos

Expected result:
sos rpm should be included in rhevm-appliance as default.
Comment 1 Ying Cui 2015-08-17 09:26:15 EDT
After confirmed with fabian over IRC, here user can subscribe RHEL and RHEV channle on rhevm-appliance, then user can install sos by themselves.

I lower the severity. 

and probably we can consider close it.
Comment 2 Fabian Deutsch 2015-08-17 09:34:44 EDT
This can be easily fixed by installing rhevm-log-collector-sos-plugins , which should pull in the right dependency.
Comment 3 Fabian Deutsch 2015-08-17 09:37:50 EDT
Moving this over to the log-collector, as this looks to be a missing dependency after all.

If we install the log-collector, then sos should be installed as well, if it's required.
Comment 4 Sandro Bonazzola 2015-08-17 09:41:05 EDT
On RHEL 6.6 the dependency is pulled in by rhevm-log-collector-sos-plugins but it is missing in rhevm-log-collector on 6.7 where rhevm-log-collector-sos-plugins must not be installed.
Comment 8 Gonza 2015-09-14 07:19:51 EDT
Verified with:

By default [1] is installed.

# engine-log-collector collect
This command will collect system configuration and diagnostic
information from this system.
The generated archive may contain data considered sensitive and its
content should be reviewed by the originating organization before
being passed to any third party.
No changes will be made to system configuration.
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to skip): 
INFO: Gathering oVirt Engine information...
INFO: Gathering PostgreSQL the oVirt Engine database and log files from localhost...
INFO: No hypervisors were selected, therefore no hypervisor data will be collected.
Creating compressed archive...
INFO: Log files have been collected and placed in /tmp/sosreport-LogCollector-20150914071839.tar.xz.
The MD5 for this file is 25d6a42a7be7313cd91c924700c52cd5 and its size is 7.4M

[1] sos-3.2-28.el6.noarch
Comment 11 errata-xmlrpc 2016-03-09 15:00:37 EST
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.


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