Bug 1015757 - Missing openssh-clients package on minimal install of rhel, restricts rhevm-log-collector to gather the hypervisors sosreports
Summary: Missing openssh-clients package on minimal install of rhel, restricts rhevm-l...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-log-collector
Version: 3.2.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: 3.2.4
Assignee: Kiril Nesenko
QA Contact: sefi litmanovich
URL:
Whiteboard: integration
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-05 07:10 UTC by Anand Nande
Modified: 2018-12-03 20:13 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The openssh-clients package was missing on a Red Hat Enterprise Virtualization Manager system installed using the minimal-installation option. As the rhevm-log-collector utility has a dependency on the openssh-clients package, it could not collect logs from hypervisors when openssh-clients was absent. This update adds the dependency to the installation spec file, so openssh-clients is installed together with the Manager, and the log-collector can gather hosts sosreports.
Clone Of:
Environment:
Last Closed: 2013-10-25 18:12:41 UTC
oVirt Team: ---
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1465 0 normal SHIPPED_LIVE Updated package: rhevm-log-collector 2013-10-25 22:11:20 UTC
oVirt gerrit 16448 0 None None None Never
oVirt gerrit 19935 0 None None None Never

Description Anand Nande 2013-10-05 07:10:41 UTC
Description of problem:

openssh-clients package missing on RHEV-Manager system installed using the minimal-installation option.
rhevm-log-collector has dependency on this package, due to which it does not collect logs from the hypervisors.


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


How reproducible: Always


Steps to Reproduce:
1. Perform a Minimal RHEL install
2. Subscribe this RHEL system to required RHN channels for installing rhevm on it.
3. Add hosts, configure RHEV environment etc.
4. From the rhevm system, run the logcollector command:

openssh-clients package missing on RHEV-Manager system installed using the minimal-installation option.
rhevm-log-collector has dependency on this package, due to which it does not collect logs from the hypervisors.

# rhevm-log-collector --hosts=10.65.209.113
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 1 hypervisors. Continue? (Y/n): Y
INFO: Gathering information from selected hypervisors...
INFO: collecting information from 10.65.209.113
ERROR: Failed to collect logs from: 10.65.209.113; [Errno 2] No such file or directory
INFO: finished collecting information from 10.65.209.113
Creating compressed archive...
INFO: Log files have been collected and placed in /tmp/sosreport-LogCollector-20131004084112.tar.xz.
The MD5 for this file is f93e0dbb4b95c10c69d61c5714267144 and its size is 5.3M



A verbose (-v) flag set on the above command shows it using the SSH:

INFO: Gathering information from selected hypervisors...
INFO: collecting information from 10.65.209.113
DEBUG: calling(['/usr/bin/ssh', '-p', '22', '-i', '/etc/pki/ovirt-engine/keys/engine_id_rsa', '-oStrictHostKeyChecking=no', 'root.209.113', "\nVERSION=`/bin/rpm -q --qf '[%{VERSION}]' sos | /bin/sed 's/\\.//'`;\nif [ $VERSION -ge 22 ]; then\n    /usr/sbin/sosreport --batch -k general.all_logs=True -o libvirt,vdsm,general,networking,hardware,process,yum,filesys,devicemapper,selinux,kernel,memory,rpm\nelif [ $VERSION -ge 17 ]; then\n    /usr/sbin/sosreport --no-progressbar -k general.all_logs=True         -o vdsm,general,networking,hardware,process,yum,filesys\nelse\n    /bin/echo No", 'valid', 'version', 'of', 'sosreport', 'found. 1>&2\n    exit 1\nfi\n'])
ERROR: Failed to collect logs from: 10.65.209.113; [Errno 2] No such file or directory
DEBUG: Traceback (most recent call last):
DEBUG:   File "/usr/bin/rhevm-log-collector", line 614, in run
DEBUG:     stdout = self.sosreport()
DEBUG:   File "/usr/bin/rhevm-log-collector", line 606, in sosreport
DEBUG:     return self.caller.call(cmd)
DEBUG:   File "/usr/bin/rhevm-log-collector", line 168, in call
DEBUG:     stderr=subprocess.PIPE
DEBUG:   File "/usr/lib64/python2.6/subprocess.py", line 639, in __init__
DEBUG:     errread, errwrite)
DEBUG:   File "/usr/lib64/python2.6/subprocess.py", line 1228, in _execute_child
DEBUG:     raise child_exception
DEBUG: OSError: [Errno 2] No such file or directory


On RHEVM system:

# rpm -qa | grep opensshopenssh-5.3p1-84.1.el6.x86_64
openssh-server-5.3p1-84.1.el6.x86_64

The RHEVH however contains both :

# rpm -qa | grep openssh
openssh-5.3p1-84.1.el6.x86_64
openssh-server-5.3p1-84.1.el6.x86_64
openssh-clients-5.3p1-84.1.el6.x86_64


The openssh-clients package through one of the rhevm channels (?)
so that this will be installed upon 'yum install rhevm'

Actual results: sosreports from the hosts are not collected as the SSH binary is not present.
 

Expected results: openssh-clients package which provides the SSH binary should be provided via one of the rhevm channels so that upon installing rhevm, the log-collector gathers the hosts sosreports in it.

Comment 2 Itamar Heim 2013-10-05 18:01:00 UTC
if it is a simple missing 'requires', worth doing a 3.2.z, even an async one if not with 3.2.4

Comment 4 Sandro Bonazzola 2013-10-07 13:40:14 UTC
patch pushed upstream 3.2 branch

Comment 5 Sandro Bonazzola 2013-10-07 13:43:16 UTC
patch merged upstream 3.2 branch.

Comment 8 sefi litmanovich 2013-10-09 13:20:37 UTC
Verified on RHEL6.4, RHEVM 3.2 SF21.
yum install rhevm-log-collector installs openssh-clients as well.

Comment 10 errata-xmlrpc 2013-10-25 18:12:41 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/RHBA-2013-1465.html


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