r/openstack • u/Eldiabolo18 • Jul 24 '25
How to Deploy Openstack in Openstack for Teaching (not TripleO)
Hi people,
we have the use case that we need to teach external people about openstack. Installation, Maintenance, etc. Ideally everybody has their own setup. We already have a production Openstack, so it would be easiest to deploy the setups in VMs in our prod Openstack and then deploy another Openstack in there. Perfomance doesnt matter, however I see a few technical issues:
- How to do VLANs? We deploy (and teach) Kolla-Ansible, we need VLANs for seperation (int/ext net, mgmt, Octavia, etc). How to do this in Openstack so its close or the same as in reality? Afaik OVN filters all traffic it doesnt expect.
- How to deal with Floating IPs? How can Users create a floating IP range/Provider Network, when we're in Openstack? Even an internal Network as FIP would be sufficient.
- What about L2 HA? Kolla Ansible uses L2 HA in the form of Pacemaker and Keepalived. Pretty sure Openstack/OVN is filtering that too?
Long story short, does anybody have a guide or other tips how to achieve this?
Thanks!
5
Upvotes
3
u/greenFox99 Jul 24 '25
Hello!
Just for giving arbitrary names:
I don't think you can make VLAN inside openstack. The easiest way to make something similar is to have multiple network interface on your overcloud hosts. One per LAN.
For loadbalancing HA, it is not possible without relying on the undercloud loadbalancer AFAIK. If you disable network security (including Mac spoofing protection) on your network interface you can achieve failover HA.
For floating IP subnet, it should be a private subnet, with Mac spoofing security disabled too. But it should not be your undercloud subnet, because there will be conflicts when allocating a new FIP. So if you want to get access to your overcloud VM using FIP, you should allocate one in your undercloud and attach it to a port in the overcloud private subnet, and this port should not be attached to any host (so hosts can advertise this IP and Mac and receive the packets). This is a bit tricky to setup, and in the end you have a FIP pointing to an IP which is also a FIP.
This is a very complicated setup. I am not sure it would work. But it is a great project, good luck!
1
u/FancyFilingCabinet Jul 24 '25
You might like to check out some of the resources from StackHPC.
Their "A Universe from Nothing" lab sounds like a good fit for you. Their terraform to setup lab instances is open source and available here.
It does make use of kayobe (kolla-ansible on bifrost) rather than kolla-ansible directly, but would give you ready to use lab environments with all the fiddly bits in-place.
If you know your way around kolla-ansible then it will be pretty familiar, but otherwise StackHPC do offer training courses directly.
3
u/kubedoio Jul 25 '25
Try to use our scripts 1(k8s+rook+ceph) and 2 (kolla+openstack) inside a proxmox hypervisor with nested virtualization. https://kubedo.com/open-source-hci-ceph-kubernetes/
1
u/memrobo Jul 24 '25
Why not Sunbeam? It's super easy to rollout https://canonical-openstack.readthedocs-hosted.com/en/latest/tutorial/get-started-with-openstack/
1
u/m0dz1lla Jul 30 '25
The atmosphere project also has a deployment setup on OpenStack, but if you want/need to use Kolla, that won't work of course.
> How to do VLANs? We deploy (and teach) Kolla-Ansible, we need VLANs for seperation (int/ext net, mgmt, Octavia, etc). How to do this in Openstack so its close or the same as in reality? Afaik OVN filters all traffic it doesnt expect.
You can use VLANs on OpenStack by either using trunk ports or transparent vlan networks. With that you can recreate the network layout pretty easily.
> How to deal with Floating IPs? How can Users create a floating IP range/Provider Network, when we're in Openstack? Even an internal Network as FIP would be sufficient.
This is totally possible, just add the "gateway nodes" (overlay install) to the OpenStack FIP network and disable PortSecurity on that Port. Then you'll be able to use any IP on that net. Just do not enable DHCP on that OpenStack network (underlay).
> What about L2 HA? Kolla Ansible uses L2 HA in the form of Pacemaker and Keepalived. Pretty sure Openstack/OVN is filtering that too?
This works on OpenStack. In OVN on the underlaying cloud there will be a virtual LSP deploye, which makes failover nearly instant. You just need to create one port for the VIP and add that IP address as an allowed address to all the ports that shall use that one.