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 2051575 - Enable ipa-ccache-sweep.timer during server installation
Summary: Enable ipa-ccache-sweep.timer during server installation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks: 2051582
TreeView+ depends on / blocked
 
Reported: 2022-02-07 14:30 UTC by Rob Crittenden
Modified: 2022-05-10 14:34 UTC (History)
6 users (show)

Fixed In Version: idm-DL1-8060020220210180711.92098735
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2051582 (view as bug list)
Environment:
Last Closed: 2022-05-10 14:09:17 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Pagure freeipa issue 9107 0 None None None 2022-02-07 14:38:47 UTC
Red Hat Issue Tracker FREEIPA-7815 0 None None None 2022-02-07 14:36:15 UTC
Red Hat Issue Tracker RHELPLAN-111360 0 None None None 2022-02-07 14:52:12 UTC
Red Hat Product Errata RHEA-2022:1884 0 None None None 2022-05-10 14:09:36 UTC

Description Rob Crittenden 2022-02-07 14:30:25 UTC
Cloned from upstream: https://pagure.io/freeipa/issue/9107

### Issue
Currently the ipa-ccache-sweep.timer is only enabled via the spec file when a server is already configured:
```
%posttrans server
# don't execute upgrade and restart of IPA when server is not installed
%{__python3} -c "import sys; from ipalib import facts; sys.exit(0 if facts.is_ipa_configured() else 1);" > /dev/null 2>&1

if [  $? -eq 0 ]; then
...
    /bin/systemctl is-enabled ipa-ccache-sweep.timer >/dev/null 2>&1
    if [  $? -eq 1 ]; then
        /bin/systemctl enable ipa-ccache-sweep.timer>/dev/null
    fi
fi
```
It should be explicitly enabled in the installer with: ```systemctl enable ipa-ccache-sweep.timer```

Noticed in 4.9.8 but this has been present since 4.9.0 when the feature was introduced.

Comment 1 Rob Crittenden 2022-02-07 14:38:46 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/9107

Comment 2 Rob Crittenden 2022-02-07 15:54:05 UTC
Upstream PR: https://github.com/freeipa/freeipa/pull/6168

Verification is, post-install on a fresh system:

/bin/systemctl is-enabled ipa-ccache-sweep.timer

Comment 10 Varun Mylaraiah 2022-02-23 18:09:49 UTC
Verified

ipa-server-4.9.8-6.module+el8.6.0+14224+4c38d4ea.x86_64

Passed	test_integration/test_installation.py::TestInstallMasterKRA::()::test_ipa_ccache_sweep_timer_enabled
------------------------------ Captured log call -------------------------------
transport.py               391 INFO     RUN ['systemctl', 'is-enabled', 'ipa-ccache-sweep.timer']
transport.py               513 DEBUG    RUN ['systemctl', 'is-enabled', 'ipa-ccache-sweep.timer']
transport.py               558 DEBUG    enabled
transport.py               217 DEBUG    Exit code: 0

test_integration/test_installation.py :: http://idm-artifacts.usersys.redhat.com/mvarun/trigger//3931/test-suite//report.html

Based on the test result, marking the bug VERIFIED.

Comment 12 errata-xmlrpc 2022-05-10 14:09:17 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 (idm:client and idm:DL1 bug fix and enhancement update), 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://access.redhat.com/errata/RHEA-2022:1884


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