Hello,
I 'm having a bit of a problem with creating a project-specific network in a cluster using OVN.
For starters, I have this (showing only managed networks):
$ lxc network ls
+---------+----------+---------+----------------+---------------+-------------+---------+---------+
| NAME | TYPE | MANAGED | IPV4 | IPV6 | DESCRIPTION | USED BY | STATE |
+---------+----------+---------+----------------+---------------+-------------+---------+---------+
| UPLINK | physical | YES | | | | 1 | CREATED |
+---------+----------+---------+----------------+---------------+-------------+---------+---------+
| ovn0 | ovn | YES | 10.168.20.1/24 | fd20:42::1/64 | | 1 | CREATED |
+---------+----------+---------+----------------+---------------+-------------+---------+---------+
Everythingâs fine with this setup.
Add a new project with:
$ lxc network create test -c features.networks=true
Create a network for this new test
project. Remember this is a cluster so we must target the members first:
$ lxc network create ovn-test --target member1 --project test
Error: Network type "ovn" does not support member specific config
OK, maybe I just have to define the networkâs project when it is actually created. Letâs try this:
$ lxc network create ovn-test --target member1
Network test pending on member member1
$ lxc network create ovn-test --target member2
Network test pending on member member2
$ lxc network create ovn-test --target member3
Network test pending on member member3
$ lxc network create test --type=ovn --project test
Network test created
It all looks good.
Letâs check some things:
$ lxc network ls --project test
+------+------+---------+-----------------+---------------------------+-------------+---------+---------+
| NAME | TYPE | MANAGED | IPV4 | IPV6 | DESCRIPTION | USED BY | STATE |
+------+------+---------+-----------------+---------------------------+-------------+---------+---------+
| test | ovn | YES | 10.132.154.1/24 | fd42:401c:3309:3bc0::1/64 | | 0 | CREATED |
+------+------+---------+-----------------+---------------------------+-------------+---------+---------+
$ # looking good!
$ lxc network ls
+---------+----------+---------+----------------+---------------+-------------+---------+---------+
| NAME | TYPE | MANAGED | IPV4 | IPV6 | DESCRIPTION | USED BY | STATE |
+---------+----------+---------+----------------+---------------+-------------+---------+---------+
| UPLINK | physical | YES | | | | 2 | CREATED |
+---------+----------+---------+----------------+---------------+-------------+---------+---------+
| ovn0 | ovn | YES | 10.168.20.1/24 | fd20:42::1/64 | | 1 | CREATED |
+---------+----------+---------+----------------+---------------+-------------+---------+---------+
| test | bridge | YES | | | | 0 | PENDING |
+---------+----------+---------+----------------+---------------+-------------+---------+---------+
Ooops! Why is there a test
network (itâs a bridge too) in the default
project? And itâs in âpendingâ stateâŠ
Also of note, after I configure the projectâs profile with a disk/eth0 pair and launch a container, the container never gets an IP address until I remove the (turns out that was my mistake, please ignore)test
network which is in the default
project in pending
state. I donât get it how a container in a project waits to receive DHCP from a network in another project (default
)?!
I really think I 'm missing something obvious here but I canât spot whatâŠ
Can someone spot what I 'm doing wrong with this setup?