ovn: add ovn-openflow-probe-interval var

The inactivity probe interval of the OpenFlow  connection
to the OpenvSwitch integration bridge, in seconds. If the
value is zero, it disables the connection keepalive  fea‐
ture.

If  the  value  is  nonzero,  then it will be forced to a
value of at least 5s.

The value is set to 60 seconds by default as described in
"OVN issues in the field".

https://www.openvswitch.org/support/ovscon2019/day1/1436-OVSCON-Nouman.pdf
https://www.ovn.org/support/dist-docs/ovn-controller.8.html

Change-Id: I7066c3a8b33b482774f310c45142ac2936a5c405
This commit is contained in:
Mathias Fechner 2022-04-28 11:22:23 +02:00
parent 8ece7cce90
commit 491b8fb49a
3 changed files with 17 additions and 0 deletions

View File

@ -89,3 +89,5 @@ ovn_sb_db_extra_volumes: "{{ ovn_extra_volumes }}"
ovn_base_mac: "52:54:00"
# Configure OVN remote probe interval time in ms
ovn_remote_probe_interval: "60000"
# Configure OVN openflow interval in s
ovn_openflow_probe_interval: "60"

View File

@ -30,6 +30,7 @@
- { name: ovn-encap-type, value: geneve }
- { name: ovn-remote, value: "{{ ovn_sb_connection }}" }
- { name: ovn-remote-probe-interval, value: "{{ ovn_remote_probe_interval }}" }
- { name: ovn-openflow-probe-interval, value: "{{ ovn_openflow_probe_interval }}" }
- { name: ovn-bridge-mappings, value: "{{ ovn_mappings }}", state: "{{ 'present' if (inventory_hostname in groups['ovn-controller-network'] or computes_need_external_bridge | bool) else 'absent' }}" }
- { name: ovn-chassis-mac-mappings, value: "{{ ovn_macs }}", state: "{{ 'present' if inventory_hostname in groups['ovn-controller-compute'] else 'absent' }}" }
- { name: ovn-cms-options, value: "{{ ovn_cms_opts }}", state: "{{ 'present' if ovn_cms_opts != '' else 'absent' }}" }

View File

@ -0,0 +1,14 @@
---
features:
- |
For ovn added ovn-openflow-probe-interval variable, it sets
the inactivity probe interval of the OpenFlow connection
to the OpenvSwitch integration bridge, in seconds. If the
value is zero, it disables the connection keepalive feature.
The default value is 60 seconds.
upgrade:
- |
For ovn the default value of openflow-probe-interval was
changed to 60 seconds. Use the ovn-openflow-probe-interval
variable to override.