Bug 1274633
| Summary: | SSSD is not closing sockets properly | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Jakub Hrozek <jhrozek> | ||||
| Component: | sssd | Assignee: | Lukas Slebodnik <lslebodn> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Namita Soman <nsoman> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.0 | CC: | cww, dlavu, grajaiya, jgalipea, jhrozek, kludhwan, lslebodn, mkosek, mzidek, ondrej.valousek.xm, pbrezina, preichl, sgoveas | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | sssd-1.13.2-1.el6 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-05-10 20:24:48 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1172231, 1272422 | ||||||
| Attachments: |
|
||||||
|
Description
Jakub Hrozek
2015-10-23 08:27:55 UTC
Dev acking, fix available upstream. Please add steps to reproduce so that we can qa_ack.. My reproducer:
* two active directories with sites; so sometimes sssd connect to server A
and sometimes to server B.
* block connection to one server
[root@host sssd]# iptables -n -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DROP tcp -- 0.0.0.0/0 10.12.0.158 tcp dpt:389
* force sssd to go offline. Send signals to sssd process to go offline (-USR1) and online (-USR2).
You might be able to reproduce it even with plain LDAP. So it should not be necessary to test with AD. Moreover it should be simpler to reproduce with LDAP because sssd will not connect to different site in AD and every time will try to connect to blocked ldap port.
It might help if set value of options that
dns_resolver_timeout < ldap_network_timeout
master: * a10f67d4c64f3b1243de5d86a996475361adf0ac sssd-1-13: * db2fdba6f3cecd0612439988e61be60d5d8576bf sssd-1-12: * 2136f71c94660bcdde83f80feb83734389d57674 Verified against sssd-client-1.13.3-19.el6.x86_64, sockets are closing correctly. [root@sssdqe5 ~]# nslookup ad2.domain.com Server: 192.168.51.4 Address: 192.168.51.4#53 Name: ad2.domain.com Address: 192.168.51.5 [root@sssdqe5 ~]# iptables -A INPUT -s 192.168.51.5 -j DROP Made the process go offline/online several times, and they're no additional sockets. [root@sssdqe5 ~]# ls -l /proc/`pgrep sssd_be`/fd/ ls: cannot access 5515: No such file or directory ls: cannot access 5524: No such file or directory ls: cannot access 5537/fd/: No such file or directory /proc/5420: total 0 dr-xr-xr-x. 2 root root 0 Mar 22 15:11 attr -rw-r--r--. 1 root root 0 Mar 22 15:11 autogroup -r--------. 1 root root 0 Mar 22 15:11 auxv -r--r--r--. 1 root root 0 Mar 22 15:11 cgroup --w-------. 1 root root 0 Mar 22 15:11 clear_refs -r--r--r--. 1 root root 0 Mar 22 15:05 cmdline -rw-r--r--. 1 root root 0 Mar 22 15:11 comm -rw-r--r--. 1 root root 0 Mar 22 15:11 coredump_filter -r--r--r--. 1 root root 0 Mar 22 15:11 cpuset lrwxrwxrwx. 1 root root 0 Mar 22 15:11 cwd -> / -r--------. 1 root root 0 Mar 22 15:11 environ lrwxrwxrwx. 1 root root 0 Mar 22 15:11 exe -> /usr/libexec/sssd/sssd_be dr-x------. 2 root root 0 Mar 22 15:11 fd dr-x------. 2 root root 0 Mar 22 15:11 fdinfo -r--------. 1 root root 0 Mar 22 15:11 io -rw-------. 1 root root 0 Mar 22 15:11 limits -rw-r--r--. 1 root root 0 Mar 22 15:11 loginuid -r--r--r--. 1 root root 0 Mar 22 15:11 maps -rw-------. 1 root root 0 Mar 22 15:11 mem -r--r--r--. 1 root root 0 Mar 22 15:11 mountinfo -r--r--r--. 1 root root 0 Mar 22 15:11 mounts -r--------. 1 root root 0 Mar 22 15:11 mountstats dr-xr-xr-x. 5 root root 0 Mar 22 15:11 net dr-x--x--x. 2 root root 0 Mar 22 15:11 ns -r--r--r--. 1 root root 0 Mar 22 15:11 numa_maps -rw-r--r--. 1 root root 0 Mar 22 15:11 oom_adj -r--r--r--. 1 root root 0 Mar 22 15:11 oom_score -rw-r--r--. 1 root root 0 Mar 22 15:11 oom_score_adj -r--r--r--. 1 root root 0 Mar 22 15:11 pagemap -r--r--r--. 1 root root 0 Mar 22 15:11 personality lrwxrwxrwx. 1 root root 0 Mar 22 15:11 root -> / -rw-r--r--. 1 root root 0 Mar 22 15:11 sched -r--r--r--. 1 root root 0 Mar 22 15:11 schedstat -r--r--r--. 1 root root 0 Mar 22 15:11 sessionid -r--r--r--. 1 root root 0 Mar 22 15:11 smaps -r--r--r--. 1 root root 0 Mar 22 15:11 stack -r--r--r--. 1 root root 0 Mar 22 15:05 stat -r--r--r--. 1 root root 0 Mar 22 15:11 statm -r--r--r--. 1 root root 0 Mar 22 15:03 status -r--r--r--. 1 root root 0 Mar 22 15:11 syscall dr-xr-xr-x. 3 root root 0 Mar 22 15:11 task -r--r--r--. 1 root root 0 Mar 22 15:11 wchan Created attachment 1141778 [details]
lsof output from cu rhel 7.2 system
Hello,
I have a cu that seems to facing the similar issue on his rhel 7.2 system.
Do we have bugzilla for rhel 7 as well?
Thanks,
Kushal
(In reply to kludhwan from comment #9) > Created attachment 1141778 [details] > lsof output from cu rhel 7.2 system > > Hello, > > I have a cu that seems to facing the similar issue on his rhel 7.2 system. > > Do we have bugzilla for rhel 7 as well? > > Thanks, > Kushal https://bugzilla.redhat.com/show_bug.cgi?id=1313014 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-2016-0782.html |