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 1287644 - ipa-server ships /etc/systemd/system/httpd.service which should be used by local administrator
Summary: ipa-server ships /etc/systemd/system/httpd.service which should be used by lo...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks: 1283777
TreeView+ depends on / blocked
 
Reported: 2015-12-02 13:23 UTC by Jan Pazdziora
Modified: 2019-07-30 11:49 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-30 11:49:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Pazdziora 2015-12-02 13:23:19 UTC
Description of problem:

The ipa-server package ships /etc/systemd/system/httpd.service.

The man page systemd-system.conf(5) says:

       When packages need to customize the configuration, they can install
       configuration snippets in /usr/lib/systemd/*.conf.d/. Files in /etc/
       are reserved for the local administrator, who may use this logic to
       override the configuration files installed by vendor packages.

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

ipa-server-4.2.0-15.el7.x86_64

How reproducible:

Deterministic.

Steps to Reproduce:
1. Verify /etc/systemd/system/httpd.service is not present.
2. yum install -y ipa-server
3. rpm -qf /etc/systemd/system/httpd.service

Actual results:

ipa-server-4.2.0-15.el7.x86_64

Expected results:

error: file /etc/systemd/system/httpd.service: No such file or directory

Additional info:

Having httpd.service installed by default in /etc makes it hard to distinguish genuine changes by the admin from those done by future versions of packages, especially for containerized deployments.

Comment 1 Petr Vobornik 2015-12-02 13:39:59 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/5508

Comment 2 Jan Pazdziora 2015-12-03 10:53:51 UTC
Actually, that man page is about configuring systemd itself, not the services. 

The man systemd.unit(5) says

       Along with a unit file foo.service, a directory foo.service.d/ may
       exist. All files with the suffix ".conf" from this directory will be
       parsed after the file itself is parsed. This is useful to alter or add
       configuration settings to a unit, without having to modify their unit
       files.

and also includes

       │/etc/systemd/system     │ Local configuration │
       ├────────────────────────┼─────────────────────┤
       │/run/systemd/system     │ Runtime units       │
       ├────────────────────────┼─────────────────────┤
       │/usr/lib/systemd/system │ Units of installed  │
       │                        │ packages            │

so I believe the bugzilla is still valid though.

Comment 3 Petr Vobornik 2017-04-06 16:39:57 UTC
IdM team doesn't have capacity to fix this bug for RHEL 7.4. Moving to next RHEL version. Fixing the bug there will depend on capacity of FreeIPA upstream. Without sufficient  justification there is a chance that it will be moved again later.

Comment 7 Alexander Bokovoy 2019-07-30 11:49:00 UTC
Fixed since freeipa 4.4.1: 

git tag --contains 64db059249

commit 64db0592490493a060c7983acdfdf9100d9ea813
Author: Christian Heimes <cheimes>
Date:   Tue Aug 2 16:58:07 2016 +0200

    Correct path to HTTPD's systemd service directory
    
    Ticket #5681 and commit 586fee293f42388510fa5436af19460bbe1fdec5 changed
    the location of the ipa.conf for Apache HTTPD. The variables
    SYSTEMD_SYSTEM_HTTPD_D_DIR and SYSTEMD_SYSTEM_HTTPD_IPA_CONF point to
    the wrong directory /etc/systemd/system/httpd.d/. The path is corrected
    to  /etc/systemd/system/httpd.service.d/.
    
    https://fedorahosted.org/freeipa/ticket/6158
    https://bugzilla.redhat.com/show_bug.cgi?id=1362537
    Signed-off-by: Christian Heimes <cheimes>
    Reviewed-By: Abhijeet Kasurde <akasurde>


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