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 1467395 - Winbind does not close sockets and eventually hits clients limit
Summary: Winbind does not close sockets and eventually hits clients limit
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: samba
Version: 6.9
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Andreas Schneider
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
: 1467832 (view as bug list)
Depends On:
Blocks: 1504542
TreeView+ depends on / blocked
 
Reported: 2017-07-03 15:57 UTC by Daniele
Modified: 2020-08-13 09:33 UTC (History)
5 users (show)

Fixed In Version: samba-3.6.23-44.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-19 05:08:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1860 0 None None None 2018-06-19 05:10:08 UTC
Samba Project 3204 0 None None None 2017-07-14 13:09:11 UTC

Description Daniele 2017-07-03 15:57:49 UTC
Reporting Customer: Motorola
TAM Account: YES

Description of problem:
winbind seems to be leaving sockets open and eventually hitting clients limit, ending up in dumping a lot of text in the log files, affecting machine performance to the point that it might not responds to the console anymore.

Here's the problem as described by the customer:

====

I understand that actual root cause is that (for unknown reason) winbind __does not close sockets__
Here what scenario looks like (on actual production system, as mentioned before we are not able to reproduce it):

At some point in time following messages appears (this looks like random, no apparent issues are reported by OS before):
May  1 11:03:27 zc01.zone1 winbindd[5556]: [2017/05/01 11:03:27.380063,  0] winbindd/winbindd.c:975(winbindd_listen_fde_handler)
May  1 11:03:27 zc01.zone1 winbindd[5556]:   winbindd: Exceeding 200 client connections, no idle connection found
May  1 11:03:27 zc01.zone1 winbindd[5556]: [2017/05/01 11:03:27.388117,  0] winbindd/winbindd.c:975(winbindd_listen_fde_handler)
May  1 11:03:27 zc01.zone1 winbindd[5556]:   winbindd: Exceeding 200 client connections, no idle connection found
May  1 11:03:32 zc01.zone1 winbindd[5556]: [2017/05/01 11:03:32.119143,  0] winbindd/winbindd.c:975(winbindd_listen_fde_handler)
May  1 11:03:32 zc01.zone1 winbindd[5556]:   winbindd: Exceeding 200 client connections, no idle connection found
May  1 11:03:32 zc01.zone1 winbindd[5556]: [2017/05/01 11:03:32.119528,  0] winbindd/winbindd.c:975(winbindd_listen_fde_handler)
May  1 11:03:32 zc01.zone1 winbindd[5556]:   winbindd: Exceeding 200 client connections, no idle connection found
(...)
Winbind will stay at this state for some time, but after an hour or so process runs out of descriptors and message flood begins (this means like 10000+ entries/s), with following logs:

May  1 12:19:31 zc01.zone1 winbindd[5556]:   winbindd: Exceeding 200 client connections, no idle connection found
May  1 12:19:32 zc01.zone1 winbindd[5556]: [2017/05/01 12:19:32.468367,  0] winbindd/winbindd.c:975(winbindd_listen_fde_handler)
May  1 12:19:32 zc01.zone1 winbindd[5556]:   winbindd: Exceeding 200 client connections, no idle connection found
May  1 12:19:32 zc01.zone1 winbindd[5556]: [2017/05/01 12:19:32.468437,  0] winbindd/winbindd.c:817(new_connection)
May  1 12:19:32 zc01.zone1 winbindd[5556]:   Faild to accept socket - Too many open files
May  1 12:19:32 zc01.zone1 winbindd[5556]: [2017/05/01 12:19:32.468608,  0] winbindd/winbindd.c:975(winbindd_listen_fde_handler)
May  1 12:19:32 zc01.zone1 winbindd[5556]:   winbindd: Exceeding 200 client connections, no idle connection found
May  1 12:19:32 zc01.zone1 winbindd[5556]: [2017/05/01 12:19:32.468630,  0] winbindd/winbindd.c:817(new_connection)
May  1 12:19:32 zc01.zone1 winbindd[5556]:   Faild to accept socket - Too many open files
May  1 12:19:32 zc01.zone1 winbindd[5556]: [2017/05/01 12:19:32.468685,  0] winbindd/winbindd.c:975(winbindd_listen_fde_handler)
May  1 12:19:32 zc01.zone1 winbindd[5556]:   winbindd: Exceeding 200 client connections, no idle connection found
May  1 12:19:32 zc01.zone1 winbindd[5556]: [2017/05/01 12:19:32.468704,  0] winbindd/winbindd.c:817(new_connection)
May  1 12:19:32 zc01.zone1 winbindd[5556]:   Faild to accept socket - Too many open files

This of course provides huge impact on I/O, /var/log gets full in the matter of minutes and process itself eating up CPU making server so busy it's impossible to login on console or ssh. To recover the server you need to power-cycle & do some clean up on /var/log.

We would expect that "winbind request timeout" is backported to samba-winbind-3.6 as per https://attachments.samba.org/attachment.cgi?id=10128
 and https://bugzilla.samba.org/show_bug.cgi?id=3204

===


While the customer understands that RHEL6 is late into its production cycle and a backport might not be possible, they expect us to at least provide them with a supported workaround that inhibits the spam in the logs and therefore protects the machine from being impacted.

Comment 4 Andreas Schneider 2017-07-18 09:14:01 UTC
*** Bug 1467832 has been marked as a duplicate of this bug. ***

Comment 9 errata-xmlrpc 2018-06-19 05:08:55 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, 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/RHSA-2018:1860


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