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.
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.
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
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.