Set inactivity probe for OVS manager
This fixes obsdb connection errors on loaded gtw nodes:
"tcp:127.0.0.1:39562: no response to inactivity probe after
5 seconds, disconnecting"
Change-Id: I314df61e55a16f0d6c8af29ecc7f2761a4e97746
Related-Prod: PROD-30984
diff --git a/neutron/gateway.sls b/neutron/gateway.sls
index b1b61f7..e51990a 100644
--- a/neutron/gateway.sls
+++ b/neutron/gateway.sls
@@ -80,6 +80,15 @@
- require:
- pkg: neutron_gateway_packages
+{%- if gateway.inactivity_probe is defined %}
+{%- set probe_ms = gateway.inactivity_probe * 1000 %}
+ovs_manager_inactivity_probe:
+ cmd.run:
+ - name: "ovs-vsctl set manager ptcp:6640:127.0.0.1 inactivity_probe={{ probe_ms }}"
+ - unless:
+ - ovs-vsctl get manager ptcp:6640:127.0.0.1 inactivity_probe | grep -qFx {{ probe_ms }}
+{%- endif %}
+
{%- endif %}
{%- endif %}