Description: 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 Version: rhevm-appliance-20150727.0-1 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.
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.
This can be easily fixed by installing rhevm-log-collector-sos-plugins , which should pull in the right dependency.
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.
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.
Verified with: rhevm-appliance-20150910.0-1 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
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. https://rhn.redhat.com/errata/RHEA-2016-0392.html