Bug 716905

Summary: sssd shuts down if inotify crashes
Product: Red Hat Enterprise Linux 6 Reporter: RHEL Program Management <pm-rhel>
Component: sssdAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.2CC: benl, dpal, grajaiya, jgalipea, jwest, jzeleny, kbanerje, msanders, pm-eus, prc, sgallagh
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.5.1-34.el6_1.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-07 08:30:46 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: 713438, 748847    
Bug Blocks:    

Description RHEL Program Management 2011-06-27 12:13:35 UTC
This bug has been copied from bug #713438 and has been proposed
to be backported to 6.1 z-stream (EUS).

Comment 3 Kaushik Banerjee 2011-06-28 10:49:56 UTC
Before the fix:

# service sssd status
sssd dead but subsys locked

/var/log/sssd/sssd.log showed:
(Tue Jun 28 12:29:34 2011) [sssd] [rewatch_config_file] (0): Could not restore inotify watch. Quitting!
(Tue Jun 28 12:29:34 2011) [sssd] [rewatch_config_file] (1): Could not add inotify watch for file [/etc/resolv.conf]. Error [9:Bad file descriptor]
(Tue Jun 28 12:29:34 2011) [sssd] [monitor_quit] (8): Received shutdown command
(Tue Jun 28 12:29:34 2011) [sssd] [monitor_quit] (0): Monitor received Terminated: terminating children
(Tue Jun 28 12:29:34 2011) [sssd] [monitor_quit] (1): Terminating [pam][12571]
(Tue Jun 28 12:29:34 2011) [sssd] [monitor_quit] (1): Child [pam] exited gracefully
(Tue Jun 28 12:29:34 2011) [sssd] [monitor_quit] (1): Terminating [nss][12570]
(Tue Jun 28 12:29:34 2011) [sssd] [monitor_quit] (1): Child [nss] exited gracefully
(Tue Jun 28 12:29:34 2011) [sssd] [monitor_quit] (1): Terminating [LDAP][12569]
(Tue Jun 28 12:29:34 2011) [sssd] [monitor_quit] (1): Child [LDAP] exited gracefully
(Tue Jun 28 12:29:34 2011) [sssd] [sbus_remove_watch] (8): 0xe27dc0/0xe16410


In version sssd-1.5.1-34.el6_1.2:

sssd does not exit anymore.
# service sssd status
sssd (pid  12769) is running...

/var/log/sssd/sssd.log shows:
(Tue Jun 28 15:52:40 2011) [sssd] [rewatch_config_file] (1): Could not add inotify watch for file [/etc/resolv.conf]. Error [28:No space left on device]
(Tue Jun 28 15:52:45 2011) [sssd] [rewatch_config_file] (0): Could not restore inotify watch. Switching to polling!
(Tue Jun 28 15:52:45 2011) [sssd] [monitor_update_resolv] (2): Resolv.conf has been updated. Reloading.


Verified in version:
# rpm -qi sssd | head
Name        : sssd                         Relocations: (not relocatable)
Version     : 1.5.1                             Vendor: Red Hat, Inc.
Release     : 34.el6_1.2                    Build Date: Mon 27 Jun 2011 06:23:24 PM IST
Install Date: Tue 28 Jun 2011 01:11:27 PM IST      Build Host: hs20-bc2-4.build.redhat.com
Group       : Applications/System           Source RPM: sssd-1.5.1-34.el6_1.2.src.rpm
Size        : 3463890                          License: GPLv3+
Signature   : (none)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://fedorahosted.org/sssd/
Summary     : System Security Services Daemon

Comment 4 errata-xmlrpc 2011-07-07 08:30:46 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0925.html