Updating microovn from 24.03 to 26.03 breaks ovs

Aperta
#1,687 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start with the linked OVN commits and the v24.03.9 / v26.03.2 changelogs to confirm which release clears other_config:flow-restore-wait and how it interacts with external_ids:ovn-managed-flow-restore-wait. The 'Fix: Bump' section is truncated and the change belongs in the microovn snap packaging, not this repo, where only service/version.go (microOVNMinVersion) is named. Done means a 24.03→26.03 three-node upgrade leaves no lingering flag, BFD comes up, and a chassis claims the HA gateway port. Reproducing needs three nested LXD containers, so expect a heavy setup before any edit.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

After refreshing microovn cluster from 24.03/stable to 26.03/stable, OVN networking stops working on every gateway chassis, despite microovn status showing healthy.

The cause is other_config:flow-restore-wait=true. This flag is set in the OVS database by the 24.03 snap's OVN controller as part of normal operation, but 26.03 doesn't manage and therefore never clears this flag, so ovs-vswitchd keeps waiting forever.

Affected versions

Both 26.03/stable and latest/stable are affected.

Impact

  • All new data-plane flows fail on affected chassis, meaning DHCP, ARP, and traffic from new instances is dropped.
  • Instances that were running from before the upgrade may continue working until flows are flushed.
  • No chassis claims the HA gateway port, so north-south traffic is also down.
  • lxc network info <ovn-network> fails with Failed getting active chassis for logical router port ...
  • MicroCloud 3.4.1 now refuses init and join unless MicroOVN is ≥ 26.03 (microOVNMinVersion in service/version.go). As such, every MicroCloud user who upgrades to add a node gets pushed through this.

Steps to reproduce

Create three LXD containers with security.nesting=true.

# Install microovn and set up a 3 node cluster
snap install microovn --channel=24.03/stable

# On one node
microovn cluster bootstrap
microovn cluster add

# On the other two
microovn cluster join

# Create a router with an HA gateway spanning all 3 chassis
microovn.ovn-nbctl \
  -- ls-add ls-ext -- lr-add lr0 \
  -- lrp-add lr0 lrp-ext 00:00:00:00:ff:02 172.16.0.1/24 \
  -- lsp-add ls-ext lsp-ext-r -- lsp-set-type lsp-ext-r router \
  -- lsp-set-addresses lsp-ext-r router \
  -- lsp-set-options lsp-ext-r router-port=lrp-ext \
  -- lrp-set-gateway-chassis lrp-ext node-1 30 \
  -- lrp-set-gateway-chassis lrp-ext node-2 20 \
  -- lrp-set-gateway-chassis lrp-ext node-3 10

# 24.03.8 only starts managing the flag after applying a non-zero nb_cfg
microovn.ovn-nbctl --wait=hv sync

# Each node now has the flag and the marker
microovn.ovs-vsctl get Open_vSwitch . other_config:flow-restore-wait # "true"
microovn.ovs-vsctl get Open_vSwitch . external_ids:ovn-managed-flow-restore-wait  # "true"

# Upgrade every node
snap refresh microovn --channel 26.03/stable
Expected behavior

The data plane should work fine after the upgrade. The flag is cleared, BFD comes up, a chassis claims the gateway port, and new instances get DHCP leases and connectivity.

Actual behavior
node-1: flow-restore-wait="true"   lookups: hit:211 missed:14 lost:144
node-2: flow-restore-wait="true"   lookups: hit:210 missed:15 lost:119
node-3: flow-restore-wait="true"   lookups: hit:204 missed:18 lost:97

logical_port : cr-lrp-ext
chassis      : []

BFD on all tunnels: state=down
VIF added after the upgrade: cannot ping its router

Workaround

On every chassis:

sudo microovn.ovs-vsctl remove Open_vSwitch . other_config flow-restore-wait

The switch resumes immediately. Instances that had already given up on DHCP may need
their client restarted.

Fix

Bump

References

Lingua principale
Go
Stelle
552
Fork
96
Merge medio
4g 10h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di canonical/microcloud

Tutte le issue di canonical/microcloud

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.