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 1084876 - RFE: rename /etc/sysctl.d/libvirtd to something starts with numbers
Summary: RFE: rename /etc/sysctl.d/libvirtd to something starts with numbers
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jiri Denemark
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-07 05:56 UTC by Satoru SATOH
Modified: 2019-07-11 07:55 UTC (History)
7 users (show)

Fixed In Version: libvirt-1.2.15-1.el7
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 05:45:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2202 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2015-11-19 08:17:58 UTC

Description Satoru SATOH 2014-04-07 05:56:45 UTC
Description of problem:

It seems that there is an informal convention that config files under .d/
starts with  numbers (e.g. /usr/lib/sysctl.d/00-system.conf) to control 
the order to load and apply these config files.

Add to this, if users want to override default configurations
libvirt (/etc/sysctl.d/libvirtd) provides, user must arrange 
config file with its name starting from [m-z], ex. zz-local.conf, 
to make it loaded and applied after /etc/sysctl.d/libvirtd.

To rename /etc/sysctl.d/libvirtd to something starts with
numbers like 60-libvirtd.conf fixes this.

Version-Release number of selected component (if applicable):
I confirmed this with the libvirt RPM in RHEL 6.5 and the latest
libvirt-daemon RPM in Fedora 20 (libvirt-daemon-1.1.3.4-3.fc20.x86_64).


Additional info:

This should also applicable to the latest Fedora and RHEL7 beta.

And the number in filenames may be around 10 ~ 60, I guess,
as I've got this result in F20:

ssato@localhost% ls /usr/lib/sysctl.d/*
/usr/lib/sysctl.d/00-system.conf
/usr/lib/sysctl.d/50-default.conf
/usr/lib/sysctl.d/libvirtd.conf
ssato@localhost%

Comment 2 Jiri Denemark 2014-04-07 08:53:44 UTC
Hmm, being consistent would be nice but creating zz-local.conf is not any harder than 99-local.conf. And given that RHEL-6 stores this file in /etc/sysctl.d rather than /usr/lib/sysctl.d, I feel like it's probably more important to keep the name as is for RHEL-6. Let's move this bug to RHEL-7.

Comment 4 Jiri Denemark 2015-04-15 11:15:34 UTC
Patch sent upstream for review: https://www.redhat.com/archives/libvir-list/2015-April/msg00667.html

Comment 5 Jiri Denemark 2015-04-16 13:22:05 UTC
Pushed upstream as v1.2.14-199-g0c68ec7:

commit 0c68ec7d78952028282cfc39dad76af00b457801
Author: Jiri Denemark <jdenemar>
Date:   Wed Apr 15 11:49:22 2015 +0200

    daemon: Prefix sysctl configuration filename with a number
    
    Apparently, files in /usr/lib/sysctl.d are usually prefixed with numbers
    for easier ordering. Let's be consistent with this. I chose 60 for
    libvirtd so that it goes after 50-default.conf.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1084876
    Signed-off-by: Jiri Denemark <jdenemar>

Comment 7 vivian zhang 2015-07-15 02:26:43 UTC
I can produce this bug with build libvirt-1.2.14-1.el7.x86_64

# pwd
/usr/lib/sysctl.d
# ll
total 12
-rw-r--r--. 1 root root  466 Jan 15 17:17 00-system.conf
-rw-r--r--. 1 root root 1297 May 19 03:16 50-default.conf
-rw-r--r--. 1 root root  499 Apr  2 16:53 libvirtd.conf


verify this with build libvirt-1.2.17-1.el7.x86_64

# pwd
/usr/lib/sysctl.d
# ll
total 12
-rw-r--r--. 1 root root  466 Jan 15 17:17 00-system.conf
-rw-r--r--. 1 root root 1297 Jun 30 21:27 50-default.conf
-rw-r--r--. 1 root root  499 Jul  2 15:40 60-libvirtd.conf

libvirtd.conf has been changed to start with number like 60-libvirtd.conf, so move to verified

Comment 9 errata-xmlrpc 2015-11-19 05:45:43 UTC
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://rhn.redhat.com/errata/RHBA-2015-2202.html


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