Bug 1884213

Summary: [RFE] add offline_timeout_max config option to control offline interval backoff
Product: Red Hat Enterprise Linux 8 Reporter: Alexey Tikhonov <atikhono>
Component: sssdAssignee: Paweł Poławski <ppolawsk>
Status: CLOSED ERRATA QA Contact: Madhuri <mupadhye>
Severity: unspecified Docs Contact: lmcgarry
Priority: unspecified    
Version: 8.3CC: dlavu, grajaiya, jhrozek, lmcgarry, lslebodn, mupadhye, mzidek, pbrezina, ppolawsk, sbose, sgoveas, tscherf
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira qetodo
Fixed In Version: sssd-2.4.0-5.el8 Doc Type: Enhancement
Doc Text:
.Added an option to manually control the maximum offline timeout The `offline_timeout` period determines the time incrementation between attempts by SSSD to go back online. Previously, the maximum possible value for this interval was hardcoded to 3600 seconds, which was adequate for general usage but resulted in issues in fast or slow changing environments. This update adds the `offline_timeout_max` option to manually control the maximum length of each interval, allowing you more flexibility to track the server behavior in SSSD. Note that you should set this value in correlation to the `offline_timeout` parameter value. A value of 0 disables the incrementing behavior.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:03:59 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1881992    
Bug Blocks:    

Description Alexey Tikhonov 2020-10-01 11:23:30 UTC
The offline_timeout period determines the minimum time between attempts of a data provider to go back online, if it is offline due to eg. unreachable servers. Each time this check fails there is a backoff factor applied meaning there can be up to 60 minutes between these attempts.

We need to introduce the offline_timeout_max option which allows the the maximum period between attempts to be defined in the configuration, instead of the default 60 minutes; therefore providing more flexibility.

Setting offline_timeout_max to 0 will disable the backoff functionality.

Comment 2 Alexey Tikhonov 2020-10-01 11:26:04 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/5252

* `master`
    * 04ea422087d76b437904be8bfea0b507a7613fc0 - data_provider_be: Add OFFLINE_TIMEOUT_DEFAULT
    * 904ff17cc20581d85faba3e4274d6712f4119a1b - be_ptask: backoff not applied on first re-schedule
    * 7807ffd7c3d25762ac760856d1f039742b7ff2b3 - be_ptask: max_backoff may not be reached
    * b1ef82b6bbad1930b63aa7dacab1dd3c74574884 - data_provider_be: Configurable max offline time

Comment 13 Sumit Bose 2020-12-22 16:13:00 UTC
Pushed PR: #5423

    master
        171b664 - data_provider_be: MAN page update
        1e9abd5 - data_provider_be: Add random offset default

Comment 15 Madhuri 2021-01-12 07:35:10 UTC
[root@ci-vm-10-0-155-17 sssd]# rpm -qa sssd
sssd-2.4.0-5.el8.x86_64

From man page,

       offline_timeout (integer)
           When SSSD switches to offline mode the amount of time before it tries to go back online will increase based upon the time spent disconnected. This value is
           in seconds and calculated by the following:

           offline_timeout + random_offset

           The random offset value is from 0 to 30. After each unsuccessful attempt to go online, the new interval is recalculated by the following:

           new_interval = (old_interval * 2) + random_offset

           Note that the maximum length of each interval is defined by offline_timeout_max, which defaults to one hour. If the calculated length of new_interval is
           greater than offline_timeout_max, it will be forced to the offline_timeout_max value.

           Default: 60

       offline_timeout_max (integer)
           Controls by how much the time between attempts to go online can be incremented following unsuccessful attempts to go online.

           A value of 0 disables the incrementing behaviour.

           The value of this parameter should be set in correlation to offline_timeout parameter value.

           With offline_timeout set to 60 (default value) there is no point in setting offlinet_timeout_max to less than 120 as it will saturate instantly. General rule
           here should be to set offline_timeout_max to at least 4 times offline_timeout.

           Although a value between 0 and offline_timeout may be specified, it has the effect of overriding the offline_timeout value so is of little use.

           Default: 3600

Verification steps:

1. Configure ldap server with sssd client
2. Make server offline
3. Add offline_timeout_max with different values
4. Restart sssd after clearning the logs


case 1:
offline_timeout_max = 190

[root@ci-vm-10-0-155-17 sssd]#  grep 'ptask' . -ir
./sssd_example1.log:(2021-01-11 11:15:38): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Full Refresh] was created
./sssd_example1.log:(2021-01-11 11:15:38): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 10 seconds from now [1610104548]
./sssd_example1.log:(2021-01-11 11:15:38): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Smart Refresh] was created
./sssd_example1.log:(2021-01-11 11:15:38): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Smart Refresh]: scheduling task 910 seconds from now [1610105448]
./sssd_example1.log:(2021-01-11 11:15:48): [be[example1]] [be_ptask_execute] (0x0400): Task [SUDO Full Refresh]: executing task, timeout 21600 seconds
./sssd_example1.log:(2021-01-11 11:15:48): [be[example1]] [be_mark_offline] (0x2000): Initialize check_if_online_ptask.
./sssd_example1.log:(2021-01-11 11:15:48): [be[example1]] [be_ptask_create] (0x0400): Periodic task [Check if online (periodic)] was created
./sssd_example1.log:(2021-01-11 11:15:48): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 65 seconds from now [1610104613]
./sssd_example1.log:(2021-01-11 11:15:48): [be[example1]] [be_ptask_done] (0x0040): Task [SUDO Full Refresh]: failed with [11]: Resource temporarily unavailable
./sssd_example1.log:(2021-01-11 11:15:48): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 21600 seconds from now [1610126148]
./sssd_example1.log:(2021-01-11 11:15:48): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:15:48): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Smart Refresh]: disabling task
./sssd_example1.log:(2021-01-11 11:15:48): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:15:48): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Full Refresh]: disabling task
./sssd_example1.log:(2021-01-11 11:16:53): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:16:53): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:16:53): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:16:53): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 142 seconds from last execution time [1610104455]
./sssd_example1.log:(2021-01-11 11:19:15): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:19:15): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:19:15): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:19:15): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 212 seconds from last execution time [1610104572]
./sssd_example1.log:(2021-01-11 11:22:52): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:22:52): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:22:52): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:22:52): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 215 seconds from last execution time [1610105181]
./sssd_example1.log:(2021-01-11 11:26:29): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:26:29): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:26:29): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:26:29): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 214 seconds from last execution time [1610105453]
./sssd_example1.log:(2021-01-11 11:30:03): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:30:03): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:30:03): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:30:03): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 213 seconds from last execution time [1610105616]
./sssd_example1.log:(2021-01-11 11:33:36): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:33:36): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:33:36): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:33:36): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 206 seconds from last execution time [1610105719]


case 2:
offline_timeout_max = 200

[root@ci-vm-10-0-155-17 sssd]#  grep 'ptask' . -ir
./sssd_example1.log:(2021-01-11 11:37:20): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Full Refresh] was created
./sssd_example1.log:(2021-01-11 11:37:20): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 10 seconds from now [1610105850]
./sssd_example1.log:(2021-01-11 11:37:20): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Smart Refresh] was created
./sssd_example1.log:(2021-01-11 11:37:20): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Smart Refresh]: scheduling task 910 seconds from now [1610106750]
./sssd_example1.log:(2021-01-11 11:37:30): [be[example1]] [be_ptask_execute] (0x0400): Task [SUDO Full Refresh]: executing task, timeout 21600 seconds
./sssd_example1.log:(2021-01-11 11:37:30): [be[example1]] [be_mark_offline] (0x2000): Initialize check_if_online_ptask.
./sssd_example1.log:(2021-01-11 11:37:30): [be[example1]] [be_ptask_create] (0x0400): Periodic task [Check if online (periodic)] was created
./sssd_example1.log:(2021-01-11 11:37:30): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 79 seconds from now [1610105929]
./sssd_example1.log:(2021-01-11 11:37:30): [be[example1]] [be_ptask_done] (0x0040): Task [SUDO Full Refresh]: failed with [11]: Resource temporarily unavailable
./sssd_example1.log:(2021-01-11 11:37:30): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 21600 seconds from now [1610127450]
./sssd_example1.log:(2021-01-11 11:37:30): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:37:30): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Smart Refresh]: disabling task
./sssd_example1.log:(2021-01-11 11:37:30): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:37:30): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Full Refresh]: disabling task
./sssd_example1.log:(2021-01-11 11:38:49): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:38:49): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:38:49): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:38:49): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 140 seconds from last execution time [1610106069]
./sssd_example1.log:(2021-01-11 11:41:09): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:41:09): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:41:09): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:41:09): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 228 seconds from last execution time [1610106293]
./sssd_example1.log:(2021-01-11 11:44:53): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:44:53): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:44:53): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:44:53): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 221 seconds from last execution time [1610106514]
./sssd_example1.log:(2021-01-11 11:48:34): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:48:34): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:48:34): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:48:34): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 219 seconds from last execution time [1610106740]
./sssd_example1.log:(2021-01-11 11:52:20): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:52:20): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:52:20): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:52:20): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 215 seconds from last execution time [1610106955]
./sssd_example1.log:(2021-01-11 11:55:55): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:55:55): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:55:55): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:55:55): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 224 seconds from last execution time [1610107179]


case 3:
offline_timeout_max = 210

[root@ci-vm-10-0-155-17 sssd]#  grep 'ptask' . -ir
./sssd_example1.log:(2021-01-11 11:57:58): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Full Refresh] was created
./sssd_example1.log:(2021-01-11 11:57:58): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 10 seconds from now [1610107088]
./sssd_example1.log:(2021-01-11 11:57:58): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Smart Refresh] was created
./sssd_example1.log:(2021-01-11 11:57:58): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Smart Refresh]: scheduling task 910 seconds from now [1610107988]
./sssd_example1.log:(2021-01-11 11:58:08): [be[example1]] [be_ptask_execute] (0x0400): Task [SUDO Full Refresh]: executing task, timeout 21600 seconds
./sssd_example1.log:(2021-01-11 11:58:09): [be[example1]] [be_mark_offline] (0x2000): Initialize check_if_online_ptask.
./sssd_example1.log:(2021-01-11 11:58:09): [be[example1]] [be_ptask_create] (0x0400): Periodic task [Check if online (periodic)] was created
./sssd_example1.log:(2021-01-11 11:58:09): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 69 seconds from now [1610107158]
./sssd_example1.log:(2021-01-11 11:58:09): [be[example1]] [be_ptask_done] (0x0040): Task [SUDO Full Refresh]: failed with [11]: Resource temporarily unavailable
./sssd_example1.log:(2021-01-11 11:58:09): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 21600 seconds from now [1610128689]
./sssd_example1.log:(2021-01-11 11:58:09): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:58:09): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Smart Refresh]: disabling task
./sssd_example1.log:(2021-01-11 11:58:09): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:58:09): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Full Refresh]: disabling task
./sssd_example1.log:(2021-01-11 11:59:18): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 11:59:18): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 11:59:18): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 11:59:18): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 142 seconds from last execution time [1610107303]
./sssd_example1.log:(2021-01-11 12:01:43): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 12:01:43): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 12:01:43): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 12:01:43): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 215 seconds from last execution time [1610107519]
./sssd_example1.log:(2021-01-11 12:05:19): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 12:05:19): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 12:05:19): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 12:05:19): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 214 seconds from last execution time [1610107733]
./sssd_example1.log:(2021-01-11 12:08:53): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 12:08:53): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 12:08:53): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 12:08:53): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 223 seconds from last execution time [1610107959]
./sssd_example1.log:(2021-01-11 12:12:39): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 12:12:39): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 12:12:39): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 12:12:39): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 215 seconds from last execution time [1610108172]
./sssd_example1.log:(2021-01-11 12:16:12): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 12:16:12): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 12:16:12): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 12:16:12): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 216 seconds from last execution time [1610108389]
./sssd_example1.log:(2021-01-11 12:19:49): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 12:19:49): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 12:19:49): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 12:19:49): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 217 seconds from last execution time [1610108606]

case 4:
offline_timeout_max = 240

[root@ci-vm-10-0-155-17 sssd]# grep 'ptask' . -ir
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Full Refresh] was created
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 0 seconds from now [1610008495]
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Smart Refresh] was created
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Smart Refresh]: scheduling task 900 seconds from now [1610009395]
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_execute] (0x0400): Task [SUDO Full Refresh]: executing task, timeout 21600 seconds
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_mark_offline] (0x2000): Initialize check_if_online_ptask.
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_create] (0x0400): Periodic task [Check if online (periodic)] was created
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 86 seconds from now [1610008581]
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_done] (0x0040): Task [SUDO Full Refresh]: failed with [11]: Resource temporarily unavailable
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 21600 seconds from now [1610030095]
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Smart Refresh]: disabling task
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:34:55): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Full Refresh]: disabling task
./sssd_example1.log:(2021-01-11  8:36:21): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:36:21): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:36:21): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:36:21): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 122 seconds from last execution time [1610008703]
./sssd_example1.log:(2021-01-11  8:38:23): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:38:23): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:38:23): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:38:23): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 250 seconds from last execution time [1610008952]
./sssd_example1.log:(2021-01-11  8:42:32): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:42:32): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:42:32): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:42:32): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 269 seconds from last execution time [1610009221]
./sssd_example1.log:(2021-01-11  8:47:01): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:47:01): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:47:01): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:47:01): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 260 seconds from last execution time [1610009483]
./sssd_example1.log:(2021-01-11  8:51:23): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:51:23): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:51:23): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:51:23): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 257 seconds from last execution time [1610009740]
./sssd_example1.log:(2021-01-11  8:55:40): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:55:40): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:55:40): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:55:40): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 265 seconds from last execution time [1610010005]
./sssd_example1.log:(2021-01-11  9:00:05): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:00:05): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:00:05): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:00:05): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 256 seconds from last execution time [1610010261]
./sssd_example1.log:(2021-01-11  9:04:21): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:04:21): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:04:21): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:04:21): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 258 seconds from last execution time [1610010519]
./sssd_example1.log:(2021-01-11  9:08:39): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:08:39): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:08:39): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:08:39): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 237 seconds from last execution time [1610010766]
./sssd_example1.log:(2021-01-11  9:12:46): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:12:46): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:12:46): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:12:46): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 261 seconds from last execution time [1610011027]
./sssd_example1.log:(2021-01-11  9:17:07): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:17:07): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:17:07): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:17:07): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 249 seconds from last execution time [1610011276]
./sssd_example1.log:(2021-01-11  9:21:16): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:21:16): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:21:16): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:21:16): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 248 seconds from last execution time [1610011524]
./sssd_example1.log:(2021-01-11  9:25:24): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:25:24): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:25:24): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:25:24): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 263 seconds from last execution time [1610011790]



case 5:
offline_timeout_max = 500

[root@ci-vm-10-0-155-17 sssd]# grep 'ptask' . -ir
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Full Refresh] was created
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 0 seconds from now [1610011642]
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Smart Refresh] was created
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Smart Refresh]: scheduling task 900 seconds from now [1610012542]
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_execute] (0x0400): Task [SUDO Full Refresh]: executing task, timeout 21600 seconds
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_mark_offline] (0x2000): Initialize check_if_online_ptask.
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_create] (0x0400): Periodic task [Check if online (periodic)] was created
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 60 seconds from now [1610011702]
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_done] (0x0040): Task [SUDO Full Refresh]: failed with [11]: Resource temporarily unavailable
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 21600 seconds from now [1610033242]
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Smart Refresh]: disabling task
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:27:22): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Full Refresh]: disabling task
./sssd_example1.log:(2021-01-11  9:28:22): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:28:22): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:28:22): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:28:22): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 122 seconds from last execution time [1610011824]
./sssd_example1.log:(2021-01-11  9:30:24): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:30:24): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:30:24): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:30:24): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 257 seconds from last execution time [1610012079]
./sssd_example1.log:(2021-01-11  9:34:39): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:34:39): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:34:39): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:34:39): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 490 seconds from last execution time [1610012559]
./sssd_example1.log:(2021-01-11  9:42:39): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:42:39): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:42:39): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:42:39): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 523 seconds from last execution time [1610013079]
./sssd_example1.log:(2021-01-11  9:51:19): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:51:19): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:51:19): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:51:19): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 510 seconds from last execution time [1610013589]
./sssd_example1.log:(2021-01-11  9:59:49): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  9:59:49): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  9:59:49): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  9:59:49): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 504 seconds from last execution time [1610014093]
./sssd_example1.log:(2021-01-11 10:08:13): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 10:08:13): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 10:08:13): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 10:08:13): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 524 seconds from last execution time [1610014619]
./sssd_example1.log:(2021-01-11 10:16:59): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 10:16:59): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 10:16:59): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 10:16:59): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 518 seconds from last execution time [1610015136


case 6:
offline_timeout_max = 1000

[root@ci-vm-10-0-155-17 sssd]# grep 'ptask' . -ir
./sssd_example1.log:(2021-01-11 15:58:21): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Full Refresh] was created
./sssd_example1.log:(2021-01-11 15:58:21): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 10 seconds from now [1610035111]
./sssd_example1.log:(2021-01-11 15:58:21): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Smart Refresh] was created
./sssd_example1.log:(2021-01-11 15:58:21): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Smart Refresh]: scheduling task 910 seconds from now [1610036011]
./sssd_example1.log:(2021-01-11 15:58:31): [be[example1]] [be_ptask_execute] (0x0400): Task [SUDO Full Refresh]: executing task, timeout 21600 seconds
./sssd_example1.log:(2021-01-11 15:58:31): [be[example1]] [be_mark_offline] (0x2000): Initialize check_if_online_ptask.
./sssd_example1.log:(2021-01-11 15:58:31): [be[example1]] [be_ptask_create] (0x0400): Periodic task [Check if online (periodic)] was created
./sssd_example1.log:(2021-01-11 15:58:31): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 60 seconds from now [1610035171]
./sssd_example1.log:(2021-01-11 15:58:31): [be[example1]] [be_ptask_done] (0x0040): Task [SUDO Full Refresh]: failed with [11]: Resource temporarily unavailable
./sssd_example1.log:(2021-01-11 15:58:31): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 21600 seconds from now [1610056711]
./sssd_example1.log:(2021-01-11 15:58:31): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 15:58:31): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Smart Refresh]: disabling task
./sssd_example1.log:(2021-01-11 15:58:31): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 15:58:31): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Full Refresh]: disabling task
./sssd_example1.log:(2021-01-11 15:59:31): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 15:59:31): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 15:59:31): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 15:59:31): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 142 seconds from last execution time [1610035312]
./sssd_example1.log:(2021-01-11 16:01:52): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 16:01:52): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 16:01:52): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 16:01:52): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 265 seconds from last execution time [1610035581]
./sssd_example1.log:(2021-01-11 16:06:21): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 16:06:21): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 16:06:21): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 16:06:21): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 510 seconds from last execution time [1610036090]
./sssd_example1.log:(2021-01-11 16:14:50): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 16:14:50): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 16:14:50): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 16:14:50): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 966 seconds from last execution time [1610037066]
./sssd_example1.log:(2021-01-11 16:31:06): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 16:31:06): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 16:31:06): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 16:31:06): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 1023 seconds from last execution time [1610038089]
./sssd_example1.log:(2021-01-11 16:48:09): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11 16:48:09): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11 16:48:09): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11 16:48:09): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 1024 seconds from last execution time [1610039115]

case 7:

offline_timeout_max = 0

[root@ci-vm-10-0-155-17 sssd]# grep 'ptask' . -ir
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Full Refresh] was created
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 0 seconds from now [1606312086]
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_create] (0x0400): Periodic task [SUDO Smart Refresh] was created
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Smart Refresh]: scheduling task 900 seconds from now [1606312986]
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_execute] (0x0400): Task [SUDO Full Refresh]: executing task, timeout 21600 seconds
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_mark_offline] (0x2000): Initialize check_if_online_ptask.
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_create] (0x0400): Periodic task [Check if online (periodic)] was created
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 69 seconds from now [1606312155]
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_done] (0x0040): Task [SUDO Full Refresh]: failed with [11]: Resource temporarily unavailable
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_schedule] (0x0400): Task [SUDO Full Refresh]: scheduling task 21600 seconds from now [1606333686]
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Smart Refresh]: disabling task
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_offline_cb] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:48:06): [be[example1]] [be_ptask_disable] (0x0400): Task [SUDO Full Refresh]: disabling task
./sssd_example1.log:(2021-01-11  8:49:15): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:49:15): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:49:15): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:49:15): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 68 seconds from last execution time [1606312223]
./sssd_example1.log:(2021-01-11  8:50:23): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:50:23): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:50:23): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:50:23): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 69 seconds from last execution time [1606312291]
./sssd_example1.log:(2021-01-11  8:51:31): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:51:31): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:51:31): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:51:31): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 67 seconds from last execution time [1606312353]
./sssd_example1.log:(2021-01-11  8:52:33): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:52:33): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:52:33): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:52:33): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 67 seconds from last execution time [1606312422]
./sssd_example1.log:(2021-01-11  8:53:42): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:53:42): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:53:42): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:53:42): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 80 seconds from last execution time [1606312498]
./sssd_example1.log:(2021-01-11  8:54:58): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:54:58): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:54:58): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:54:58): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 70 seconds from last execution time [1606312584]
./sssd_example1.log:(2021-01-11  8:56:24): [be[example1]] [be_ptask_execute] (0x0400): Back end is offline
./sssd_example1.log:(2021-01-11  8:56:24): [be[example1]] [be_ptask_execute] (0x0400): Task [Check if online (periodic)]: executing task, timeout 60 seconds
./sssd_example1.log:(2021-01-11  8:56:24): [be[example1]] [be_ptask_done] (0x0400): Task [Check if online (periodic)]: finished successfully
./sssd_example1.log:(2021-01-11  8:56:24): [be[example1]] [be_ptask_schedule] (0x0400): Task [Check if online (periodic)]: scheduling task 82 seconds from last execution time [1606312670]


In all cases, values increasing and get saturated approx the same value we set in sssd.conf
if it set to 0, it disables the incremental timeout.

thus from above marking, this verified.

Comment 26 errata-xmlrpc 2021-05-18 15:03:59 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 (sssd bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1666