Ask Your Question
0

DevStack Homelab Network Configuration

asked 2019-09-28 02:45:14 -0600

qubitrenegade gravatar image

updated 2019-09-28 14:24:54 -0600

Hello,

I have a single host that I'd like to run DevStack on.

OS: 18.04.3 LTS (Bionic Beaver)
Kernel: Linux OpenStack 5.0.0-29-generic #31~18.04.1-Ubuntu SMP Thu Sep 12 18:29:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
CPU: AMD Ryzen 7 1800X Eight-Core Processor
RAM: 16GB
Disk:  /dev/mapper/ubuntu--vg-ubuntu--lv  916G   19G  860G   3% /
NIC: enp35s0, Intel Corporation I211 Gigabit Network Connection (rev 03)

https://docs.openstack.org/devstack/latest/guides/single-machine.html (I followed this doc). The installer runs, and I'm able to spin up VMs! This seems to create two networks "Public" and "Shared" (I do not seem to be able to assign a floating IP when a VM is attached to the shared network, that seems intentional?).

However, these are not reachable from outside of the host machine.

I set the following in my local.conf before running stack.sh

FLOATING_RANGE=192.168.0.128/26
FIXED_RANGE=10.11.12.0/24
HOST_IP=192.168.0.15

After creating DevStack, I created a few networks, subnets, and routers. Then for troubleshooting purposes I created an "allow all" to allow all TCP, UDP, and ICMP traffic. https://gitlab.com/qbrd-homelab/terraform/openstack/infrastructure (Terraform that I used to do so can be found here). https://gist.github.com/qubitrenegade/3fc1e9c3df595540ce3b2b42c97bbfc2 (I created a gist) of the out put from network, router, and port opentstack commands.

I'm doing this on my home network I created a https://i.imgur.com/K2teP5l.png (rough drawing) to illustrate what I have going on.

Home Subnet:  192.168.0.0/24
DHCP Range:  192.168.0.96-127
DHCP/DNS Server: 192.168.0.2

Host1: DevStack
IP: 192.168.0.15

VM1: Guest on DevStack
Network: prod01-network
IP: 192.168.100.30
Floating IP: 192.168.0.186

VM2: Guest on another host, all results are replicable from laptop and workstation (which is the host of VM2)
IP: 192.168.0.72

I am able to ping/ssh to the VM1 guest from Host1. I cannot ping/ssh from VM2 (external to DevStack) to VM1 (DevStack guest). I _can_ ping/ssh from VM1 (DevStack Guest) to VM2 (external to DevStack)

I performed the following connectivity tests:

Host1 -> VM1 Floating IP - 192.168.0.186, yes
Host1 -> Floating IP G/W -192.168.0.129, yes
Host1 -> VM1 IP - 192.168.100.30, negative
Host1 -> VM1 Gateway - 192.168.100.1, negative

VM2 -> ping VM1 Floating IP - 192.168.0.186, negative
VM2 -> ssh VM1 FLoating IP - 192.168.0.186, negative
VM2 -> ping Floating IP G/W -192.168.0.129, yes
VM2 -> VM1 IP - 192.168.100.30, negative
VM2 -> VM1 Gateway - 192.168.100.1, negative
VM2 -> curl -L 1.0.0.1, yes
VM2 -> Host1 - 192.168.0.15, yes

VM1 -> ping VM2 - 192.168.0.72, yes
VM1 -> ssh VM2 192.168.0.72, yes
VM1 -> ping 8.8.8.8 -> yes
VM1 -> ping google.com, negative "name ...
(more)
edit retag flag offensive close merge delete

Comments

Hmm... These docs: https://docs.openstack.org/devstack/latest/configuration.html (https://docs.openstack.org/devstack/l...)

Have different attributes:

#IPV4_ADDRS_SAFE_TO_USE=172.31.1.0/24
#FLOATING_RANGE=192.168.20.0/25

Though, I'm not sure that would really have any affect...

But, the FLOATING_RANGEdifferent subnet than host

qubitrenegade gravatar imagequbitrenegade ( 2019-09-28 12:39:26 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-09-29 16:06:47 -0600

qubitrenegade gravatar image

Ok, the solution was to add a static route in the router to point to the floating subnet.

What I ended up doing was setting FLOATING_RANGE=10.10.0.0/24 then adding a static route in the modem pointing at 192.168.0.15 as the G/W.

This is a screenshot of my ZyXEL C2100Z router configuration page: https://i.imgur.com/Dtq0G4z.png

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-09-28 02:45:14 -0600

Seen: 33 times

Last updated: Sep 29