Bug 873675

Summary: bootstrap: Query installed packages with --whatprovides rpm option rather than only with -q
Product: Red Hat Enterprise Linux 6 Reporter: Marian Krcmarik <mkrcmari>
Component: vdsmAssignee: Alon Bar-Lev <alonbl>
Status: CLOSED DUPLICATE QA Contact: Haim <hateya>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4CC: abaron, alonbl, bazulay, iheim, lpeer, yeylon, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-06 22:52: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 Marian Krcmarik 2012-11-06 13:22:52 UTC
Description of problem:
Query installed packages with --whatprovides rpm option rather than only with -q.
Use cases:
1. libjpeg package in RHEL6.4 will be replaced by libjpeg-turbo, so Host installation will not find libjpeg package once It queries "rpm -q libjpeg". Adding --whatprovides option should output the right provider of libjpeg - libjpeg-turbo.
2. If qemu-kvm-rhev is installed on the host, queiryng "rpm -q qemu-kvm" gives a warning even though qemu-kvm-rhev provides qemu-kvm.

I may be indeed missing something but It looks to me a better idea to query packages with the option --whatprovides.

Version-Release number of selected component (if applicable):
vdsm-4.9.6-41.0

How reproducible:
Always

Steps to Reproduce:
1. Install a host with qemu-kvm-rhev or libjpeg-turbo into RHEVM.
  
Actual results:
Warnings about not installed packages for either qemu-kvm-rhev and family or libjpeg

Expected results:
It should not warn or fail the installation since needed binaries, libraries are provided by qemu-*-rhev or libjpeg-turbo.

Additional info:

Comment 2 Marian Krcmarik 2012-11-06 13:47:35 UTC
Ad: 2. As I am thinking, maybe RHEVM should require qemu-*-rhev rather than qemu-*. Then qemu-kvm should be changed in VDS_PACK tuple to qemu-kvm-rhev. Anyway using --whatprovides is still better at least for libjpeg-turbo case and any similar.

Comment 3 Alon Bar-Lev 2012-11-06 22:52:38 UTC
Hello,

3.2 will have a complete rewritten bootstrap.
Part of the rewrite contains already merged upstream usage of yum API to install packages.
It will install all packages in a single transaction within explicit adding the dependencies.

Alon.

*** This bug has been marked as a duplicate of bug 861575 ***