Change default connection_recycle_time setting
Set connection_recycle_time to 280 by default for
all openstack services
Change-Id: Ic9738553c02f19e4c8ea075cc96710bffb46ae4f
Related-Prod: PROD-24678
diff --git a/oslo_templates/files/queens/oslo/_database.conf b/oslo_templates/files/queens/oslo/_database.conf
index 28b1fea..77ef17f 100644
--- a/oslo_templates/files/queens/oslo/_database.conf
+++ b/oslo_templates/files/queens/oslo/_database.conf
@@ -47,8 +47,10 @@
# Deprecated group/name - [DATABASE]/sql_idle_timeout
# Deprecated group/name - [sql]/idle_timeout
#connection_recycle_time = 3600
-{%- if _data.connection_recycle_time is defined %}
-connection_recycle_time = {{ _data.connection_recycle_time }}
+# (obryndzii) we change default connection_recycle_time to 280 in order to fix numerous
+# DBConnection errors in services until we implement this setting in reclass-system
+{%- if _data.get('connection_recycle_time', 280) %}
+connection_recycle_time = {{ _data.get('connection_recycle_time', 280) }}
{%- endif %}
# Minimum number of SQL connections to keep open in a pool. (integer