Skip to content

Commit 0221bd7

Browse files
committed
Deprecate support for external_ids:ovn-openflow-probe-interval
The option was removed from OVN in v24.03 release[1] when OpenFlow inactivity probe was removed. [1] ovn-org/ovn@c16e5da Change-Id: I6536b6fcf5bd2ed4d2359ab43a677e3a3b8c58d4
1 parent f6b2cd2 commit 0221bd7

File tree

3 files changed

+40
-12
lines changed

3 files changed

+40
-12
lines changed

manifests/controller.pp

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@
8080
# (optional) Set probe interval, based on user configuration, value is in ms
8181
# Defaults to 60000
8282
#
83-
# [*ovn_openflow_probe_interval*]
84-
# (optional) The inactivity probe interval of the OpenFlow
85-
# connection to the OpenvSwitch integration bridge, in
86-
# seconds. If the value is zero, it disables the connection keepalive feature.
87-
# If the value is nonzero, then it will be forced to a value of at least 5s.
88-
# Defaults to 60
89-
#
9083
# [*ovn_transport_zones*]
9184
# (optional) List of the transport zones to which the chassis belongs to.
9285
# Defaults to empty list
@@ -143,6 +136,15 @@
143136
# Additional command line options for ovn-controller service
144137
# Defaults to []
145138
#
139+
# DEPRECATED PARAMETERS
140+
#
141+
# [*ovn_openflow_probe_interval*]
142+
# (optional) The inactivity probe interval of the OpenFlow
143+
# connection to the OpenvSwitch integration bridge, in
144+
# seconds. If the value is zero, it disables the connection keepalive feature.
145+
# If the value is nonzero, then it will be forced to a value of at least 5s.
146+
# Defaults to undef
147+
#
146148
class ovn::controller(
147149
String[1] $service_name,
148150
String[1] $package_name,
@@ -163,8 +165,7 @@
163165
Boolean $enable_dpdk = false,
164166
Optional[Variant[String[1], Array[String[1]]]] $ovn_cms_options = undef,
165167
Integer[0] $ovn_remote_probe_interval = 60000,
166-
Integer[0] $ovn_openflow_probe_interval = 60,
167-
Array[String[1]] $ovn_transport_zones = [],
168+
Array[String[1]] $ovn_transport_zones = [],
168169
Boolean $enable_ovn_match_northd = false,
169170
Variant[Array[String], Hash[String, String]] $ovn_chassis_mac_map = [],
170171
Boolean $ovn_monitor_all = false,
@@ -174,6 +175,8 @@
174175
Optional[Stdlib::Absolutepath] $ovn_controller_ssl_cert = undef,
175176
Optional[Stdlib::Absolutepath] $ovn_controller_ssl_ca_cert = undef,
176177
Array[String[1]] $ovn_controller_extra_opts = [],
178+
# DEPRECATED PARAMETERS
179+
Optional[Integer[0]] $ovn_openflow_probe_interval = undef,
177180
) {
178181

179182
if $enable_dpdk and ! $datapath_type {
@@ -231,11 +234,23 @@
231234
'external_ids:hostname' => { 'value' => $hostname },
232235
'external_ids:ovn-bridge' => { 'value' => $ovn_bridge },
233236
'external_ids:ovn-remote-probe-interval' => { 'value' => $ovn_remote_probe_interval },
234-
'external_ids:ovn-openflow-probe-interval' => { 'value' => $ovn_openflow_probe_interval },
235237
'external_ids:ovn-monitor-all' => { 'value' => $ovn_monitor_all },
236238
'external_ids:ovn-ofctrl-wait-before-clear' => { 'value' => $ovn_ofctrl_wait_before_clear },
237239
}
238240

241+
if $ovn_openflow_probe_interval != undef {
242+
warning("The ovn_openflow_probe_interval parameter was deprecated and \
243+
will be removed in a future release.")
244+
245+
$of_probe_interval = {
246+
'external_ids:ovn-openflow-probe-interval' => { 'value' => $ovn_openflow_probe_interval },
247+
}
248+
} else {
249+
$of_probe_interval = {
250+
'external_ids:ovn-openflow-probe-interval' => { 'ensure' => 'absent' },
251+
}
252+
}
253+
239254
if $ovn_encap_ip_default {
240255
$encap_ip_default = {
241256
'external_ids:ovn-encap-ip-default' => { 'value' => $ovn_encap_ip_default }
@@ -338,6 +353,7 @@
338353
'vs_config',
339354
merge(
340355
$config_items,
356+
$of_probe_interval,
341357
$encap_ip_default,
342358
$cms_options,
343359
$encap_tos,
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
upgrade:
3+
- |
4+
The ``external_ids:ovn-openflow-probe-interval`` option is now unset by
5+
default. Set the ``ovn::controller::ovn_openflow_probe_interval`` parameter
6+
explicitly to keep using the previous default value.
7+
8+
deprecations:
9+
- |
10+
The ``ovn::controller::ovn_openflow_probe_interval`` parameter has been
11+
deprecated, because the ``external_ids:ovn-openflow-probe-interval``
12+
option of ovn-controller was removed in OVN 24.03 .

spec/classes/ovn_controller_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
:value => 60000,
6868
)
6969
is_expected.to contain_vs_config('external_ids:ovn-openflow-probe-interval').with(
70-
:value => 60,
70+
:ensure => 'absent',
7171
)
7272
is_expected.to contain_vs_config('external_ids:ovn-monitor-all').with(
7373
:value => false,
@@ -105,7 +105,7 @@
105105
:hostname => 'server1.example.com',
106106
:ovn_cms_options => ['cms_option1', 'cms_option2:foo'],
107107
:ovn_remote_probe_interval => 30000,
108-
:ovn_openflow_probe_interval => 8,
108+
:ovn_openflow_probe_interval => 5,
109109
:ovn_monitor_all => true,
110110
:ovn_transport_zones => ['tz1'],
111111
:enable_ovn_match_northd => false,

0 commit comments

Comments
 (0)