Bug 2336049

Summary: sssd still writes to old log files after rotation due to incorrect PID file location
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: sssdAssignee: Alexey Tikhonov <atikhono>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: abokovoy, atikhono, lslebodn, pbrezina, sbose, ssorce, sssd-maintainers
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: sssd-2.10.2-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-01 05:41:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Orion Poplawski 2025-01-06 23:08:07 UTC
sssd logs are not being rotated properly.  This is due to:

    postrotate
        /bin/kill -HUP `cat /var/run/sssd.pid 2>/dev/null` 2> /dev/null || true
        /bin/pkill -HUP sssd_kcm 2> /dev/null || true
    endscript

# cat /var/run/sssd.pid
cat: /var/run/sssd.pid: No such file or directory

# find /run -name sssd.pid
/run/sssd/sssd.pid

sssd-2.10.1-1.fc41.x86_64

Reproducible: Always

Comment 1 Alexey Tikhonov 2025-01-07 13:16:19 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/7787

Comment 2 Alexey Tikhonov 2025-01-08 18:15:17 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/7787

* `master`
    * 6bd231cda3dec7daf4dce01b8c35613bd197fbd0 - LOGROTATE: fix path to pid file
* `sssd-2-10`
    * 12bd58515a1d52b4d0e5851e25a709c4df9e3805 - LOGROTATE: fix path to pid file

Comment 3 Fedora Update System 2025-01-29 16:40:39 UTC
FEDORA-2025-49004d4e5e (sssd-2.10.2-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-49004d4e5e

Comment 4 Fedora Update System 2025-01-31 04:33:20 UTC
FEDORA-2025-49004d4e5e has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-49004d4e5e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-49004d4e5e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-02-01 05:41:58 UTC
FEDORA-2025-49004d4e5e (sssd-2.10.2-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.