#2092 Group lookup is not returned immediately after service startup
Closed: Fixed Opened by jhrozek.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1009901

Description of problem:
Group lookup is not returned immediately after sssd service startup
Version-Release number of selected component (if applicable):
sssd-1.11.0-1.el7
How reproducible:
Always
Steps to Reproduce:
1. Run the test with sleep of 1 second.
# service sssd stop; rm -f /var/lib/sss/{db,mc}/*;service sssd start;sleep
1;getent group kaugrp@sssdad2012.com
Redirecting to /bin/systemctl stop  sssd.service
Redirecting to /bin/systemctl start  sssd.service
kaugrp@sssdad2012.com:*:818410351:kautest@sssdad2012.com
#
2. Run the test without any delay
# service sssd stop; rm -f /var/lib/sss/{db,mc}/*;service sssd start;getent
group kaugrp@sssdad2012.com
Redirecting to /bin/systemctl stop  sssd.service
Redirecting to /bin/systemctl start  sssd.service
#
Actual results:
Expected results:
Additional info:

Pavel can you take a look at this bug, please?

blockedby: =>
blocking: =>
changelog: =>
coverity: =>
design: =>
design_review: => 0
feature_milestone: =>
fedora_test_page: =>
owner: somebody => pbrezina
review: True => 0
selected: =>
testsupdated: => 0

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.11.2

Fields changed

status: new => assigned

Fields changed

priority: major => critical

This seems to be a race condition between obtaining master domain information and group request. It works fine when master domain information process is finished before group request occur and it fails otherwise.

Patch c2aeea38addda1a07e60adbc3451f11b640f7bf1 makes the group resolution much more likely, but it does not fix the issue. It works about 98/100 attempts in my environment with this patch.

Fields changed

patch: 0 => 1

  • master: 444d8f0077644a3701d8e25cd3041db6def43a62
  • sssd-1-11: 9885fed5dc7b2d2117ddffd9d2e2adb7a4f4441c

resolution: => fixed
status: assigned => closed

Fields changed

changelog: => N/A just a bugfix

Metadata Update from @jhrozek:
- Issue assigned to pbrezina
- Issue set to the milestone: SSSD 1.11.2

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/3134

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata