Tuesday, 2024-09-03

*** mhen_ is now known as mhen01:38
*** jlejeune_ is now known as jlejeune12:30
bholaHello Guys. Back again with the issue of external network gateway configuration not bringing up the relevant bridge (br-ex) up. So cannot connect to VMs from out side. I believe openstack should bring it up on compute and controller node with the gateway ip of external network. How to bring it up with correct IP?15:14
DeHackEdas I said, your router should be running, pingable, and the host will be one that's running a neutron l3 agent iirc..15:52
bholaDeHackEd, I am sorry but what router you are referring to? My physical router?16:59
DeHackEdthe internal openstack router. one of the things the neutron service does is make NAT routers between tenant networks and provider networks (most typically)16:59
bholaWell I think explained it in detail but may be I am not good at explaining my current setup. Is it okay if I upload images from Horizon so it will be easy for you grasp how I have setup my opensstack network?17:02
bholaPlease let me know from which page to take a screenshot17:02
bholaWill network topology graph screenshot suffice for explaining my network configuration?17:03
DeHackEdmaybe...17:15
bholahttps://imgur.com/hfRG0Le.png17:15
bholahttps://imgur.com/eiV5wmr.png17:16
DeHackEdokay.. so we'd say that 192.168.11.x/24 is your "public" IP addresses (relatively speaking) and the router there should be pingable...17:18
bholaThe problem is novnc is not capturing the keyboard. It did capture my keyboard for the very first time when i opened the console after installation. When I closed that console session it never captured my keybaord after that.17:18
bholaping from where? from outside? I am running openstack in Virtualbox where I created br-ex bridge with assigning physical interface (actually virtual because it is created by Virtualbox) as per install documentation and the interface relevant entries are made in /etc/network/interfaces on compute and neutron nodes.17:23
bholaMy external network has a gateway set to 192.168.11.1. This, as far as I can understand, should be assign to br-ex and it be brought up by openstack system. This will be my entry point from outside (from compute, neutron node command line) to the openstack world.17:25
bholaIs my under standing correct?17:26
bhola#The provider network interface17:27
bholaauto enp0s917:27
bholaiface enp0s9 inet manual17:27
bholaup ip link set dev $IFACE up17:27
bholadown ip link set dev $IFACE down17:27
bhola# Include files from /etc/network/interfaces.d:17:27
bholasource /etc/network/interfaces.d/*17:28
bholaThese entries are on my compute and neutron node.17:29
bholaThe problem is br-ex is down.17:30
bholait never comes up17:30
bholahttps://imgur.com/gUwrWJ3.png    Just look at this image where openstack router's external gateway is set to provider's network.17:33
bholahttps://imgur.com/94rJWRv.png     One of its interface is connected to Internal/Private network.17:34
bholaand you can see snat is enabled17:35
jrosser192.168.11.124 is the external ip of the neutron router on your provider network17:37
jrosser192.168.11.1 i think is your responsibility to deal with on whatever router/appliance/whatever deals with onward connectivity for that provider network17:38
bholahttps://imgur.com/snPnRKj.png    Here is provider network's Gateway ip set. But this ip should appear on br-ex which I must see when I issue command ip addr on neutron and/or compute.17:39
jrosseri don't think i agree with that17:39
jrosserin a real deployment the provider network gateway IP would be defined on some router or layer-3 switch17:41
bholaOk. may be I understood it wrong.17:42
jrosseran SVI in cisco-speak17:42
bholahttps://imgur.com/U8IrgMx.png  https://imgur.com/dem8Jcf.png      This is my network layout on virtualbox 192.168.200.0/24 is for management network. 192.168.11.0/24 is supposed to be my provider network. 17:47
bholahttps://imgur.com/Ozm7SHE.png   This the output of all interfaces bridges on my neutron node.17:48
jrosserso does that mean 11.254 is actually your gateway? if virtualbox is further NAT'ing that network?17:49
bholaNo Virtualbox is not further NATing. Let's suppose I don't want to go beyond this point. All I want to do is access my VMs from here.17:50
bholaSo I should change IP address from .254 to .1?17:51
jrosseri can't say - this is your network & design17:51
jrosserwhat i can say though is that the deployment tooling that I work on manually creates the OVS provider bridges and ports17:52
bholaSorry. What i meant was as in openstack external network's gateway ip 192.168.11.1 so I should change it in my virtualbox accordingly?17:53
jrosserthe gateway is only relevant for traffic trying to get to some network outside 192.168.11.0/2417:53
bholaYes and I don't want to go outside. So how I ping the openstack router's external gateway which is assigned 192.168.11.124 from my neutron node?17:58
bholaor the floating ip I assigned to VM?17:58
bholaHow it shows on your setup if you go to command line on neurtron/controller node?18:01
bholadoes ip addr shows external bridge with an ip address?18:02
bholaor any interface/bridge with an ip provider's range?18:05
jrosserthat’s not how it works, and would be very undesirable18:06
jrosserwhat does “ip netns” say18:07
bholaOk can you ping any floating ip from your neutron/compute node?18:07
bholaon neutron node?18:08
bholarouter-8f27ad4f-2b24-4601-8cf0-ff86f470a123 (id: 2)18:08
bholaqdhcp-cf6514c7-fc1f-4674-83c9-28cb511720d0 (id: 1)18:08
bholaqdhcp-5207b06c-eae2-4f57-beb3-b37ebd081245 (id: 0)18:08
bholaon neutron node.18:09
bholaon compute node it returns nothing.18:09
jrossertry “ip netns exec router-….. ip a”18:09
jrosserput the whole router namespace name in there18:09
bholahttps://imgur.com/x7Ps1sZ.png  Here is the output18:11
jrosserthat is how your neutron router works18:13
jrossereach one gets a network namespace18:13
jrosserand you can use the ip netns commands to interact with it18:13
jrosseryou see the external ip if your router there18:14
jrosseryou can use ping inside the network namespace to test connectivity to things18:15
bholayes I got connected to my VM.18:16
bholaBut is this the way it supposed to work?18:16
jrosseryes18:16
bholaso what connection is between br-ex and qrouter? Do I need br-ex?18:18
bholaDo I even need 2nd interface openstack suggests in the documentation?18:20
jrosserI think you should look at the neutron reference architecture18:21
bholaSo whenever you need to connect to your vm, do you connect this way?18:21
jrosserno, not at all18:21
jrossermy provider network has its gateway hosted on some physical router18:22
bholaso how do you connect other than horizon18:22
jrosserthe device I am on is routable to that18:22
jrosserssh via a floating ip or bastion vm18:22
bholayes yes this is the part I am interested in. my virtualbox is also a router/switch. isn't it?18:23
jrosserit is also possible, depending on your config, to attach a vm directly to the provider network18:24
jrosservirtual box might be a router18:24
jrosserthat’s why I asked about the .254 address18:24
bholaWell I assigned it arbitrarily. If this needs to be changed I can change it.18:25
bholaI just want to ssh directly from my neutron router to my VM.18:26
bholawithout using ip netns. Is it possible?18:26
jrosserif you attach a floating ip then you will be able to ssh from the provider network to the vm18:27
jrosserbut you need to have some ip route to that network from where you try to ssh from18:27
jrosserand that’s not really an Openstack problem18:27
bholaI have already assigned the floating ip and that is how I connected to my vm which is on a private network. But, as you suggested, I had to use ip netns command18:28
jrosserultimately this depends what you are tying to achieve18:30
jrosserto simply have ssh work you can manually put an ip on the provider network on some host and just use that18:30
jrosserbut that is completely unrepresentative of a production openstack deployment18:30
bholaWell, at the moment I am only trying to achive one thing. How to connect to VM directly, without using ip netns, from my neutron node command line to ssh to my vm already assigned a floating ip from provider's subnet.18:32
jrosserpersonally I would make a small utility vm in virtual box and hook it to the provider network18:34
bholaHmmm. This makes sense. Is there a way that my ip stack with ip address 192.168.11.254 be used, somehow, a utility vm?18:37
jrosseryou would be able to ssh from such a utility vm (i'm assuming you have several made in virtuabox on the same network)18:41
jrosserit will all be layer2/arp, no confusion with gateway addresses18:41
jrosseranyway - hopefully it's clear now how the neutron routers work, isolated in network namespaces18:42
jrosserthis is very deliberate to isolate tenants from each other, and from the infrastructure18:42
bholajrosser, Thanks for the tip. But there is still one confusion.18:50
bholafrom my VM I can ping 192.168.11.163 which is a floating IP.18:51
bholaI am also ping 192.168.11.124 which is neutron's external gateway.18:51
bholaI cannot ping 192.168.11.1. Why?18:52
jrosserwhere did you assign the .1 address?18:52
bholaI don't know. This is auto assigned by openstack?18:54
jrosseri feel like i have said several times now that it is not the responsbility of openstack to deal with the gateway IP of a provider network18:54
jrosserit lives on whatever upstream router provides onward connectivity for the provider network18:55
bholaRight. I got it. It is just like we mention on our windows/linux network configuration what gateway IP is but actual Gateway IP is assigned on a separate host acting as a gateway. Right?18:57
bholaIt also means that if I assign 192.168.11.1 to my virtualbox in place of 192.168.11.254 it will be pingable from openstack instance. Am I right?19:01
jrosseryes the gateway IP lives on whatever provides the L3 routing19:02
jrosseri don't really know about what virtualbox can do for you19:02
jrosserbut as i said if you have another VM on the provider network the gateway is irellevant as everything is in the same subnet19:03
bholaOk. Thanks a million. I will deploy another vm wih an ip from provider's subnet and see if that can ping floating IPs. 19:06
jrosserand if it can't, you can use the ip netns thing to try to ping that vm from the network node19:06
bholaOut of interest, Have you deployed openstack on baremetal?19:07
jrosserthen you will be able to tell if the provider network is hooked up to OVS corectly19:07
jrosserabsolutely19:07
jrosseri spend a lot of my time contributing to openstack-ansible, so manual installations are terrifying for me :)19:07
jrosseri would very much recommend using one of the comminity supported tools for managing your deployment19:08
bholaWell, I have written scripts to install openstack services on multiple nodes. for example neutron node on separate node, placement on separate node so on. You can even mix services on a node, if you want to do so, with the same scripts.19:11
bholaI have 9 nodes running at the moment, 1 is storage and 1 is compute node. All other nodes are running only one openstack service and they are communicating fine with each other.19:12
bholaOnly this provider network is a bone of contention. Look like my understanding about provider networks is not correct.19:16
bholaBy the way this br-ex bridge should not be UP? It is in DOWN state on neutron node.19:17
jrosserfor a production deployment you want to consider security, SSL, high availability, upgrade orchestration and a ton of other things19:17
jrosserall of this collective experience is in the community deployment tools19:18
bholaIf you look at your neutron node. Does it show br-ex in DOWN state?19:19
bholaDevstack is also a deployment tool. Right?19:20
jrosserno, it’s a development tool19:21
jrosserand the architecture is not at all what you would behold for production19:21
jrosser*build for19:21
bholaI think the name of the node on your side controller19:21
bholahow it is development tool? It deploys openstack. Doesn't it?19:22
jrosserit’s purpose is for openstack developers, and for automated testing19:23
bholaRight. Got it.19:24
bholaSo some of the ideas are getting clear about provider network. Is it correct to say that communication within provider network happens on L2 despite floating IPs and Neutron router's external gateway IP from provider's subnet?19:28
jrosserstrictly the external IP on the neutron router is not a gateway19:29
jrossera gateway is a specific term when talking about an L2 subnet - it is the address you can send packets to when they are supposed to go out of that subnet19:30
DeHackEdwhen you assign a floating IP to a VM, the IP is actually assigned to the router as a secondary, and NAT rules inserted to make it appear that the VM has the IP assigned to it. but the VM still sees its normal 172.16.x.x IP address on itself19:30
bholajrosser, DeHackEd Thanks for your input. I understand that Neutron router's external Gateway IP is not the same as Provider's network gateway IP. What i wanted to say was, any host (in my case a virtualbox utility vm host) having an ip from provider's subnet will communicate with floating IPs on layer 2. Is this correct?19:50
DeHackEdyes. the router is still an ordinary host on the local layer 2 network, with ARP and all that.20:51

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!