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 954275 - sssd fails connect to IPA server during boot when spanning tree is enabled in network router.
Summary: sssd fails connect to IPA server during boot when spanning tree is enabled in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.4
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jakub Hrozek
QA Contact: Kaushik Banerjee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-22 07:32 UTC by pgustafs
Modified: 2020-05-02 17:21 UTC (History)
8 users (show)

Fixed In Version: sssd-1.9.2-108.el6
Doc Type: Bug Fix
Doc Text:
Cause: When locating servers using SRV DNS records failed, the SSSD did not retry the SRV query even after its internal timeout passed. Consequence: As a consequence, if server discovery failed the first time (prominently during bootup), the SSSD didn't retry this query until it was restarted or the networking status of the client changed, forcing reset of the SSSD networking status. Fix: The SRV queries were fixed to always retry after a timeout passed Result: The SSSD now retries SRV queries correctly even if the first resolution fails.
Clone Of:
Environment:
Last Closed: 2013-11-21 22:17:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 2927 0 None closed Use a shorter retry timeout for SRV queries in cases the query cannot be resolved (negative timeout) 2020-11-03 21:32:45 UTC
Github SSSD sssd issues 2928 0 None closed If previous SRV query failed, the next try might not be retried in some cases 2020-11-03 21:32:45 UTC
Github SSSD sssd issues 2975 0 None closed sssd fails to resolve hosts/services once the network is up 2020-11-03 21:32:45 UTC
Red Hat Product Errata RHBA-2013:1680 0 normal SHIPPED_LIVE sssd bug fix and enhancement update 2013-11-20 21:52:37 UTC

Description pgustafs 2013-04-22 07:32:00 UTC
Description of problem:
sssd fails connect to IPA server during boot when spanning tree is enabled in network router.

When ipa-client machines is behind a router with spanning tree
enabled which means it takes around 40 sec before the switch port is
up. During the boot sssd is started before the the port is up and therefore fails connect to ipa and going offline, and sssd don't leave the offline state until sssd daemon is restarted.

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


How reproducible:
Always


Steps to Reproduce:
1. Enable spanning tree in the network router
2. Install ipa client using ipa-client-install script.
3. Reboot ipa-client machine after ipa-client-install script is executed.
  
Actual results:
ipa-client-install script is successfully executed since the port is up when executed. ipa client machine is rebooted and sssd fails to connect to ipa since the port is not up yet and going offline, after 40 seconds the port is up but sssd don't going online until sssd is restarted. 


Expected results:
ipa-client-install script is successfully executed since the port is up when executed. ipa client machine is rebooted and sssd fails to connect to ipa since the port is not up yet and going offline, after 40 seconds when the port is up sssd is going online.


Additional info:

Comment 1 Jakub Hrozek 2013-04-22 08:27:35 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/1886

Comment 2 Jakub Hrozek 2013-04-22 08:29:56 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/1885

Comment 4 Jakub Hrozek 2013-06-14 12:15:06 UTC
Fixed upstream in d3b39cf07164b23d47bbce3d6e6541b13fc895f5

Comment 9 Jakub Hrozek 2013-10-16 09:28:12 UTC
To reproduce:
1. Configure the SSSD with SRV resolution followed by a real server (for example ipa_server = _srv_, ipa.example.com)
2. Start with a DNS server that can't resolve the real server
3. Attempt to get a user. This should fail and sssd should go offline.
4. Adjust the DNS so that it's able to resolve the real server but still unable to resolve the SRV query.
5. Attempt to get a user again. With the unpatched packages, this will keep failing as sssd wouldn't even try the hardcoded server at all. Make sure the second attempt is at least 30 seconds after the first user resolution.

Comment 10 Jakub Hrozek 2013-10-16 09:32:10 UTC
btw I just realized you may not need a DNS server at all but instead you can just put entries into /etc/hosts. I think that will make testing easier a bit.

Comment 11 Amith 2013-10-18 14:44:51 UTC
Verified and automated the bug in SSSD Version: sssd-1.9.2-128.el6.x86_64

Steps followed during verification, are mentioned in Comment 9. See the output of the beaker automation run below:

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: BZ 954275 - sssd fails connect to IPA server during boot when spanning tree is enabled in network router
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Running 'cat /etc/resolv.conf > /etc/resolv.conf-bkup' (Expected 0, got 0)
:: [   PASS   ] :: Running '> /etc/resolv.conf' (Expected 0, got 0)
:: [   PASS   ] :: Running 'cat /etc/hosts > /etc/hosts-bkup' (Expected 0, got 0)
:: [   PASS   ] :: Running '> /etc/hosts' (Expected 0, got 0)
:: [   LOG    ] :: Sleeping for 5 seconds
:: [   PASS   ] :: User lookup is expected to fail (Expected 2, got 2)
:: [   PASS   ] :: Running 'sleep 40' (Expected 0, got 0)
:: [   PASS   ] :: Running 'cp -rvf /etc/hosts-bkup /etc/hosts' (Expected 0, got 0)
:: [   PASS   ] :: Running 'echo "$SERVER_IP $SERVER" >> /etc/hosts' (Expected 0, got 0)
:: [   PASS   ] :: Running 'sleep 40' (Expected 0, got 0)
:: [   PASS   ] :: User lookup should succeed (Expected 0, got 0)
:: [   PASS   ] :: Running 'cat /etc/resolv.conf-bkup > /etc/resolv.conf' (Expected 0, got 0)
:: [   PASS   ] :: Running 'cat /etc/hosts-bkup > /etc/hosts' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 1m 30s
:: [   LOG    ] :: Assertions: 12 good, 0 bad
:: [   PASS   ] :: RESULT: BZ 954275 - sssd fails connect to IPA server during boot when spanning tree is enabled in network router

Comment 12 errata-xmlrpc 2013-11-21 22:17:19 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.

http://rhn.redhat.com/errata/RHBA-2013-1680.html


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