Bug 659136 - SSSD shutdown sometimes hangs
SSSD shutdown sometimes hangs
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: sssd (Show other bugs)
Unspecified Unspecified
low Severity medium
: rc
: ---
Assigned To: Stephen Gallagher
Chandrasekar Kannan
Depends On:
Blocks: 659401
  Show dependency treegraph
Reported: 2010-12-01 19:29 EST by Stephen Gallagher
Modified: 2015-01-04 18:45 EST (History)
6 users (show)

See Also:
Fixed In Version: sssd-1.2.1-39.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 659401 (view as bug list)
Last Closed: 2011-01-13 17:37:36 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Stephen Gallagher 2010-12-01 19:29:37 EST
Description of problem:
Shutting down the SSSD with "service sssd stop" or sending a SIGTERM signal will sometimes result in the SSSD hanging and never terminating.

Version-Release number of selected component (if applicable):

How reproducible:
Inconsistent, as it's a race condition

Steps to Reproduce:
1. Write a script to restart SSSD 100 times in rapid succession
2. Run it.
Actual results:
Eventually, SSSD will hang trying to restart.

Expected results:
SSSD should quit and restart every time.

Additional info:
A patch for this is under review upstream right now.
This issue was discovered while testing the fix for BZ #638241

Repro script:



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

service sssd status
if [ $? -ne 0 ] ; then
       echo "FAILED: sssd is not running after 100 restarts"
       echo "PASSED: sssd is running after 100 restarts"

exit 0
Comment 3 Gowrishankar Rajaiyan 2010-12-02 13:59:16 EST
Script used to test:

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

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

Starting sssd: [  OK  ]
Stopping sssd: [  OK  ]
Starting sssd: [  OK  ]
sssd (pid  26092) is running...
PASSED: sssd is running after 300 restarts

Version: sssd-1.2.1-39.el5
Comment 4 Jonathan Dieter 2011-01-05 05:50:24 EST
I'm observing this in up-to-date F13.  Do you want me to open a separate bug report or will the fix be pushed to Fedora 13 automatically as well?
Comment 5 Stephen Gallagher 2011-01-05 07:22:38 EST
Please open a bug against Fedora. It's fixed in F14, but I haven't backported the change to F13.
Comment 7 errata-xmlrpc 2011-01-13 17:37:36 EST
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.


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