@@ -219,6 +219,14 @@ resource "openstack_networking_port_v2" "login" {
219
219
binding {
220
220
vnic_type = "{{ cluster_vnic_type | default('normal') }}"
221
221
}
222
+
223
+ lifecycle {
224
+ ignore_changes = [
225
+ binding, # fixes running as admin
226
+ extra_dhcp_option # required for networking-mlnx neutron plugin
227
+ ]
228
+ }
229
+
222
230
}
223
231
224
232
# Storage network
@@ -235,6 +243,14 @@ resource "openstack_networking_port_v2" "login_storage" {
235
243
binding {
236
244
vnic_type = "{{ cluster_storage_vnic_type | default('normal') }}"
237
245
}
246
+
247
+ lifecycle {
248
+ ignore_changes = [
249
+ binding, # fixes running as admin
250
+ extra_dhcp_option # required for networking-mlnx neutron plugin
251
+ ]
252
+ }
253
+
238
254
}
239
255
{% endif %}
240
256
@@ -258,8 +274,15 @@ resource "openstack_networking_port_v2" "control" {
258
274
259
275
binding {
260
276
vnic_type = "{{ cluster_vnic_type | default('normal') }}"
277
+ }
261
278
279
+ lifecycle {
280
+ ignore_changes = [
281
+ binding, # fixes running as admin
282
+ extra_dhcp_option # required for networking-mlnx neutron plugin
283
+ ]
262
284
}
285
+
263
286
}
264
287
265
288
# Storage network
@@ -276,6 +299,14 @@ resource "openstack_networking_port_v2" "control_storage" {
276
299
binding {
277
300
vnic_type = "{{ cluster_storage_vnic_type | default('normal') }}"
278
301
}
302
+
303
+ lifecycle {
304
+ ignore_changes = [
305
+ binding, # fixes running as admin
306
+ extra_dhcp_option # required for networking-mlnx neutron plugin
307
+ ]
308
+ }
309
+
279
310
}
280
311
{% endif %}
281
312
@@ -301,6 +332,14 @@ resource "openstack_networking_port_v2" "{{ nodegroup.name }}" {
301
332
binding {
302
333
vnic_type = "{{ cluster_vnic_type | default('normal') }}"
303
334
}
335
+
336
+ lifecycle {
337
+ ignore_changes = [
338
+ binding, # fixes running as admin
339
+ extra_dhcp_option # required for networking-mlnx neutron plugin
340
+ ]
341
+ }
342
+
304
343
}
305
344
306
345
# Storage network
@@ -318,6 +357,14 @@ resource "openstack_networking_port_v2" "{{ nodegroup.name }}_storage" {
318
357
binding {
319
358
vnic_type = "{{ cluster_storage_vnic_type | default('normal') }}"
320
359
}
360
+
361
+ lifecycle {
362
+ ignore_changes = [
363
+ binding, # fixes running as admin
364
+ extra_dhcp_option # required for networking-mlnx neutron plugin
365
+ ]
366
+ }
367
+
321
368
}
322
369
{% endif %}
323
370
0 commit comments