Bug 1568676
Summary: | libguestfs installation failed with dependency issue of qemu-kvm-rhev / qemu-kvm-ma on ppc64le | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Xianghua Chen <xchen> | |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 7.5 | CC: | junli, lance, mtessun, ptoscano, toneata, yoguo | |
Target Milestone: | rc | Keywords: | Regression, ZStream | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | libguestfs-1.38.1-1.el7 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1570533 (view as bug list) | Environment: | ||
Last Closed: | 2018-10-30 07:45:35 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1570533 |
Description
Xianghua Chen
2018-04-18 05:36:12 UTC
The libguestfs package on ppc64le has a mysterious dependency on qemu-img-ma (see https://brewweb.engineering.redhat.com/brew/rpminfo?rpmID=5518455). As far as I can tell this has not been added by libguestfs. Maybe it comes from the supermin-find-requires script. This will take a bit of investigation. The answer to that is ‘yes’. qemu-img-ma comes from supermin. The reason is complex: (1) virt-dib needs qemu-img to be present inside the appliance. (2) supermin looks for qemu-img and resolves it to the qemu-img-ma package in the buildroot. (3) We attempt to move the qemu-img dependency to the virt-dib subpackage. However because we move literal ‘qemu-img’ that actually creates two dependencies: /usr/lib64/guestfs/supermin.d/packages qemu-img-ma /usr/lib64/guestfs/supermin.d/zz-packages-dib qemu-img (NB this is with the ppc64le packages) ----- There are at least two bugs in the spec file: (a) The ‘move_to’ script should probably error out if the named dependency does not actually exist in the packages file. This would stop this kind of error from happening again unnoticed in future. (b) It seems as if virt-dib should depend on qemu-img (not qemu-img-ma) on all architectures, and we should rely on the Provides of qemu-img-ma to satisfy this. This is what happens now, but only by accident, so after fixing the move_to script we'll need a bit of %ifarch ... to add the right dependency. For (a) I'm trying this patch: https://src.fedoraproject.org/rpms/libguestfs/c/0fc7c3e4dbcb52eaac76ae5e634e6b9974c5f9e0?branch=master Scratch build in Fedora: https://koji.fedoraproject.org/koji/taskinfo?taskID=26450564 (Note these results are all for Fedora) Failed on s390x: move_to zfs-fuse: package name not found in packages file aarch64 - same armv7 - same ppc64 - build fails for unrelated reasons These seem to be actual bugs so I corrected the package: https://src.fedoraproject.org/rpms/libguestfs/c/8a4603542704c9daaa7b8109ed554793563a4016?branch=master Another scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=26451040 Fix for RHEL 7.6 landed in dist-git, it will be in whatever build is after libguestfs-1.38.0-1.el7. Verified with package: libguestfs-1.38.1-1.el7.ppc64le Steps: 1. Prepare a rhel7.6,and set this repo to provide qemu-kvm-rhev: [rhevh-rhel-7.6-candidate] name=rhevh-rhel-7.6-candidate baseurl=http://download.eng.brq.redhat.com/rel-eng/repos/rhevh-rhel-7.6-candidate/ppc64le/ gpgcheck=0 enabled=1 2. Install libguestfs # yum install libguestfs Libguestfs can be installed successfully without dependency error. So verified. 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://access.redhat.com/errata/RHEA-2018:3021 |