[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
the patch has not been sent upstream yet? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
** Tags removed: sts-sru ** Tags added: sts-sru-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
This bug was fixed in the package sssd - 1.11.8-0ubuntu0.5 --- sssd (1.11.8-0ubuntu0.5) trusty; urgency=medium * d/p/BUILD-Fix-linking-with-librt.patch: Upstream fix for FTBS on ppc64el/arm64 after the implementation of timer functions in watchdog (LP: #1641875). -- Victor TapiaTue, 28 Feb 2017 10:20:19 +0100 ** Changed in: sssd (Ubuntu Trusty) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
This bug was fixed in the package sssd - 1.13.4-3ubuntu0.1 --- sssd (1.13.4-3ubuntu0.1) yakkety; urgency=medium * d/p/restart_providers_on_timeshift.patch: Implement watchdog and use SIGUSR2 after watchdog detects time shift to execute pending scheduled tasks that could be stuck (LP: #1641875) -- Victor TapiaThu, 23 Feb 2017 11:20:43 +0100 ** Changed in: sssd (Ubuntu Yakkety) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
This bug was fixed in the package sssd - 1.13.4-1ubuntu1.2 --- sssd (1.13.4-1ubuntu1.2) xenial; urgency=medium * d/p/restart_providers_on_timeshift.patch: Implement watchdog and use SIGUSR2 after watchdog detects time shift to execute pending scheduled tasks that could be stuck (LP: #1641875) -- Victor TapiaThu, 23 Feb 2017 11:46:31 +0100 ** Changed in: sssd (Ubuntu Xenial) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
# VERIFICATION FOR T Same script as for X, works as expected: (Mon Mar 6 04:31:25 2017) [sssd[be[openstacklocal]]] [fo_resolve_service_send] (0x0100): Trying to resolve service 'LDAP' (Mon Mar 6 04:31:25 2017) [sssd[be[openstacklocal]]] [get_server_status] (0x1000): Status of server 'ldap' is 'not working' (Mon Mar 6 04:31:25 2017) [sssd[be[openstacklocal]]] [get_server_status] (0x1000): Status of server 'ldap' is 'not working' (Mon Mar 6 04:31:25 2017) [sssd[be[openstacklocal]]] [fo_resolve_service_send] (0x0020): No available servers for service 'LDAP' (Mon Mar 6 04:31:25 2017) [sssd[be[openstacklocal]]] [be_resolve_server_done] (0x1000): Server resolution failed: 5 (Mon Mar 6 04:31:25 2017) [sssd[be[openstacklocal]]] [sdap_id_op_connect_done] (0x0020): Failed to connect, going offline (5 [Input/output error]) (Mon Mar 6 04:31:25 2017) [sssd[be[openstacklocal]]] [be_mark_offline] (0x2000): Going offline! (Mon Mar 6 04:31:25 2017) [sssd[be[openstacklocal]]] [be_ptask_create] (0x0400): Periodic task [Check if online (periodic)] was created (Mon Mar 6 04:31:25 2017) [sssd[be[openstacklocal]]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 69 seconds from now [1488774754] ... (Mon Mar 6 03:31:00 2017) [sssd[be[openstacklocal]]] [watchdog_fd_read_handler] (0x0040): Time shift detected, restarting watchdog! ... (Mon Mar 6 03:31:41 2017) [sssd[be[openstacklocal]]] [fo_resolve_service_send] (0x0100): Trying to resolve service 'LDAP' (Mon Mar 6 03:31:41 2017) [sssd[be[openstacklocal]]] [get_server_status] (0x1000): Status of server 'ldap' is 'name not resolved' (Mon Mar 6 03:31:41 2017) [sssd[be[openstacklocal]]] [get_port_status] (0x1000): Port status of port 389 for server 'ldap' is 'neutral' (Mon Mar 6 03:31:41 2017) [sssd[be[openstacklocal]]] [fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 6 seconds (Mon Mar 6 03:31:41 2017) [sssd[be[openstacklocal]]] [get_server_status] (0x1000): Status of server 'ldap' is 'name not resolved' (Mon Mar 6 03:31:41 2017) [sssd[be[openstacklocal]]] [resolv_is_address] (0x4000): [ldap] does not look like an IP address ** Tags removed: verification-done-xenial verification-done-yakkety verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
# VERIFICATION FOR X After running the following script (repro.sh), the log shows the LDAP resolution is rescheduled: #!/bin/bash change_time() { sudo systemctl stop systemd-timesyncd HOUR=$(date +%H) MIN=$(date +%M) NEW=$((10#$HOUR - 1)) sudo date --set "${NEW}:${MIN}" echo "Setting time to ${NEW}:${MIN}" } sudo systemctl restart sssd sleep 20 change_time Excerpts from /var/log/sssd/sssd_openstacklocal.log: (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [fo_resolve_service_send] (0x0100): Trying to resolve service 'LDAP' (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [get_server_status] (0x1000): Status of server 'ldap' is 'not working' (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [get_server_status] (0x1000): Status of server 'ldap' is 'not working' (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [fo_resolve_service_send] (0x0020): No available servers for service 'LDAP' (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [be_resolve_server_done] (0x1000): Server resolution failed: 5 (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [sdap_id_op_connect_done] (0x0020): Failed to connect, going offline (5 [Input/output error]) (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [be_mark_offline] (0x2000): Going offline! (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [be_mark_offline] (0x2000): Initialize check_if_online_ptask. (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [be_ptask_create] (0x0400): Periodic task [Check if online (periodic)] was created (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 63 seconds from now [1488462456] (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [be_run_offline_cb] (0x0080): Going offline. Running callbacks. (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [sdap_id_op_connect_done] (0x4000): notify offline to op #1 (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [sdap_dom_enum_ex_connected] (0x0400): Backend is marked offline, retry later! (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [be_ptask_done] (0x0400): Task [enumeration]: finished successfully (Thu Mar 2 13:46:33 2017) [sssd[be[openstacklocal]]] [be_ptask_schedule] (0x0400): Task [enumeration]: scheduling task 300 seconds from last execution time [1488462691] (Thu Mar 2 12:46:00 2017) [sssd[be[openstacklocal]]] [watchdog_fd_read_handler] (0x0040): Time shift detected, restarting watchdog! * Some initialization log entries (Thu Mar 2 12:46:40 2017) [sssd[be[openstacklocal]]] [fo_resolve_service_send] (0x0100): Trying to resolve service 'LDAP' (Thu Mar 2 12:46:40 2017) [sssd[be[openstacklocal]]] [get_server_status] (0x1000): Status of server 'ldap' is 'name not resolved' (Thu Mar 2 12:46:40 2017) [sssd[be[openstacklocal]]] [get_port_status] (0x1000): Port status of port 389 for server 'ldap' is 'neutral' (Thu Mar 2 12:46:40 2017) [sssd[be[openstacklocal]]] [fo_resolve_service_activate_timeout] (0x2000): Resolve timeout set to 6 seconds ** Tags added: verification-done-xenial verification-done-yakkety -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
** Patch removed: "trusty-sssd_1.11.8-0ubuntu0.5.debdiff" https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+attachment/4826011/+files/trusty-sssd_1.11.8-0ubuntu0.5.debdiff ** Patch added: "trusty-sssd_1.11.8-0ubuntu0.5.debdiff" https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+attachment/4828066/+files/trusty-sssd_1.11.8-0ubuntu0.5.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
** Patch added: "librt link fix" https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+attachment/4826011/+files/trusty-sssd_1.11.8-0ubuntu0.5.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
Hello Victor, or anyone else affected, Accepted sssd into yakkety-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/sssd/1.13.4-3ubuntu0.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: sssd (Ubuntu Yakkety) Status: Triaged => Fix Committed ** Tags added: verification-needed ** Changed in: sssd (Ubuntu Xenial) Status: Triaged => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
Fixed debdiff used for sponsorship (fixed versionning to stay coherent with other releases) ** Patch added: "yakkety-sssd_1.13.4-3ubuntu0.1.debdiff" https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+attachment/4825142/+files/yakkety-sssd_1.13.4-3ubuntu0.1.debdiff ** Patch removed: "yakkety-sssd_1.13.4-3ubuntu1.debdiff" https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+attachment/4824488/+files/yakkety-sssd_1.13.4-3ubuntu1.debdiff ** Tags removed: sts-sponsor -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
** Patch added: "trusty-sssd_1.11.8-0ubuntu0.4.debdiff" https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+attachment/4824602/+files/trusty-sssd_1.11.8-0ubuntu0.4.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
** Patch added: "xenial-sssd_1.13.4-1ubuntu1.2.debdiff" https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+attachment/4824489/+files/xenial-sssd_1.13.4-1ubuntu1.2.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
** Patch added: "yakkety-sssd_1.13.4-3ubuntu1.debdiff" https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+attachment/4824488/+files/yakkety-sssd_1.13.4-3ubuntu1.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
This bug was fixed in the package sssd - 1.15.0-3ubuntu3 --- sssd (1.15.0-3ubuntu3) zesty; urgency=medium * d/p/restart_providers_on_timeshift.patch: Use SIGUSR2 after watchdog detects time shift to execute pending scheduled tasks that could be stuck (LP: #1641875) -- Victor TapiaWed, 15 Feb 2017 17:05:05 +0100 ** Changed in: sssd (Ubuntu Zesty) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
** Changed in: sssd (Ubuntu Zesty) Status: New => In Progress ** Changed in: sssd (Ubuntu Yakkety) Status: New => Triaged ** Changed in: sssd (Ubuntu Xenial) Status: New => Triaged ** Changed in: sssd (Ubuntu Trusty) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
** Patch added: "zesty_sssd_1.15.0-3ubuntu3.debdiff" https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+attachment/4819666/+files/zesty_sssd_1.15.0-3ubuntu3.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
** Changed in: sssd (Ubuntu Trusty) Importance: Undecided => Medium ** Changed in: sssd (Ubuntu Yakkety) Importance: Undecided => Medium ** Changed in: sssd (Ubuntu Zesty) Importance: Undecided => Medium ** Changed in: sssd (Ubuntu Xenial) Importance: Undecided => Medium ** Tags added: sts-sponsor sts-sru -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
** Description changed: + [Impact] - When SSSD fails to connect to a provider (LDAP, for instance) it creates a timed event with tevent_add_timer() in order to retry in ~1 min. Tevent relies on CLOCK_REALTIME, using absolute epoch time, so when the time changes (e.g. NTP sync) the scheduled event is affected. + * SSSD is affected by clock shifts because it's built on libtevent, that doesn't use monotonic clocks. + * After an event has been scheduled, if the time drifts to the past SSSD won't recover and the event will have to wait the shifted time to be executed. + + [Test Case] + + * Modify the /etc/hosts file to force a failed resolution and restart sssd. + * Within the first ~1 minute retry window, change the date (date --set) to a previous time (e.g. 2h). + * "Tail" the log file. The event will be executed at the original schedule, past those 2h. + + [Regression Potential] + + * None + + [Other Info] + + * Version 1.15 implements a watchdog that detects time shifts and resets itselft but doesn't reschedule the scheduled events. + * There's a network monitor based on netlink that detects interface changes and restarts the providers, rescheduling the scheduled events. + * Such restart can be triggered with SIGUSR2. Sending that signal after the watchdog restarts fixes this issue. + * Upstream bug: https://fedorahosted.org/sssd/ticket/3285 + + [Original Description] + + When SSSD fails to connect to a provider (LDAP, for instance) it creates + a timed event with tevent_add_timer() in order to retry in ~1 min. + Tevent relies on CLOCK_REALTIME, using absolute epoch time, so when the + time changes (e.g. NTP sync) the scheduled event is affected. Reproducer: 1. Modify the /etc/hosts file to force a failed resolution and restart sssd - (Tue Oct 25 09:37:14 2016) [sssd[be[openstacklocal]]] [resolv_gethostbyname_dns_query] (0x0100): Trying to resolve A record of 'ldap' in DNS - (Tue Oct 25 09:37:14 2016) [sssd[be[openstacklocal]]] [resolv_gethostbyname_done] (0x0040): querying hosts database failed [5]: Input/output error - (Tue Oct 25 09:37:14 2016) [sssd[be[openstacklocal]]] [fo_resolve_service_done] (0x0020): Failed to resolve server 'ldap': Could not contact DNS servers - ... - (Tue Oct 25 09:37:14 2016) [sssd[be[openstacklocal]]] [check_online_callback] (0x0100): Backend returned: (1, 0, ) [Provider is Offline] + (Tue Oct 25 09:37:14 2016) [sssd[be[openstacklocal]]] [resolv_gethostbyname_dns_query] (0x0100): Trying to resolve A record of 'ldap' in DNS + (Tue Oct 25 09:37:14 2016) [sssd[be[openstacklocal]]] [resolv_gethostbyname_done] (0x0040): querying hosts database failed [5]: Input/output error + (Tue Oct 25 09:37:14 2016) [sssd[be[openstacklocal]]] [fo_resolve_service_done] (0x0020): Failed to resolve server 'ldap': Could not contact DNS servers + ... + (Tue Oct 25 09:37:14 2016) [sssd[be[openstacklocal]]] [check_online_callback] (0x0100): Backend returned: (1, 0, ) [Provider is Offline] 2. Within the ~1 minute window, change the date (date --set) to a previous time (2 hour in my example). Note: if /etc/resolv.conf or a network interface is modified, SSSD providers will restart, but the scheduled retry will be kept. - (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [recreate_ares_channel] (0x0100): Initializing new c-ares channel - (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [recreate_ares_channel] (0x0100): Destroying the old c-ares channel - (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [set_server_common_status] (0x0100): Marking server 'ldap' as 'name not resolved' - (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [fo_set_port_status] (0x0100): Marking port 389 of server 'ldap' as 'neutral' - (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [fo_resolve_service_send] (0x0100): Trying to resolve service 'LDAP' - ... - (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [fo_resolve_service_done] (0x0020): Failed to resolve server 'ldap': Could not contact DNS servers - (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [set_server_common_status] (0x0100): Marking server 'ldap' as 'not working' - ... - (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [check_online_callback] (0x0100): Backend returned: (1, 0, ) [Provider is Offline] + (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [recreate_ares_channel] (0x0100): Initializing new c-ares channel + (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [recreate_ares_channel] (0x0100): Destroying the old c-ares channel + (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [set_server_common_status] (0x0100): Marking server 'ldap' as 'name not resolved' + (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [fo_set_port_status] (0x0100): Marking port 389 of server 'ldap' as 'neutral' + (Tue Oct 25 07:41:46 2016) [sssd[be[openstacklocal]]] [fo_resolve_service_send] (0x0100): Trying to resolve
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
** Changed in: sssd (Ubuntu Trusty) Assignee: (unassigned) => Victor Tapia (vtapia) ** Changed in: sssd (Ubuntu Xenial) Assignee: (unassigned) => Victor Tapia (vtapia) ** Changed in: sssd (Ubuntu Yakkety) Assignee: (unassigned) => Victor Tapia (vtapia) ** Changed in: sssd (Ubuntu Zesty) Assignee: (unassigned) => Victor Tapia (vtapia) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1641875] Re: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments
** Also affects: sssd (Ubuntu Zesty) Importance: Undecided Status: New ** Also affects: sssd (Ubuntu Xenial) Importance: Undecided Status: New ** Also affects: sssd (Ubuntu Trusty) Importance: Undecided Status: New ** Also affects: sssd (Ubuntu Yakkety) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1641875 Title: Scheduled events (e.g. LDAP connection retries) are affected by clock adjustments To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1641875/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs