I’m experimenting with OVN networks on my Incus lab.
The box has a single VLAN aware Ethernet port for data.
That port is used by an uplink network:
incus network show uplink14
config:
dns.nameservers: 172.29.14.1
ipv4.gateway: 172.29.14.1/24
ipv4.ovn.ranges: 172.29.14.128-172.29.14.250
parent: enp2s0
vlan: “14”
volatile.last_state.created: “true”
description: VLAN 14 uplink
name: uplink14
type: physical
used_by:
* /1.0/networks/ovn-test?project=test
managed: true
status: Created
locations:
* none
project: default
I use OpenTofu to create an OVN network, connected to uplink14. I’m using OVN as I want the networks to be part of a project, and apparently a bridge can only be part of the default project:
incus --project test network show ovn-test
config:
bridge.mtu: "1500"
dns.domain: test.internal.
dns.search: test.internal
ipv4.address: 10.225.114.1/24
ipv4.dhcp: "true"
ipv4.nat: "true"
ipv6.address: none
network: uplink14
volatile.network.ipv4.address: 172.29.14.128
description: OVN for test project
name: ovn-test
type: ovn
used_by:
- /1.0/instances/a1?project=test
- /1.0/instances/a2?project=test
- /1.0/instances/test?project=test
- /1.0/profiles/default?project=test
managed: true
status: Created
locations:
- none
project: test
Finally, OpenTofu created a profile using the above OVN network and an OCI Alpine Linux container from which to test.
I’ve also manually added a couple of Alpine system containers to the project to help test - a1 and a2.
Running ovn-sbctl list DNS shows that the hosts are registered as records:
_uuid : a3f6e0cc-12f8-4c55-bc7b-f611878f56af
datapaths : [cca6963f-f06f-4b56-b642-cb60c913cad8]
external_ids : {dns_id="02730897-93fe-4301-9507-4a55eabfd03f"}
records : {a1.test.internal.="10.225.114.2"}
_uuid : 61a7d1e2-ce89-49df-a0ba-04cd5653e07f
datapaths : [cca6963f-f06f-4b56-b642-cb60c913cad8]
external_ids : {dns_id="5752559d-d97a-4bff-ae65-b92c446ef52c"}
records : {a2.test.internal.="10.225.114.4"}
The problem is that I can’t resolve those names from anywhere. The containers don’t resolve those names, and neither does the Incus host itself.
Where am I suppose to be able to resolve these?
Thanks in advance.