Bug 840294

Summary: 3.1 - vds_bootstrap reports unusable error on missing package during installation
Product: Red Hat Enterprise Linux 6 Reporter: Simon Grinberg <sgrinber>
Component: vdsmAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED ERRATA QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: abaron, acathrow, bazulay, cpelland, iheim, ilvovsky, lpeer, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: vdsm-4.9.6-31.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 19:02:38 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 Simon Grinberg 2012-07-15 13:25:26 UTC
Description of problem:

When installing a new host the sanlock package was not found and it is required by vdsm. 

The RHEV Manager event log provides an enormous length message which is the entire yum execution (stdout + std err) that does not even spread to all length in the tool-tip, thus making it very hard to understand what the problem is.

The only way to understand is to go to the log and there you can see the actual error just before the long message and at the end of the long message. 


Version-Release number of selected component (if applicable):
SI 10

How reproducible:
Always 

Steps to Reproduce:
1. have a package missing from your channel 
2. Install a host from the GUI 
3.
  
Actual results:
Long message 

Expected results:
Short message with the actual error - just the yum stderr. 

Additional info:

Here is the relevant part from the bootstrap log, it can be seen that sending the RHEV Manager the stderr message would be much easier to undertand from the GUI. 


--> Finished Dependency Resolution
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Sun, 15 Jul 2012 15:47:23 DEBUG    Unable to read consumer identity
Error: Package: vdsm-4.9.6-21.0.el6_3.x86_64 (rhevm)
           Requires: sanlock-python
Error: Package: vdsm-4.9.6-21.0.el6_3.x86_64 (rhevm)
           Requires: sanlock >= 2.1

Sun, 15 Jul 2012 15:47:23 DEBUG    <BSTRAP component='VDS PACKAGES' status='FAIL' result='vdsm' message='Loaded plugins: product-id, rhnplugin, security, subscription-manager Updating certificate-based repositories. Setting 
up Install Process Resolving Dependencies --&gt; Running transaction check ---&gt; Package vdsm.x86_64 0:4.9.6-21.0.el6_3 will be installed --&gt; Processing Dependency: sanlock &gt;= 2.1 for package: vdsm-4.9.6-21.0.el6_3.x
86_64 --&gt; Processing Dependency: qemu-kvm-rhev &gt;= 2:0.12.1.2-2.227 for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt; Processing Dependency: libvirt-python &gt;= 0.9.10-20 for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt;
 Processing Dependency: iscsi-initiator-utils &gt;= 6.2.0.872-15 for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt; Processing Dependency: libvirt &gt;= 0.9.10-20 for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt; Processing Dep
endency: device-mapper-multipath &gt;= 0.4.9-52 for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt; Processing Dependency: sanlock-python for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt; Processing Dependency: policycoreutils-p
ython for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt; Processing Dependency: tree for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt; Running transaction check ---&gt; Package device-mapper-multipath.x86_64 0:0.4.9-56.el6 will
 be installed --&gt; Processing Dependency: devi
ce-mapper-multipath-libs = 0.4.9-56.el6 for package: device-mapper-multipath-0.4.9-56.el6.x86_64 --&gt; Processing Dependency: libmultipath.so()(64bit) for package: device-mapper-multipath-0.4.9-56.el6.x86_64 ---&gt; Package iscsi-initiator-utils.x86_64 0:6.2.0.872-41.el6 will be installed ---&gt; Package libvirt.x86_64 0:0.9.10-21.el6_3.1 will be installed --&gt; Processing Dependency: dnsmasq &gt;= 2.41 for package: libvirt-0.9.10-21.el6_3.1.x86_64 --&gt; Processing Dependency: radvd for package: libvirt-0.9.10-21.el6_3.1.x86_64 --&gt; Processing Dependency: numad for package: libvirt-0.9.10-21.el6_3.1.x86_64 --&gt; Processing Dependency: lzop for package: libvirt-0.9.10-21.el6_3.1.x86_64 --&gt; Processing Dependency: ebtables for package: libvirt-0.9.10-21.el6_3.1.x86_64 --&gt; Processing Dependency: libpciaccess.so.0()(64bit) for package: libvirt-0.9.10-21.el6_3.1.x86_64 ---&gt; Package libvirt-python.x86_64 0:0.9.10-21.el6_3.1 will be installed ---&gt; Package policycoreutils-python.x86_64 0:2.0.83-19.24.el6 will be installed --&gt; Processing Dependency: libsemanage-python &gt;= 2.0.43-4 for package: policycoreutils-python-2.0.83-19.24.el6.x86_64 --&gt; Processing Dependency: audit-libs-python &gt;= 1.4.2-1 for package: policycoreutils-python-2.0.83-19.24.el6.x86_64 --&gt; Processing Dependency: setools-libs-python for package: policycoreutils-python-2.0.83-19.24.el6.x86_64 ---&gt; Package qemu-kvm-rhev.x86_64 2:0.12.1.2-2.295.el6 will be installed --&gt; Processing Dependency: vgabios-vmware for package: 2:qemu-kvm-rhev-0.12.1.2-2.295.el6.x86_64 --&gt; Processing Dependency: vgabios-stdvga for package: 2:qemu-kvm-rhev-0.12.1.2-2.295.el6.x86_64 --&gt; Processing Dependency: vgabios-qxl for package: 2:qemu-kvm-rhev-0.12.1.2-2.295.el6.x86_64 --&gt; Processing Dependency: vgabios for package: 2:qemu-kvm-rhev-0.12.1.2-2.295.el6.x86_64 --&gt; Processing Dependency: /usr/share/sgabios/sgabios.bin for package: 2:qemu-kvm-rhev-0.12.1.2-2.295.el6.x86_64 --&gt; Processing Dependency: /usr/share/gpxe/virtio-net.rom for package: 2:qemu-kvm-rhev-0.12.1.2-2.295.el6.x86_64 --&gt; Processing Dependency: /usr/share/gpxe/rtl8139.rom for package: 2:qemu-kvm-rhev-0.12.1.2-2.295.el6.x86_64 --&gt; Processing Dependency: /usr/share/gpxe/rtl8029.rom for package: 2:qemu-kvm-rhev-0.12.1.2-2.295.el6.x86_64 --&gt; Processing Dependency: /usr/share/gpxe/pcnet32.rom for package: 2:qemu-kvm-rhev-0.12.1.2-2.295.el6.x86_64 --&gt; Processing Dependency: /usr/share/gpxe/e1000-0x100e.rom for package: 2:qemu-kvm-rhev-0.12.1.2-2.295.el6.x86_64 ---&gt; Package tree.x86_64 0:1.5.3-2.el6 will be installed ---&gt; Package vdsm.x86_64 0:4.9.6-21.0.el6_3 will be installed --&gt; Processing Dependency: sanlock &gt;= 2.1 for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt; Processing Dependency: sanlock-python for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt; Running transaction check ---&gt; Package audit-libs-python.x86_64 0:2.2-2.el6 will be installed ---&gt; Package device-mapper-multipath-libs.x86_64 0:0.4.9-56.el6 will be installed ---&gt; Package dnsmasq.x86_64 0:2.48-6.el6 will be installed ---&gt; Package ebtables.x86_64 0:2.0.9-6.el6 will be installed ---&gt; Package gpxe-roms-qemu.noarch 0:0.9.7-6.9.el6 will be installed ---&gt; Package libpciaccess.x86_64 0:0.12.1-1.el6 will be installed ---&gt; Package libsemanage-python.x86_64 0:2.0.43-4.1.el6 will be installed ---&gt; Package lzop.x86_64 0:1.02-0.9.rc1.el6 will be installed --&gt; Processing Dependency: liblzo2.so.2()(64bit) for package: lzop-1.02-0.9.rc1.el6.x86_64 ---&gt; Package numad.x86_64 0:0.5-4.20120522git.el6 will be installed ---&gt; Package radvd.x86_64 0:1.6-1.el6 will be installed ---&gt; Package setools-libs-python.x86_64 0:3.3.7-4.el6 will be installed --&gt; Processing Dependency: setools-libs = 3.3.7-4.el6 for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libsefs.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libseaudit.so.4(VERS_4.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libseaudit.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libqpol.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libpoldiff.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libpoldiff.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libapol.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libsefs.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libseaudit.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libqpol.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libpoldiff.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --&gt; Processing Dependency: libapol.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 ---&gt; Package sgabios-bin.noarch 0:0-0.3.20110621svn.el6 will be installed ---&gt; Package vdsm.x86_64 0:4.9.6-21.0.el6_3 will be installed --&gt; Processing Dependency: sanlock &gt;= 2.1 for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt; Processing Dependency: sanlock-python for package: vdsm-4.9.6-21.0.el6_3.x86_64 ---&gt; Package vgabios.noarch 0:0.6b-3.6.el6 will be installed --&gt; Running transaction check ---&gt; Package lzo.x86_64 0:2.03-3.1.el6 will be installed ---&gt; Package setools-libs.x86_64 0:3.3.7-4.el6 will be installed ---&gt; Package vdsm.x86_64 0:4.9.6-21.0.el6_3 will be installed --&gt; Processing Dependency: sanlock &gt;= 2.1 for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt; Processing Dependency: sanlock-python for package: vdsm-4.9.6-21.0.el6_3.x86_64 --&gt; Finished Dependency Resolution  You could try using --skip-broken to work around the problem  You could try running: rpm -Va --nofiles --nodigest Unable to read consumer identity Error: Package: vdsm-4.9.6-21.0.el6_3.x86_64 (rhevm)            Requires: sanlock-python Error: Package: vdsm-4.9.6-21.0.el6_3.x86_64 (rhevm)            Requires: sanlock &gt;= 2.1 '/>
Sun, 15 Jul 2012 15:47:23 ERROR    packagesExplorer test failed
Sun, 15 Jul 2012 15:47:23 DEBUG    <BSTRAP component='RHEV_INSTALL' status='FAIL'/>
Sun, 15 Jul 2012 15:47:23 DEBUG    **** End VDS Validation ****

Comment 1 Itamar Heim 2012-07-17 07:56:04 UTC
just add specific steps for these packages?
(need to revisit yum python for single install command with better error reporting on depenedncies for a later cycle)

Comment 2 Douglas Schilling Landgraf 2012-08-17 04:26:19 UTC
Hi,

Patch upstream available:

BZ#840294: Add sanlock packages to REQ_PACK list
http://gerrit.ovirt.org/#/c/7281/

Comment 3 Douglas Schilling Landgraf 2012-08-27 17:00:45 UTC
As reference only:

Gerrit downstream patch: http://gerrit.usersys.redhat.com/#change,1399

Comment 8 errata-xmlrpc 2012-12-04 19:02:38 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/RHSA-2012-1508.html