Bug 694403 - should use systemctl instead of chkconfig --list
Summary: should use systemctl instead of chkconfig --list
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Eric Blake
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 761329
TreeView+ depends on / blocked
 
Reported: 2011-04-07 08:51 UTC by Rahul Sundaram
Modified: 2012-05-24 10:03 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
: 761329 (view as bug list)
Environment:
Last Closed: 2012-05-24 10:03:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rahul Sundaram 2011-04-07 08:51:26 UTC
Description of problem:
When I did a yum update today in Fedora 15 branch,  I get

" Updating   : libvirt-client-0.8.8-4.fc15.x86_64                        14/132 

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overriden by native
      systemd configuration.

  Updating   : libvirt-python-0.8.8-4.fc15.x86_64                        15/132 
"

Looking at the spec,  it uses chkconfig --list and using that provides this output.  You should be using systemctl instead and add a dependency.  If you are migrated services from sysv to systemd,  refer to

https://fedoraproject.org/wiki/TomCallaway/Systemd_Revised_Draft

Comment 1 Bill Nottingham 2011-04-07 14:19:11 UTC
Really, it should just do 'chkconfig --level $level <service>' to check if a service is enabled. The scriptlet as is today will already fail if you're running in a non-english locale, for example.

Comment 2 Fedora Admin XMLRPC Client 2011-09-22 17:51:53 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Fedora Admin XMLRPC Client 2011-09-22 17:54:50 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora Admin XMLRPC Client 2011-11-30 20:00:48 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora Admin XMLRPC Client 2011-11-30 20:04:13 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Admin XMLRPC Client 2011-11-30 20:06:12 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora Admin XMLRPC Client 2011-11-30 20:06:21 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Eric Blake 2011-12-06 13:43:09 UTC
bug 738725 tracks the change to silence the update; however, it missed out on your observation in comment 1 that non-C locale may break the behavior of the snippet.

Comment 10 Eric Blake 2011-12-08 04:01:46 UTC
This should be backported to F15, and cloned to F16.

commit fea83dde7b7e0725e4353a2cc5b6e5c7c61cb294
Author: Eric Blake <eblake>
Date:   Tue Dec 6 16:16:34 2011 -0700

    spec: don't use chkconfig --list
    
    https://bugzilla.redhat.com/show_bug.cgi?id=694403 reports that
    the specfile is incorrectly checking for a running libvirt-guests
    service.  For example,
    
    $ LC_ALL=es_ES chkconfig --list libvirt-guests
    libvirt-guests        0:desactivado          1:desactivado     2:desactivado     3:activo 5:activo         6:desactivado
    
    will fail to find 5:on, even though it is active.  But chkconfig
    already has a mode where you can silently use the exit status to
    check for an active service.
    
    * libvirt.spec.in (%post): Use simpler chkconfig options, to avoid
    issues with localization.

Comment 11 Sven Lankes 2012-05-24 10:03:42 UTC
This is fixed for F16+ - as F15 is nearing EOL and libvirt hasn't been updated in 10 Months I guess it's save to close this bug now.


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