Bug 738725
Summary: | installing libvirt issues warnings due to outdated spec file %postinstalls | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Eric Blake <eblake> | ||||
Component: | libvirt | Assignee: | Eric Blake <eblake> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 16 | CC: | berrange, clalance, crobinso, dougsland, itamar, jforbes, laine, veillard, virt-maint, zhoutaomtv | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | libvirt-0.9.6-4.fc16 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 741358 (view as bug list) | Environment: | |||||
Last Closed: | 2012-01-05 20:59:50 UTC | Type: | --- | ||||
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: | 741358 | ||||||
Attachments: |
|
Description
Eric Blake
2011-09-15 16:44:27 UTC
Upstream patch proposed: https://www.redhat.com/archives/libvir-list/2011-September/msg00682.html 0.9.5 now includes this, which needs to be backported to F15: commit ecd8725c1ad001fdd11f6c680ef0c20421e65a9b Author: Eric Blake <eblake> Date: Fri Sep 16 16:40:25 2011 -0600 spec: silence warnings when installing in F16 https://bugzilla.redhat.com/show_bug.cgi?id=738725 documents that 'yum install libvirt' in Fedora 16 is rather noisy. This fixes the problems. * libvirt.spec.in (%post client): Silence chkconfig warning about SysV services. (%post) [with_cgconfig]: Drop for Fedora 15 and newer, where systemd does this automatically. libvirt-0.9.6-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/libvirt-0.9.6-1.fc16 This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Package libvirt-0.9.6-1.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libvirt-0.9.6-1.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/libvirt-0.9.6-1.fc16 then log in and leave karma (feedback). Moving back to POST - F16 needs to include this patch for virt-preview to work in F15 (otherwise, virt-preview will fail to set up cgroups, since F15 does not benefit from systemd doing it automatically): https://www.redhat.com/archives/libvir-list/2011-September/msg00997.html libvirt-0.9.6-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/libvirt-0.9.6-2.fc16 Package libvirt-0.9.6-2.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libvirt-0.9.6-2.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/libvirt-0.9.6-2.fc16 then log in and leave karma (feedback). libvirt-0.9.6-2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. The issue is still exist under F16 stable version. libvirt-0.9.6-2.fc16 still show the same warning message. (In reply to comment #10) > libvirt-0.9.6-2.fc16 has been pushed to the Fedora 16 stable repository. If > problems still persist, please make note of it in this bug report. Could u check it again on F16. Created attachment 542707 [details]
Screenshot with problem
Problem have still persist. See screenshot.
Reopening. There have been some more spec patches upstream in the meantime; I'll see if any of them fix the issue, or if there is yet another upstream patch needed. Found the bug. https://www.redhat.com/archives/libvir-list/2011-December/msg00418.html Commit ecd8725 tried to silence a spurious warning on the initial libvirt install, and commit ba6cbb1 tried to fix up the logic to the correct Fedora version, but the warning was still present due to a logic bug: since %{fedora} and %{rhel} are never simulatanously set, then 0%{rhel} <= 6 made the %if always true. Checking for minimum versions (via >=) is okay, but checking for maximum versions (via <=) requires a prerequisite test that the platform being tested is non-zero. Also fix a bogus setting of with_libxl (although we previously hard-code with_libxl to 0 for rhel earlier in the file, so this was not as severe a bug). * libvirt.spec.in (with_cgconfig): Don't enable cgconfig on F16. --- How embarrassing that I've botched this patch twice; I didn't notice the botch because 'yum reinstall libvirt' is not an initial install, so it didn't trigger the scriptlet in question. It took a full 'yum erase libvirt' followed by 'yum install libvirt' to prove this patch (finally) gets it right. This needs backporting to F15 and F16. commit 3b95f284f19d2e43daa32a87cd10eaf42ea8bb4e Author: Eric Blake <eblake> Date: Thu Dec 8 13:32:37 2011 -0700 spec: fix logic bug in deciding to turn on cgconfig libvirt-0.9.6-4.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/libvirt-0.9.6-4.fc16 Somehow this bz wasn't automatically moved from POST to MODIFIED, even though it did get the auto-notice in Comment 17. Manually moving to MODIFIED... Package libvirt-0.9.6-4.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libvirt-0.9.6-4.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-17267/libvirt-0.9.6-4.fc16 then log in and leave karma (feedback). libvirt-0.9.6-4.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |