kolla aio external network with single NIC
As in title, I want to setup an all-in-one Kolla Openstack platform on my CentOS testing machine which only holds a single physical network interface. Here is my goal:
This doc seemed all dedicated to achieving this task, so I did try to follow it, and at some point I ended up there:
The “neutron_external_interface” variable is the interface that will be used for the external bridge in Neutron. Without this bridge the deployment instance traffic will be unable to access the rest of the Internet. In the case of a single interface on a machine, a veth pair may be used where one end of the veth pair is listed here and the other end is in a bridge on the system.
Unfortunately, my machine does not have 2 physical interfaces as recommended, so I had to setup these 2 veth pair. I found the some references to help (1 2), then I've managed to setup this persistent veth pair following these steps:
- Copy
ifup-veth
andifdown-veth
to your/etc/sysconfig/network-scripts
directory - Setup the
ifcfg-br0
andifcfg-enp0s31f6
files to setup the bridge - Edit the
ifcfg-veth0
file to setup the veth pair
Then my /etc/kolla/globals.yml
only includes the below changes:
-kolla_internal_vip_address: "10.10.10.254"
+kolla_internal_vip_address: "192.168.1.5"
...
-network_interface: "eth0"
+network_interface: "br0"
...
-neutron_external_interface: "eth1"
+neutron_external_interface: "veth1"
...
+enable_haproxy: "no"
I've also tried playing with neutron_plugin_agent
(either openvswitch
or linuxbridge
) parameter.
Slight modification in script /usr/share/kolla/init-runonce
-neutron subnet-create --name 1-subnet --disable-dhcp --allocation-pool start=10.0.2.150,end=10.0.2.199 public1 10.0.2.0/24 --gateway 10.0.2.1
+neutron subnet-create --name 1-subnet --allocation-pool start=192.168.1.151,end=192.168.1.200 public1 192.168.1.0/24 --gateway 192.168.1.1 --dns-nameserver 192.168.1.1 --dns-nameserver 8.8.8.8
Then I run the whole kolla-ansible chain:
kolla-ansible prechecks && kolla-ansible pull && kolla-ansible deploy && kolla-ansible post-deploy
It all runs well, which only leaves me the init to run:
. /etc/kolla/admin-openrc.sh
/usr/share/kolla/init-runonce
This is where I'm stuck as I'm unable to reach any of the instances I launch either from my physical host or my 192.168.1.0
LAN. Any idea about what I'm missing?
I have the same issue. Did you manage to make it work ?
Same here. Did you fix it? How?