#2390 Failover does not always happen from SRV to hostname resolution(via /etc/hosts)
Closed: Fixed None Opened 6 years ago by jhrozek.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 6): Bug 1122873

Description of problem:
This test was written as part of the fix to bug 954275
The failover is not proper from srv lookup to hostname resolution(via
/etc/hosts)

Version-Release number of selected component (if applicable):
sssd-1.11.6-4.el6

How reproducible:
Always

Steps to Reproduce:
1. sssd.conf has "ldap_uri=_srv_,ldap://server_hostname"
2. Empty /etc/resolv.conf and /etc/hosts
3. Perform lookup (Fails and sssd goes offline)
4. Update /etc/hosts with <server_ip> <server_hostname> . Verify that you can
lookup the server.
5. Sleep for 60 seconds
6. Lookup user (Still fails)

Actual results:

Log shows:

(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_get_account_info] (0x0100):
Got request for [4097][1][name=testuser]
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_get_account_info] (0x0100):
Request processed. Returned 1,11,Fast reply - offline
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_req_set_domain] (0x0400):
Changing request domain from [LDAP] to [LDAP]
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [sdap_id_op_connect_step]
(0x4000): beginning to connect
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [fo_resolve_service_send]
(0x0100): Trying to resolve service 'LDAP'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [get_port_status] (0x1000): Port
status of port 0 for server '(no name)' is 'not working'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [get_port_status] (0x0100):
Reseting the status of port 0 for server '(no name)'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]]
[fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 6
seconds
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [resolve_srv_send] (0x0200): The
status of SRV lookup is not resolved
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x0080): Couldn't resolve server (SRV lookup meta-server), resolver
returned (5)
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x1000): Trying with the next one!
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [fo_resolve_service_send]
(0x0100): Trying to resolve service 'LDAP'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [fo_resolve_service_send]
(0x0100): Trying to resolve service 'LDAP'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]]
[fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 6
seconds
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [resolve_srv_send] (0x0200): The
status of SRV lookup is not resolved
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x0080): Couldn't resolve server (SRV lookup meta-server), resolver
returned (5)
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x1000): Trying with the next one!
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [fo_resolve_service_send]
(0x0100): Trying to resolve service 'LDAP'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [fo_resolve_service_send]
(0x0100): Trying to resolve service 'LDAP'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]]
[fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 6
seconds
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [resolve_srv_send] (0x0200): The
status of SRV lookup is not resolved
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x0080): Couldn't resolve server (SRV lookup meta-server), resolver
returned (5)
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x1000): Trying with the next one!
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x1000): Trying with the next one!
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [fo_resolve_service_send]
(0x0100): Trying to resolve service 'LDAP'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]]
[fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 6
seconds
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [resolve_srv_send] (0x0200): The
status of SRV lookup is not resolved
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [resolve_srv_send] (0x0200): The
status of SRV lookup is not resolved
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x0080): Couldn't resolve server (SRV lookup meta-server), resolver
returned (5)
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x1000): Trying with the next one!
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [fo_resolve_service_send]
(0x0100): Trying to resolve service 'LDAP'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]]
[fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 6
seconds
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [resolve_srv_send] (0x0200): The
status of SRV lookup is not resolved
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x0080): Couldn't resolve server (SRV lookup meta-server), resolver
returned (5)
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x1000): Trying with the next one!
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [fo_resolve_service_send]
(0x0100): Trying to resolve service 'LDAP'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]]
[fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 6
seconds
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [resolve_srv_send] (0x0200): The
status of SRV lookup is not resolved
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x0080): Couldn't resolve server (SRV lookup meta-server), resolver
returned (5)
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x1000): Trying with the next one!
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [fo_resolve_service_send]
(0x0100): Trying to resolve service 'LDAP'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]]
[fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 6
seconds
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [resolve_srv_send] (0x0200): The
status of SRV lookup is not resolved
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x0080): Couldn't resolve server (SRV lookup meta-server), resolver
returned (5)
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x1000): Trying with the next one!
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [fo_resolve_service_send]
(0x0100): Trying to resolve service 'LDAP'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]]
[fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 6
seconds
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [resolve_srv_send] (0x0200): The
status of SRV lookup is not resolved
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x0080): Couldn't resolve server (SRV lookup meta-server), resolver
returned (5)
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x1000): Trying with the next one!
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [fo_resolve_service_send]
(0x0100): Trying to resolve service 'LDAP'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]]
[fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 6
seconds
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [resolve_srv_send] (0x0200): The
status of SRV lookup is not resolved
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x0080): Couldn't resolve server (SRV lookup meta-server), resolver
returned (5)
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x1000): Trying with the next one!
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [fo_resolve_service_send]
(0x0100): Trying to resolve service 'LDAP'
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]]
[fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 6
seconds
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [resolve_srv_send] (0x0200): The
status of SRV lookup is not resolved
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x0080): Couldn't resolve server (SRV lookup meta-server), resolver
returned (5)
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_process]
(0x0040): Failed to find a server after 10 attempts
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_resolve_server_done]
(0x1000): Server resolution failed: 5
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [sdap_id_op_connect_done]
(0x0020): Failed to connect, going offline (5 [Input/output error])
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_mark_offline] (0x2000):
Going offline!
(Tue Jul 22 04:52:22 2014) [sssd[be[LDAP]]] [be_run_offline_cb] (0x0080):
Going offline. Running callbacks.

Expected results:
Failover works

Additional info:

Fields changed

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

Fields changed

patch: 0 => 1

milestone: NEEDS_TRIAGE => SSSD 1.11.7
resolution: => fixed
status: new => closed

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

3 years ago

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/3432

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.

Login to comment on this ticket.

Metadata