Blame SOURCES/autofs-5.1.6-update-sss-timeout-documentation.patch

d702dc
autofs-5.1.6 - update sss timeout documentation
d702dc
d702dc
From: Ian Kent <raven@themaw.net>
d702dc
d702dc
Update then man page documentation and the configuration file
d702dc
comments to reflect the changes to map reading and key lookups
d702dc
with the sss lookup module.
d702dc
---
d702dc
 CHANGELOG                      |    1 +
d702dc
 man/autofs.conf.5.in           |   20 +++++++++++++-------
d702dc
 redhat/autofs.conf.default.in  |   28 +++++++++++++++++++---------
d702dc
 samples/autofs.conf.default.in |   26 ++++++++++++++++++--------
d702dc
 4 files changed, 51 insertions(+), 24 deletions(-)
d702dc
d702dc
diff --git a/CHANGELOG b/CHANGELOG
d702dc
index 2d98a3a..e48e2c0 100644
d702dc
--- a/CHANGELOG
d702dc
+++ b/CHANGELOG
d702dc
@@ -105,6 +105,7 @@ xx/xx/2018 autofs-5.1.5
d702dc
 - sss introduce calculate_retry_count() function.
d702dc
 - move readall into struct master.
d702dc
 - sss introduce a flag to indicate map being read.
d702dc
+- update sss timeout documentation.
d702dc
 
d702dc
 19/12/2017 autofs-5.1.4
d702dc
 - fix spec file url.
d702dc
diff --git a/man/autofs.conf.5.in b/man/autofs.conf.5.in
d702dc
index 8dbc313..57dd421 100644
d702dc
--- a/man/autofs.conf.5.in
d702dc
+++ b/man/autofs.conf.5.in
d702dc
@@ -31,9 +31,11 @@ overrides this and sets the timeout to 5 minutes to be consistent
d702dc
 with earlier autofs releases.
d702dc
 .TP
d702dc
 .B master_wait
d702dc
-sets the default maximum time to wait for the master map to become
d702dc
-available if it cannot be read at program start (program default 10,
d702dc
-wait for 10 seconds then continue).
d702dc
+Sets the default maximum number of retries (actaul iterations is half
d702dc
+this, each is delayed by 2 seconds before retrying) waiting for the
d702dc
+master map to become available if it cannot be read at program start
d702dc
+(program default 10, then continue). This can be longer if the map
d702dc
+source itself waits for availability (such as sss).
d702dc
 .TP
d702dc
 .B negative_timeout
d702dc
 .br
d702dc
@@ -160,10 +162,14 @@ behaviour and so is an opt-in setting.
d702dc
 .TP
d702dc
 .B sss_master_map_wait
d702dc
 .br
d702dc
-Set the time to wait and retry if sssd returns "no such entry" when starting
d702dc
-up. When sssd is starting up it can sometimes return "no such entry" for a
d702dc
-short time until it has read in the LDAP map information. Default is 0 seconds,
d702dc
-don't wait.
d702dc
+Set the time to wait and retry if sssd is unable to read the master map
d702dc
+at program start. Program default is 0 (don't wait) or 10 if sss supports
d702dc
+returning EHSTDOWN when the provider isn't available.
d702dc
+
d702dc
+If the sss library supports returning EHOSTDOWN when the provider is down
d702dc
+then this value is how long to wait between retries reading the master map.
d702dc
+When reading dependent maps or looking up a map key this value is multiplied
d702dc
+by the number of retries that would be used when reading the master map.
d702dc
 .TP
d702dc
 .B use_mount_request_log_id
d702dc
 .br
d702dc
diff --git a/redhat/autofs.conf.default.in b/redhat/autofs.conf.default.in
d702dc
index bd52730..2a5a1c2 100644
d702dc
--- a/redhat/autofs.conf.default.in
d702dc
+++ b/redhat/autofs.conf.default.in
d702dc
@@ -14,10 +14,13 @@
d702dc
 #
d702dc
 timeout = 300
d702dc
 #
d702dc
-# master_wait - set the default maximum time to wait for the
d702dc
-# 		master map to become available if it cannot
d702dc
-# 		be read at program start (default 10, wait
d702dc
-# 		for 10 seconds then continue).
d702dc
+# master_wait - set the default maximum number of retries (actual
d702dc
+# 		iterations is half this, each is delayed by 2 seconds
d702dc
+# 		before retrying) waiting for the master map to become
d702dc
+# 		available if it cannot be read at program start
d702dc
+# 		(default 10, then continue). This can be longer
d702dc
+# 		if the map source itself waits for availability
d702dc
+# 		(such as sss).
d702dc
 #
d702dc
 #master_wait = 10
d702dc
 #
d702dc
@@ -193,12 +196,19 @@ mount_nfs_default_protocol = 4
d702dc
 #use_ignore_mount_option = no
d702dc
 #
d702dc
 # sss_master_map_wait - When sssd is starting up it can sometimes return
d702dc
-# 			"no such entry" for a short time until it has read
d702dc
+#			"no such entry" for a short time until it has read
d702dc
 # 			in the LDAP map information. Internal default is 0
d702dc
-# 			seconds, don't wait but if there is a problem with
d702dc
-# 			autofs not finding the master map at startup (when
d702dc
-# 			it should) then try setting this to 10 to work
d702dc
-# 			around it.
d702dc
+# 			(don't wait) or 10 if sss supports returning EHSTDOWN.
d702dc
+# 			If there is a problem with autofs not finding the
d702dc
+# 			master map at startup (when it should) then try setting
d702dc
+# 			this to 10 or more. If the sss library supports returning
d702dc
+# 			EHOSTDOWN when the provider is down then this value
d702dc
+# 			is how long to wait between retries reading the
d702dc
+# 			master map. When reading dependent maps or looking
d702dc
+# 			up a map key this value is multiplied by the number
d702dc
+# 			of retries that would be used when reading the master
d702dc
+# 			map. (Default, 0 or 10 if sss suppprts returning
d702dc
+# 			EHOSTDOWN).
d702dc
 #
d702dc
 #sss_master_map_wait = 0
d702dc
 #
d702dc
diff --git a/samples/autofs.conf.default.in b/samples/autofs.conf.default.in
d702dc
index 1f55709..dd716c6 100644
d702dc
--- a/samples/autofs.conf.default.in
d702dc
+++ b/samples/autofs.conf.default.in
d702dc
@@ -14,10 +14,13 @@
d702dc
 #
d702dc
 timeout = 300
d702dc
 #
d702dc
-# master_wait - set the default maximum time to wait for the
d702dc
-# 		master map to become available if it cannot
d702dc
-# 		be read at program start (default 10, wait
d702dc
-# 		for 10 seconds then continue).
d702dc
+# master_wait - set the default maximum number of retries (actual
d702dc
+# 		iterations is half this, each is delayed by 2 seconds
d702dc
+# 		before retrying) waiting for the master map to become
d702dc
+# 		available if it cannot be read at program start
d702dc
+# 		(default 10, then continue). This can be longer
d702dc
+# 		if the map source itself waits for availability
d702dc
+# 		(such as sss).
d702dc
 #
d702dc
 # master_wait = 10
d702dc
 #
d702dc
@@ -194,10 +197,17 @@ browse_mode = no
d702dc
 # sss_master_map_wait - When sssd is starting up it can sometimes return
d702dc
 #			"no such entry" for a short time until it has read
d702dc
 # 			in the LDAP map information. Internal default is 0
d702dc
-# 			seconds, don't wait but if there is a problem with
d702dc
-# 			autofs not finding the master map at startup (when
d702dc
-# 			it should) then try setting this to 10 to work
d702dc
-# 			around it.
d702dc
+# 			(don't wait) or 10 if sss supports returning EHSTDOWN.
d702dc
+# 			If there is a problem with autofs not finding the
d702dc
+# 			master map at startup (when it should) then try setting
d702dc
+# 			this to 10 or more. If the sss library supports returning
d702dc
+# 			EHOSTDOWN when the provider is down then this value
d702dc
+# 			is how long to wait between retries reading the
d702dc
+# 			master map. When reading dependent maps or looking
d702dc
+# 			up a map key this value is multiplied by the number
d702dc
+# 			of retries that would be used when reading the master
d702dc
+# 			map. (Default, 0 or 10 if sss suppprts returning
d702dc
+# 			EHOSTDOWN).
d702dc
 #
d702dc
 #sss_master_map_wait = 0
d702dc
 #