Hi,
I recently noticed that on Ubuntu 22.04 (Jammy), OVN is not working properly with Incus.
I set up three machines (all using the Zabbly repository) and successfully formed an Incus cluster, but when I tried to connect the OVN cluster (using the OVN Set Up guide in docs), I got this error:
$ incus config set network.ovn.northbound_connection tcp:10.98.69.2:6641,tcp:10.98.69.3:6641,tcp:10.98.69.4:6641
Error: failed to notify peer 10.98.69.3:8443: unable to connect to any endpoints: failed to connect to tcp:10.98.69.2:6641: database OVN_Northbound validation error (6): Mapper Error. Object type ovsmodel.LogicalSwitchPort contains field MirrorRules (string) ovs tag mirror_rules: Column does not exist in schema. database model contains a model for table Static_MAC_Binding that does not exist in schema…
However, performing the same test on an Ubuntu 24.04 (Noble) cluster works fine.
When I compared versions, I found the following:
Ubuntu 22.04
$ ovn-sbctl --version
ovn-sbctl 22.03.3
Open vSwitch Library 2.17.9
DB Schema 20.21.0
$ ovn-nbctl --version
ovn-nbctl 22.03.3
Open vSwitch Library 2.17.9
DB Schema 6.1.0
Ubuntu 24.04
$ ovn-sbctl --version
ovn-sbctl 24.03.2
Open vSwitch Library 3.3.0
DB Schema 20.33.0
$ ovn-nbctl --version
ovn-nbctl 24.03.2
Open vSwitch Library 3.3.0
DB Schema 7.3.0
It looks like the problem is related to the OVN packages available in the Ubuntu repositories.
On Noble, the packages are up to date, but on Jammy they are much older.
Is there a way to update the OVN packages on Jammy (22.04) to the same version as those in Noble? Does Incus provide its own OVN repository, or should OVN be upgraded through another source?