If you read the TripleO setup for network isolation, it lists eight distinct networks. Why does TripleO need so many networks? Lets take it from the ground up.
Table of contents
WiFi to the Workstation
I run Red Hat OpenStack Platform (OSP) Director, which is the productized version of TripleO.Â Everything I say here should apply equally well to the upstream and downstream variants.
My setup has OSP Director running in a virtual machine (VM). To get that virtual machine set up takes network connectivity. I perform this via Wireless, as I move around the hose with my laptop, and the workstation has a built in wireless card.
Let’s start here: Director runs inside a virtual machine on the workstation.Â It has complete access to the network interface card (NIC) via macvtap.Â This NIC is attached to a Cisco Catalyst switch.Â A wired cable to my laptop is also attached to the switch. This allows me to setup and test the first stage of network connectivity:Â SSH access to the virtual machine running in the workstation.
The Blue Network here is the provisioning network.Â This reflects two of the networks from the Tripleo document:
- IPMI* (IPMI System controller, iLO, DRAC)
- Provisioning* (Undercloud control plane for deployment and management)
These two distinct roles can be served by the same network in my setup, and, infact they must be.Â Why?Â Because my Dell servers have aÂ NIC that acts as both the IPMI endpoint and is the only NIC that supports PXE.Â Thus, unless I wanted to do some serious VLAN wizardry, and get the NIC to switch both (tough to debug during the setup stage) I am better off with them both using untagged VLAN traffic.Â Thus, each server is allocated two static IPv4 address, one to be used for IPMI, and one that will be assigned during the hardware provisioning.
Apologies for the acronym soup.Â It bothers me, too.
Another way to think about the set of networks you need is via DHCP traffic.Â Since the IPMI cards are statically assigned their IP addresses, they do not need a DHCP server.Â But, the hardware’s Operating system will get its IP address from DHCP.Â Thus, it is OK if these two functions share a Network.
This does not scale very well.Â IPMI and IDrac can both support DHCP, and that would be the better way to go in the future, but is beyond the scope of what I am willing to mess with in my lab.
Deploying the Overcloud
In order to deploy the overcloud, the Director machine needs to perform two classes of network calls:
- SSH calls to the baremetal OS to lunch the services, almost all of which are containers.Â This is on the Blue network above.
- HTTPS calls to the services running in those containers.Â These services also need to be able to talk to each other.Â This is on the Yellow internal API network above.Â I didn’t color code “Yellow” as you can’t read it.Â Yellow.
Internal (not) versus External
You might notice that my diagram has an additional network; the External API network is shown in Red.
Provisioning and calling services are two very different use cases.Â The most common API call in OpenStack is POST https://identity/v3/auth/token.Â This call is made prior to any other call.Â The second most common is the call to validate a token.Â The create tokenÂ call needs to be access able from everywhere that OpenStack is used.Â The validate token call does not.Â But, if the API server onlyÂ listens on the same network that is used for provisioning, that means the network is wide open;Â people that should only be able to access the OpenStack APIs can now send network attacks against the IPMI cards.
To split this traffic, either the network APIs need to listen on both networks, or the provisioning needs to happen on the external API network. Either way, both networks are going to be set up when the overcloud is deployed.
Thus, the Red Server represents the API servers that are running on the controller, and the yellow server represents the internal agents that are running on the compute node.
Some Keystone History
When a user performs an action in the OpenStack system, they make an API call.Â This request is processed by the webserver running on the appropriate controller host.Â There is no difference between a Nova server requesting a token and project member requesting a token. These were seen as separate use cases, and were put on separate network ports.Â The internal traffic was on port 35357, and the project member traffic was on port 5000.
It turns out that running on two different ports of the same IP address does not solve the real problem people were trying to solve.Â They wanted to limit API access via network, not by port.Â Thus, there really was no need for two different ports, but rather two different IP addresses.
This distinction still shows up in the Keystone service catalog, where Endpoints are classified as External or Internal.
Deploying and Using a Virtual Machine
Now Our Diagram has gotten a little more complicated.Â Lets start with the newly added Red Lap top, attached to the External API network.Â This system is used by our project member, and is used to create the new virtual machine via the compute create_server API call. In order:
- The API call comes from the outside world, travels over the Red external API network to the Nova server (shown in red)
- The Nova posts messages to the the Queue, which are eventually picked up and processed by the compute agent (shown in yellow).
- The compute agent talks back to the other API servers (also shown in Red) to fetch images, create network ports, and connect to storage volumes.
- The new VM (shown in green) is created and connects via an internal, non-routable IP address to the metadata server to fetch configuration data.
- The new VM is connected to the provider network (also shown in green).
At this point, the VM is up and running.Â If an end user wants to connect to it they can do so.Â Obviously, the Provider network does not run all the way through the router to the end users system, but this path is the “open for business” network pathway.
Note that this is an instance of a provider network as Assaf defined in his post.
Let say you are not using a provider network.Â How does that change the setup?Â First, lets re-label the Green network to be the “External Network.”Â Notice that the virtual machines do not connect to it now.Â Instead, they connect via the new, purple networks.
Note that the Purple networks connect to the external network in the network controller node, show in purple on the bottom server.Â This service plays the role of a router, converting the internal traffic on the tenant network to the external traffic.Â This is where the Floating IPs terminate, and are mapped to an address on the internal network.
The TripleO network story has evolved to support a robust configuration that splits traffic into its component segments.Â The diagrams above attempt to pass along my understanding of how they work, and why.
I’ve left off some of the story, as I do not show the separate networks that can be used for storage.Â I’ve collapsed the controllers and agents into a simple block to avoid confusing detail, my goal is accuracy, but here it sacrifices precision.Â It also only shows a simple rack configuration, much like the one here in my office.Â The concepts presented should allow you to understand how it would scale up to a larger deployment.Â I expect to talk about that in the future as well.
I’ll be sure to updateÂ this article with feedback. Please let me know what I got wrong, and what I can state more clearly.