Bug 814932 - Non-fatal POSTIN scriptlet failure
Summary: Non-fatal POSTIN scriptlet failure
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-21 11:29 UTC by Paul Bolle
Modified: 2013-01-09 12:00 UTC (History)
10 users (show)

Fixed In Version: qemu-1.0-17.fc17
Clone Of:
Environment:
Last Closed: 2012-05-02 04:47:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Paul Bolle 2012-04-21 11:29:47 UTC
Description of problem:
Installing qemu=system-x86 triggers a warning on non-KVM capable systems.

Version-Release number of selected component (if applicable):
1.0-15

How reproducible:
install qemu-sysem-x86 (eg, via yum update)

Steps to Reproduce:
1. yum update qemu-system-x86
2.
3.
  
Actual results:
Non-fatal POSTIN scriptlet failure in rpm package 2:qemu-system-x86-1.0-15.fc18.i686
warning: %post(qemu-system-x86-2:1.0-15.fc18.i686) scriptlet failed, exit status 1

Expected results:
NOTA

Additional info:
0) $ rpm -q qemu-system-x86 --scripts
postinstall scriptlet (using /bin/sh):
# load kvm modules now, so we can make sure no reboot is needed.
# If there's already a kvm module installed, we don't mess with it
sh /etc/sysconfig/modules/kvm.modules

1) $ rpm -qf /etc/sysconfig/modules/kvm.modules 
qemu-system-x86-1.0-15.fc18.i686

2) $ cat /etc/sysconfig/modules/kvm.modules 
#!/bin/sh

case "$(</proc/cpuinfo)" in
    *vmx*) vmx=1 ;;
    *svm*) svm=1 ;;
esac

[ "$vmx" ] && modprobe -b kvm-intel >/dev/null 2>&1
[ "$svm" ] && modprobe -b kvm-amd >/dev/null 2>&1
[ "$vmx" -o "$svm" ] && modprobe -b vhost-net >/dev/null 2>&1

3) That kvm.modules script apparently needs to exit early (with a zero exit status) if both "$vmx" and "$svm" are empty.

Comment 1 Paul Bolle 2012-04-21 11:31:26 UTC
My ability to correctly use web interfaces is apparently declining.

Comment 2 Paolo Bonzini 2012-04-23 08:16:26 UTC
Should be fixed in 1.0-18.fc17 and 1.0-18.fc18.

Comment 3 Fedora Update System 2012-04-23 10:30:05 UTC
qemu-1.0-17.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/qemu-1.0-17.fc17

Comment 4 Fedora Update System 2012-04-24 03:16:47 UTC
Package qemu-1.0-17.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing qemu-1.0-17.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-6457/qemu-1.0-17.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-05-02 04:47:45 UTC
qemu-1.0-17.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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