Bug 658374

Summary: sssd stops on upgrade
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: high Docs Contact:
Priority: high    
Version: 6.0CC: benl, dpal, grajaiya, jgalipea, jhrozek, j, myllynen, orion, pm-eus, prc, sbose, sgallagh, ssorce
Target Milestone: rcKeywords: Reopened, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sssd-1.2.1-34.el6 Doc Type: Bug Fix
Doc Text:
During an upgrade of the sssd package, the package manager restarts the sssd service to ensure the running instance is properly replaced with the newer version. However, prior to this update, a race condition could occur upon the service shutdown, causing the parent process not to wait for its children to terminate. When this happened, these running sub-processes may have prevented sssd from starting again. With this update, the sssd service has been corrected to wait for the children processes to terminate, so that it can be restarted as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-10 20:22:39 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: 658158    
Bug Blocks:    

Description RHEL Program Management 2010-11-30 07:46:06 UTC
This bug has been copied from bug #658158 and has been proposed
to be backported to 6.0 z-stream (EUS).

Comment 4 Gowrishankar Rajaiyan 2010-12-06 09:47:50 UTC
Script used to test:
#/bin/bash

i=0
while [ $i -lt 300 ] ; do
       service sssd condrestart
       let i=$i+1
done

service sssd status
if [ $? -ne 0 ] ; then
       echo "FAILED: sssd is not running after $i restarts"
else
       echo "PASSED: sssd is running after $i restarts"
fi
exit 0
#EOF


<snip>
Stopping sssd: [  OK  ]
[  OK  ] sssd: [  OK  ]
Stopping sssd: [  OK  ]
[  OK  ] sssd: [  OK  ]
sssd (pid 18602) is running...
PASSED: sssd is running after 300 restarts
</snip>

Version: sssd-1.2.1-34.el6.x86_64

Comment 5 Jaromir Hradilek 2010-12-10 10:54:50 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
During an upgrade of the sssd package, the package manager restarts the sssd service to ensure the running instance is properly replaced with the newer version. However, prior to this update, a race condition could occur upon the service shutdown, causing the parent process not to wait for its children to terminate. When this happened, these running sub-processes may have prevented sssd from starting again. With this update, the sssd service has been corrected to wait for the children processes to terminate, so that it can be restarted as expected.

Comment 7 errata-xmlrpc 2010-12-10 20:22:39 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-2010-0971.html