Commit 6cdf56f
committed
Fix OVN condition flapping during minor updates
During minor updates, reconcileOVNControllers was called on every
reconcile throughout all update phases, causing two issues:
1. OVNReadyCondition flapping: Since InitConditions() resets all
conditions to Unknown on each reconcile, calling
reconcileOVNControllers during later phases (RabbitMQ, Galera, etc.)
could transiently flip OVNReadyCondition to False, blocking the
OpenStackVersion controller from maintaining MinorUpdateOVNControlplane
as True.
2. Metrics DaemonSet unnecessary restarts: reconcileOVNControllers
passed an empty string for the metrics cert name, clearing the
MetricsTLS fields on the OVNController CR. This changed the metrics
config hash, causing two spurious DaemonSet rollouts — once when
MetricsTLS was cleared during the update, and again when the normal
reconcile path restored it after the update completed.
Fix both by:
- Skipping reconcileOVNControllers after the OVN controlplane phase
completes, directly marking OVNReadyCondition True instead (needed
because InitConditions() resets conditions each reconcile).
- Passing the correct metrics cert name via EnsureOVNMetricsCert so
MetricsTLS stays consistent when reconcileOVNControllers does run.
There was another issue in ovn-operator for pre mature readiness, that is
being fixed as part of openstack-k8s-operators/ovn-operator#587
Related-Issue: https://redhat.atlassian.net/browse/OSPRH-31318
Assisted-By: Claude
Signed-off-by: Yatin Karel <ykarel@redhat.com>1 parent 2e0717b commit 6cdf56f
1 file changed
Lines changed: 23 additions & 9 deletions
Lines changed: 23 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
326 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
327 | 332 | | |
328 | 333 | | |
| 334 | + | |
329 | 335 | | |
330 | 336 | | |
331 | 337 | | |
| |||
402 | 408 | | |
403 | 409 | | |
404 | 410 | | |
405 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
406 | 420 | | |
407 | 421 | | |
408 | 422 | | |
| |||
0 commit comments