RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 660706 - do not start libvirt-guests on upgrade
Summary: do not start libvirt-guests on upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.0
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: rc
: ---
Assignee: Eric Blake
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 668694
TreeView+ depends on / blocked
 
Reported: 2010-12-07 16:19 UTC by Dan Kenigsberg
Modified: 2013-01-11 03:38 UTC (History)
12 users (show)

Fixed In Version: libvirt-0.8.7-2.el6
Doc Type: Bug Fix
Doc Text:
The %post script (part of the libvirt-client package) started the libvirt-guests service even when the service was explicitly turned off. With this update, the libvirt-guests service is no longer started when explicitly turned off.
Clone Of:
Environment:
Last Closed: 2011-05-19 13:24:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0596 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2011-05-18 17:56:36 UTC

Description Dan Kenigsberg 2010-12-07 16:19:35 UTC
Description of problem:
the %post script of libvirt-client starts libvirt-guests service, which is against packaging guidelines, and (more painful to me) surprises users who explicitly turned libvirt-guests service off.

Version-Release number of selected component (if applicable):
libvirt-0.8.1-28.el6.x86_64

Comment 2 Eric Blake 2010-12-20 19:07:39 UTC
upstream patch in commit 91b3e1038f; will be picked up as part of rebasing libvirt for RHEL 6.1.

Comment 3 Jiri Denemark 2010-12-21 12:43:25 UTC
Fixed upstream by v0.8.6-80-g91b3e10:

commit 91b3e1038f32524304063c17e4dd56b9fb66f362
Author: Dan Kenigsberg <danken>
Date:   Tue Dec 7 18:05:44 2010 +0200

    spec: do not start libvirt-guests if that service is off

Comment 5 Jiri Denemark 2011-01-09 23:57:47 UTC
Built into libvirt-0.8.7-1.el6

Comment 7 Jiri Denemark 2011-01-11 10:25:08 UTC
Oops, libvirt.spec was not properly updated to upstream version and thus it doesn't contain this fix. I'll fix that in -2.

Comment 8 Gunannan Ren 2011-01-11 10:28:58 UTC
# service libvirt-guests status
started
# service libvirt-guests stop
Running guests on default URI: no running guests.
# chkconfig --list libvirt-guests
libvirt-guests  0:off   1:off   2:off   3:off   4:off   5:off   6:off
# rpm -ivh libvirt-client-0.8.7-1.el6.x86_64.rpm --force
Preparing...                ########################################### [100%]
   1:libvirt-client         ########################################### [100%]
# service libvirt-guests status
started

Comment 10 zhanghaiyan 2011-01-18 03:28:30 UTC
Tested fail with libvirt-client-0.8.7-2.el6.x86_64
- 2.6.32-94.el6.x86_64
- qemu-kvm-0.12.1.2-2.129.el6.x86_64
- libvirt-0.8.7-2.el6.x86_64

The test step and actual result is the same wtih comment 8

Comment 11 Jiri Denemark 2011-01-18 08:24:31 UTC
Are you sure libvirt-guests init script was turned off before upgrading to libvirt-0.8.7-2.el6.x86_64? You need to see the exact same output of chkconfig --list libvirt-guests as shown in comment 8. If you have the script on for any of the runlevels, the init script will be started (although it should probably be started only if it is on in current runlevel but that's a different issue).

It works as expected for me.

Comment 12 zhanghaiyan 2011-01-18 09:17:12 UTC
Thanks Jiri, my testing in comment 10 didn't make all run level off, and after #chkconfig libvirt-guests off, then test pass
1. # service libvirt-guests status
started
2. # service libvirt-guests stop
Running guests on default URI: no running guests.
3. # chkconfig libvirt-guests off
# chkconfig --list libvirt-guests
libvirt-guests  0:off   1:off   2:off   3:off   4:off   5:off   6:off
4. # rpm -Uvh libvirt-0.8.7-2.el6.x86_64.rpm libvirt-client-0.8.7-2.el6.x86_64.rpm libvirt-python-0.8.7-2.el6.x86_64.rpm 
Preparing...                ########################################### [100%]
   1:libvirt-client         ########################################### [ 33%]
   2:libvirt                ########################################### [ 67%]
   3:libvirt-python         ########################################### [100%]
5. # service libvirt-guests status
stopped, with saved guests

Comment 13 Martin Prpič 2011-04-15 14:24:01 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The %post script (part of the libvirt-client package) started the libvirt-guests service even when the service was explicitly turned off. With this update, the libvirt-guests service is no longer started when explicitly turned off.

Comment 16 errata-xmlrpc 2011-05-19 13:24:51 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0596.html


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