 So hello everyone. Well, my my name is Adolfo I am a curriculum manager for Rehab and working on Cloud technologies including OpenStack Before to this position. I was a solution architect for for a stack ops for one of the OpenStack startups What we are going to do here is to Deploy Neutron. It's a quite dummy deployment. So you will see we are going to use some Some some built-in machines you will you will you have We have running on the on the laptops. Okay, so first first thing to do is to log in on your on your laptop You you will see that there is a student Log in available. So just try studying as the password No, not a deal a big deal. Okay Once there you will see that there is a PDF called a To dash Neutron server just open it is this one is the the guide we will follow to do the the workshop and And Well, just just to explain you a little bit. What is the environment? We are going to play with each of the laptops. We have configure a our name Eli host X. So each of you will have we have a different Number for that X zero one two blah blah blah Okay, the same with the with the virtual machines So in order to log in in your virtual machines, you will have to look to log into server You see here server X Minus a and Minus b. Okay, the X is the number of your host so just Look right now open to terminals look right now and see if you have any issues there Also with me. I have some colleagues from Rehat Forest 10 and Rob should be here or will be Yeah Okay Okay, so feel free to you have any issue as them and they will be able to help you on on this Okay also Well before starting you will see if you have been in the previous in the previous Wars of run by by Rob You see you see here that we are going to play with back stack. That is the best tool in order to deploy Open stack at least for for dummy environments. That's great. Okay, so Before starting with pack stack, I would like to give you an overview. I don't have the slides Unfortunately, but I want you to have Because an overview of what is the architecture we are deploying here As you see we have two virtual machines We are deploying one virtual machine as the controller node if you have read a little bit on the on the open stack dogs the usual architecture They recommend to deploy is a three note So we have a controller node with the core services a network node with neutral That is the one we are going to deploy here and One or more compute nodes. This is This is really a Non-production ready environment or for light environments, but that's the reference architecture for for open stack what we are doing here is not that one because of the resources we have in the in the laptops what we are doing is a Deploy both The compute note and the controller note on the same machine. Okay. This is your server a and then we are deploying the The network node on the server be that is going to be the the one where a neutron is going to be execute Okay, also Maybe I don't know you are familiar with neutron and There is too many people to know about your backgrounds and everything. So Just just want to introduce you to three concepts of networking on on open stack and most of the most of the idea the idea of of neutron itself is to be an abstract layer to a SDN or hardware Plugging we have below it. Okay, so what we are playing is with a nice Concepts we are able to play with without getting in trouble with a Low-level networking. Okay, so just keep in mind three concept with we shoot and we are going to play with we are going to have a networks for for us the networks are going to be isolated a Networking environment something similar to the belongs okay in the in the physical world the other thing is a subnetworks These are the going the ones that are going to be Associated to IP addressing. Okay, because on the network We are not going to have any IP addressing the good thing about this is that We are going to be able to have several networks. I mean several Some networks with different IP ranges Associated fence rope Associated to the same network. Okay, that's quite flexible. Okay and The last we have networks and networks and the last one the last concept I want I want to introduce you our ports The ports are similar to to the physical mix. So they have a Mac address associated So you do when we plug virtual machine running on an open stack Environment against a subnetworks so it gets an IP. We are going to plug that virtual machine Using that port using a port to that subnetwork. Okay, so What we are going to do right now is quite basic a staffing in open stack networking later for us Will introduce us to DHCP servers services so we can Deploy virtual machines and have a DHCP service. Usually DNS mask you Provide automatically an IP to the to the virtual machine. Okay, so these are the three Concerts, we are going to manage next is a villain versus great tunnels or most of the of the manuals and if you have a go through github or Look through Google or whatever For deploying open stack most of the people recommends to use great tunnels because it's quite easy to to implement the issues that For product and we are going to use that. Okay, but for production ready environments. It's it is a Advice to use a bilans the issue with bilans is that You have to configure that the underlying hardware switches you hide behind so for most of the people since people Usually don't have access to a dedicated switch there. They just Use great and and forget about that. This is that a reading through because I I didn't I didn't run the test myself You lose something like a 20 30% on production ready environments using great tunnels So if you are going to get something big Forget about this configuration and go with with bilan I will show you is not so in in the open stack side is not so difficult It's quite similar to the great tunnels configuration. The issue is that on the on the networking side is It's a little bit tricky And well, let's start with it so As I said What we are going to do is a first run a pack stack in order to Install the network node right now if you if you have some experience with with open start You will see that we have an All in one instance deployed on a server a The good thing about pack stack is that if you tweak it a little bit you can create Not a single note, but more complex Configuration so so what we are going to do here So better first if you haven't logged in look into into your server X Minus a virtual machine. Okay like I did The password there is red hat Okay Same in in server B. Okay, so what we are going to do is Well, you see that we have there as well dot tx in the In the slash root. Okay, so just edit that one. Yes. I use nano Okay, so if you look for a You see here that we need to change some some parameters the important one since Neutron is installed Config Neutron install parameter is already set up to yes so you just need to change the the two ones that includes the IPs, okay, the config Neutron server host and the config Neutron metadata host The issue there you see that this is a X You see it one seven two two five and a X plus 100 what that means is that you have to add To your machine imagine you are in host one you need to add one plus 100. So it's 100 and one, okay? One zero one. Okay, that's a for each virtual machine the to serve the two virtual machines. We are managing they have two a Virtual interfaces. Okay. One is the public one. That is the X dot Ten and the the other one the X plus 100 is the private one, okay? This is the minimum networking unit on a on a note in order to deploy in Neutron, okay? Okay, so let's let's go to config. Let's go to change this Change this Okay, so first You see that we this is a well the server server a has the dot 10 and The server be has the dot 11. So What we are going to do since we are going to deploy the network node outside On on server be okay right now is running all the all the Neutron services are running on the on the server a what we need to change is the IP to point to the To the server be one. Okay, so it's 11 there and We have to do the same with the Metadata what is this? If you play with pack stack later this session, you will see that you need to maintain One of the virtual needs you are using Without a using it on the Neutron configuration and I mean in open stack We have in the reference architecture. We have three networks We have the management network that is the one that all the services in open stack users to communicate against each other and that includes also a the the messaging broker QP rabbit and Q whatever you use and the Database my SQL a possible whatever you want to use there It is important that when you play with pack stack you set up you use Don't set up the networking a stop and you will see it with with for us on the on the same place On the same net nick that pack pack stack is using to deploy the services Okay, for for us here means that instead of using the public one We are going to use the private one that is going to be our management network. Okay, so Let's look for the metadata and do the same. It's just Changing this. I don't know you have experienced the ploy in open stack by hand, but this is quite an improvement Really Okay, so We are done. You see there the the Neutron KS password the keystone password that is set up to rehab, but that should be already set up there So you don't you don't have to change that. Okay, so if we go out from here now Next is just run pack stack in order to To deploy the network all you see here that we don't have anything any service on the on the server Been running. Okay, and if we go to server a You will see Okay, we have everything running here Okay, so Now that you have it Okay, and your server a it's just Okay, it's setup. Okay, so let's run pack stack in this way If you haven't been on there on the previous session with pack stack what you do is first Generate an answer or file like this Okay, you can place it wherever you want And later you can modify that answer or file it has the the the one we generate is the has the default Values for the parameter so you can deploy an environment with that But if you want you can enter like we have done and And you need a little bit. So once you have everything set up you just run pack stack against That file. Okay, so it's like this Okay It's going to take a little bit of time But not so much if you have been on the previous session deploying the whole environment takes like 15 minutes 20 minutes or so but this is quite quite fast one once you have deployed the Most of the environment this is about just redeploying neutrons should should not take So much time okay so We are going to wait until This is finished Any of you that has any problem? Just let us let us know so you can follow up the The Warsaw as I said if you are able to once You decide to go in production try to get a Dedicated switch for for playing with with With open start with neutral, okay, I will show you later where the Where the configuration options for bilans is located is quite is is Is as complex as configuring great tunnels and it's just it's just about and Providing a range of bilans that you want to use for the networks the virtual networks that we are creating in open stack to Be implement in the physical networking work, okay, so the only thing there is that as far as I know You need to have a continuous range of bilans so and Take care if you are planning to go to go with this configuration take care and when you Deploy your data center or whatever your your infrastructure. Okay, that could that could be a that could be a problem Yeah, let me know What do we have right now? The one I provided you is is all in one What we are doing right now is a this is the one I provided you but the one we are configured and the one the one that pack stack is configured right now is is is a Control and compute note on server a and a network node on server be so the The great great tunnel will be configured From the network node to the compute node. So from server be to server a Okay, so it's not all in one is you have the a The networking between the two is quite similar to our three note, but it's just running the The virtual machine inside the Inside the controller note that is not very recommendable, but it's what we are we have right now because of the resources Yeah No, I mean on the on the subnet you mean the environment Yeah, but that does a network is created. It's a Straighted over open be sweets. That is one of the plugins of of neutrals So it's independent on the on the physical nicks you have on the machine Okay, well on the on the virtual nicks you have on server a or server be it's completely independent This is since we are working with the great tunnels You are a Tunnel is created against the the virtual interface The the one of the virtual machine that you are using and then this is sent to the Network node for example, and there it gets it gets out, but it's company you are not It's completely independent from the From the virtual nick of the virtual machine, I mean, okay So you can play with the the the subnet send the network we are we are going to create our You can think about those as virtual so you can create as many as you want with the IP range as you want Plugging as many beings as you want one that the ones you can place in the virtual machine we have as a controller and as a compute note and And that's it. It's you you have to In villains when when you set up villains you have to think a little bit how to implement that on the physical world but with great talents you just a configure the gray to go through a dedicated one to a through one of the nicks that Is being used in the in the compute note and in the network node and that's it you forget about touching any of the Physical work the issue there is that this is good if you want to do demos as this one or if you want to Run proof of concepts or that but if you are going in production This is going to became a nightmare from the the time you get up a thermos a third virtual machine in the In a computer in a computer that's that's going to be a problem Okay, so we are done Yeah, yeah, yeah, yeah in one we are setting up in the server beat Okay Yeah, you just need you configure Neutron is a is a set of different components. So you you can What what we are going to do the usual deployment you are going to do is to create use a physical machine not a virtual one a physical machine and Install all the services of Neutron there Okay, you will also have to install some auxiliary services on the compute note and on the Mainly on the compute note and on the controller node, but you will deploy everything on the network node I am saying this because You can get all the components and put each one on a different machine if you want or if you want to do high availability you can you know create two network nodes and Put some it's a proxy over it. You can you can play with it a lot the usual deployment you are going to do and it's the one The most usual one out there is is just a network node and that should be enough for most production environments. I have On the environments I have deployed I I I never Have seen a problem with that the only the only issue you are going to have if you deploy like this on a network node is that the When you when you create too many subnet you have many users and you create many subnets network sports You will see that the OB the open be switch Database because these these SDN users are my SQL database as a backend is going to suffer a lot So if you have it over a Slow this look this right you are going to get problems there, but that's the only issue you are going to fit but this is on a Quite big environment. Okay. Yeah. Yeah, what we are doing is well, I am deploying a neutral server and Open be switch and forest is going to deploy a DHCP Okay, the DHCP agent and the L3 agent that are the other two big Components of neutral This one's on the network node you deploy what you deploy Well in neutron you have no you have this component you have neutral server the neutron L3 agent the neutron DHCP agent, okay, so usually you deploy everything on the same on the same machine that is then they call it network node Okay, so what I'm going to do right now is just to deploy the Neutral server neutral server and open be switch So I am going to play with networking because I am going to deploy an instance But it's going to be just a stack. It's going to be dummy stuff. Is it I I don't have the HCP So I am going to have to create a port and assign a sign a IP. Okay. I will show you Okay, going through the Yes, if you can Okay, if Okay, going through it Okay, let's let's first Yep or server 8 but you run it on back on server 8, but it's going to install a server B. Okay five minutes Wow Okay, okay, so well I have five minutes, so Okay, so well better better since this is just a It's a stuff just to a get an overview. I am going to get through it quite fast Well, if you are familiar with links that I suppose you are You see that the the services called Neutron server You see these are the services we were talking about the The Neutron server the Neutron L3 agent the Neutron DHCP agent The rest are auxiliary service. Okay, so we have also the metadata metadata You will see when you play more Harder with with VMs, you will see that you will need it to deploy virtual machines in order to get a Data sent by the user when at the deployment time you see the open me switch agent This is this is the one for open me switch But you can play if if you have for example this core or a list of networks infrastructure network infrastructure you can deploy with the plugins of this Network hardware providers so you can get the most of the functionality they are providing and you can offer your cloud users Quality of service for example for their some networks and all that all that stuff. Okay here here. We also see that These two companies just to show you that Neutron Uses as a backend both my SQL. Okay on the 3 3 0 6 and Cupid that is the one we are we are using right now on Red Hat as a messaging broker backend on the 5 6 7 2 and the the lock where Well, the lock location. Okay the server dot block Okay playing with with a static port what we are going to do here is just to deploy a virtual machine With IP we are going to Assign a statically to that to that virtual machine. How we are going to do that First we are going to create a network that we call here internal internal one Then we are going to create some network. You see that we set up no gateway DHCP and Well, that's the rain. We are going to use really we can use their whatever range you want to use The only thing is that never use if you have a management network never use the management network range That is something that they miss on the on the manuals because if not you are going to get a mess with roots on the Yeah, if you are deploying When you when you create networks like this, I am talking about grizzly. Okay, so I don't know a Havana, but Never create subnets that uses the IP range of the management network You are using for your open stack environment. Okay That's been on the same side Okay Okay, so In this way we disabled the with no gateway we disabled the possibility to go out Okay, so virtual machines by default if you create a sun network you will be able to pink to the outside world and With this we we disabled that possibility and and also since we don't have the DHCP agent deployed We we don't want DHCP there We create if you are familiar with Nova what you need to to deploy a virtual machine you need image a flavor and A network you want to deploy it on okay, so what we do first is create the the flavor This this this failure. Well, it's the one is for the number of virtual CPUs You are going to have the the 20 is for the size. I think of the virtual this inside the The virtual machine you are going to deploy And the 312 is the name and the number of run it's going to have Then since we are as I have told you we are going to deploy it Statically so what what we need to do is if you remember from from the beginning In order to plug a virtual machine to a subnet we need a port. Okay, so what we are going to do is to create that port Usually to deploy neutron in the with DHCP That this step will be performed by the DHCP agent, but here since we don't have it Configure we are going to do it ourselves So what we do is yes over the network we have the subnetwork we have created. You see the one night to one one six eight 30 zero, okay, we are going to get one of the addresses there the 100 and Create the the port so we are creating a virtual nick. Okay, so like a Virtual network car to say that now what we are going to do and we have pluck it to our network Okay, so internal one so now what we are going to do Is to Pluck the virtual machine on that port. Okay first as I said we need a flavor and a Network and a image so we create with glance image create we create An image the image is small that is the one we are going to use in order to Execute the the VM to run the Nova boot Okay, so here you see you run a neutron port list You will see that the port is there and it's created with the right IP and finally We run the Nova boot with the flavor we have created with the poor the poor ID We have created and with the image we have created and the name is a small one. Okay, so If we do a so port it will show that the device ID is associated to our To our virtual machine is the idea of our virtual machine if you do something like novelist You will see that the idea is the same that the the one that is least there. Okay. Yeah, like this Okay so So sorry I get out of time, but if you have any any question or if you want you have any issue Let us know so we can We can support you on solving them Yeah, I can I can yeah, I spent some time with you right now. No problem Sure war fine. That's not be a problem Okay, so I think we are out of time. Yeah, okay so Let me know you have any issue if you want to run the The session and thank you for coming