Bug 1544457
| Summary: | sssd fails to release file descriptor on child logs after receiving HUP | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Striker Leggette <striker> |
| Component: | sssd | Assignee: | Alexey Tikhonov <atikhono> |
| Status: | CLOSED ERRATA | QA Contact: | sssd-qe <sssd-qe> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 8.2 | CC: | aborah, atikhono, grajaiya, jhrozek, lslebodn, mkosek, mzidek, pbrezina, sgoveas, striker, thalman, toneata, tscherf |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | sync-to-jira review | ||
| Fixed In Version: | sssd-2.3.0-3.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-04 02:04:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Striker Leggette
2018-02-12 14:39:22 UTC
The situation is the same with all child log files. Upstream ticket: https://pagure.io/SSSD/sssd/issue/3647 Upstream PR: https://github.com/SSSD/sssd/pull/5180 Pushed PR: https://github.com/SSSD/sssd/pull/5180 * `master` * 375887543daf26003ff7d900cf6a69d0c0b58523 - DEBUG: only open child process log files when required Additional patch:
Pushed PR: #5195
* `master`
* [e58853f](https://github.com/SSSD/sssd/commit/e58853f9ce63fae0c8b219b79be65c760a2f3e7e) - DEBUG: use new exec_child(_ex) interface in tests
On Previous sssd version: sssd-2.2.3-13.fc30.x86_64 [root@server sssd]# ls -ltr total 1504 -rw-------. 1 root root 0 Aug 5 10:50 ldap_child.log -rw-------. 1 root root 282 Aug 5 11:07 sssd_pam.log -rw-------. 1 root root 376 Aug 5 11:07 sssd_nss.log -rw-------. 1 root root 436 Aug 5 11:07 sssd_implicit_files.log -rw-------. 1 root root 2760 Aug 5 11:07 sssd.log -rw-------. 1 root root 1699 Aug 5 11:08 krb5_child.log -rw-------. 1 root root 0 Aug 5 11:09 sssd_kcm.log -rw-------. 1 root root 1174238 Aug 5 11:09 sssd_example1.log -rw-------. 1 root root 343613 Aug 5 11:09 sssd_anuj.log [root@server sssd]# mv /var/log/sssd/krb5_child.log /var/log/sssd/krb5_child.log.old ; /bin/kill -HUP `cat /var/run/sssd.pid 2>/dev/null` 2> /dev/null || true [root@server sssd]# ls -ltr total 1612 -rw-------. 1 root root 0 Aug 5 10:50 ldap_child.log -rw-------. 1 root root 282 Aug 5 11:07 sssd_pam.log -rw-------. 1 root root 376 Aug 5 11:07 sssd_nss.log -rw-------. 1 root root 436 Aug 5 11:07 sssd_implicit_files.log -rw-------. 1 root root 0 Aug 5 11:09 sssd_kcm.log -rw-------. 1 root root 3401 Aug 5 11:16 krb5_child.log.old -rw-------. 1 root root 1217589 Aug 5 11:17 sssd_example1.log -rw-------. 1 root root 409134 Aug 5 11:17 sssd_anuj.log -rw-------. 1 root root 2882 Aug 5 11:17 sssd.log [root@server sssd]# id anuj_krb5 uid=1003(anuj_krb5) gid=1003 groups=1003 [root@server sssd]# su anuj_krb5 sh-5.0$ bash [anuj_krb5@server sssd]$ ssh server.anuj.com Last login: Wed Aug 5 13:27:40 2020 id: cannot find name for group ID 1003 [anuj_krb5@server ~]$ exit logout Connection to server.anuj.com closed. [anuj_krb5@server sssd]$ [root@server sssd]# ls -ltr total 1972 -rw-------. 1 root root 0 Aug 5 10:50 ldap_child.log -rw-------. 1 root root 282 Aug 5 11:07 sssd_pam.log -rw-------. 1 root root 376 Aug 5 11:07 sssd_nss.log -rw-------. 1 root root 436 Aug 5 11:07 sssd_implicit_files.log -rw-------. 1 root root 2882 Aug 5 11:17 sssd.log -rw-------. 1 root root 5542 Aug 5 11:18 krb5_child.log.old -rw-------. 1 root root 94 Aug 5 11:24 sssd_kcm.log -rw-------. 1 root root 538894 Aug 5 13:27 sssd_anuj.log -rw-------. 1 root root 1446040 Aug 5 13:27 sssd_example1.log Here we can clearly see that no new krb5_child.log file created and logs keep writing on rb5_child.log.old file. ================================================================================= With sssd-2.3.0-6.el8.x86_64 [root@ci-vm-10-0-139-240 sssd]# ls -ltr total 800 -rw-------. 1 root root 252 Aug 5 03:40 sssd_kcm.log -rw-------. 1 root root 336 Aug 5 03:44 sssd_nss.log -rw-------. 1 root root 168 Aug 5 03:44 sssd_pam.log -rw-------. 1 root root 396 Aug 5 03:44 sssd_implicit_files.log -rw-------. 1 root root 5814 Aug 5 03:44 sssd.log -rw-------. 1 root root 5386 Aug 5 03:47 krb5_child.log -rw-------. 1 root root 297584 Aug 5 03:47 sssd_example1.log -rw-------. 1 root root 365652 Aug 5 03:47 sssd_anuj.log [root@ci-vm-10-0-139-240 sssd]# mv /var/log/sssd/krb5_child.log /var/log/sssd/krb5_child.log.old ; /bin/kill -HUP `cat /var/run/sssd.pid 2>/dev/null` 2> /dev/null || true [root@ci-vm-10-0-139-240 sssd]# ls -lr total 784 -rw-------. 1 root root 168 Aug 5 03:44 sssd_pam.log -rw-------. 1 root root 336 Aug 5 03:44 sssd_nss.log -rw-------. 1 root root 5932 Aug 5 03:49 sssd.log -rw-------. 1 root root 252 Aug 5 03:40 sssd_kcm.log -rw-------. 1 root root 396 Aug 5 03:44 sssd_implicit_files.log -rw-------. 1 root root 308673 Aug 5 03:49 sssd_example1.log -rw-------. 1 root root 376341 Aug 5 03:49 sssd_anuj.log -rw-------. 1 root root 5386 Aug 5 03:47 krb5_child.log.old [root@ci-vm-10-0-139-240 sssd]# id aborah uid=1004(aborah) gid=1004 groups=1004 [root@ci-vm-10-0-139-240 sssd]# su aborah sh-4.4$ bash bash-4.4$ ssh localhost aborah@localhost's password: [root@ci-vm-10-0-139-240 sssd]# ls -lrt total 1000 -rw-------. 1 root root 252 Aug 5 03:40 sssd_kcm.log -rw-------. 1 root root 336 Aug 5 03:44 sssd_nss.log -rw-------. 1 root root 168 Aug 5 03:44 sssd_pam.log -rw-------. 1 root root 396 Aug 5 03:44 sssd_implicit_files.log -rw-------. 1 root root 5386 Aug 5 03:47 krb5_child.log.old -rw-------. 1 root root 5932 Aug 5 03:49 sssd.log -rw-------. 1 root root 5705 Aug 5 03:50 krb5_child.log -rw-------. 1 root root 318004 Aug 5 03:50 sssd_example1.log -rw-------. 1 root root 424256 Aug 5 03:50 sssd_anuj.log This time we can clearly see that , new krb5_child.log was created and no logs were written in sssd_implicit_files.log. Small correction : This time we can clearly see that , new krb5_child.log was created and no logs were written in krb5_child.log.old 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 (sssd 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/RHBA-2020:4569 |