Hey All,
I’m trying to understand if my OVN networks can have their routes made dynamically available.
I have an LXD cluster with OVN up and working for communication between hosts.
My network setup is Grafana-ovn (OVN Network) > UPLINK (Physical) > ovnbr0 (OVN Bridge linked to ethernet)
Right now, my OVN network’s route is not dynamically presented to the host, or ovnbr0 (I added a container there and it did not see the route).
If I create a static route to the volatile IP of the OVN on the UPLINK network, I am able to connect as expected.
Is there a way for me to do this dynamically?
Here is my network config
A host’s route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.200.1 0.0.0.0 UG 100 0 0 eth0
default 192.168.200.1 0.0.0.0 UG 600 0 0 wlan0
10.32.41.0 0.0.0.0 255.255.255.0 U 0 0 0 ovnbr0
10.38.194.0 0.0.0.0 255.255.255.0 U 0 0 0 lxdbr0
192.168.200.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
192.168.200.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0
lxc network show Grafana-ovn
config:
bridge.mtu: "1442"
ipv4.address: 10.172.74.1/24
ipv4.nat: "true"
ipv6.address: fd42:2c84:afc5:19ce::1/64
ipv6.nat: "true"
network: UPLINK
volatile.network.ipv4.address: 10.32.41.10
description: ""
name: Grafana-ovn
type: ovn
used_by:
- /1.0/instances/Grafana
managed: true
status: Created
locations:
- host-01
- host-02
lxc network show UPLINK
config:
bgp.peers.grafana.address: 10.32.41.1
bgp.peers.grafana.asn: "10001"
dns.nameservers: 10.32.41.1
ipv4.gateway: 10.32.41.1/24
ipv4.ovn.ranges: 10.32.41.10-10.32.41.19
ipv4.routes: 10.172.74.0/24
ovn.ingress_mode: routed
volatile.last_state.created: "false"
description: ""
name: UPLINK
type: physical
used_by:
- /1.0/networks/Grafana-ovn
managed: true
status: Created
locations:
- host-01
- host-02
lxc network show ovnbr0
config:
ipv4.address: 10.32.41.1/24
ipv4.nat: "true"
ipv6.address: fd42:b306:8819:e44a::1/64
ipv6.nat: "true"
description: ""
name: ovnbr0
type: bridge
used_by:
- /1.0/instances/Grafana2
- /1.0/networks/UPLINK
managed: true
status: Created
locations:
- host-01
- host-02