[Openstack/Devstack] Cannot reach Internet via Floating IP
Hi all,
This is my devstack lab installed on VirtualBox. Code:
stack@vlab:~$ cat /etc/devstack-version Code:
stack@vlab:~$ openstack server list I did a small investigation: 1. I checked for network "public" - OK 2. I checked for subnet "public-subnet" - OK 3. I checked for router "public" and I see - NONE Questions: 1. Could that be a reason of not reaching internet from my instance (missing public router)? 2. Is this true that connectivity to internet via Floating IP is in fact NATed by Neutron via internal network (in my case 10.1.1.x) ? Code:
openstack floating ip list |
Devstack creates a "fake" external network which is not connected to the external world at all, except if you deliberately connect it. For instructions, see https://docs.openstack.org/devstack/...essible-guests.
|
I made it finally to work.
But now my problem is that after instance reboot, I cannot access it via Floating IP :( I can still get in via internal network (via qrouter). |
If you want assistance, you need to describe your setup.
|
Hi Berndbausch,
Thank you for reply. I did fresh installation of Devstack (from Master branch - DevStack Version: victoria) In local.conf I have specified: Code:
HOST_IP=192.168.56.109 - this is eth1/enp0s8 and refers to Host-Only interface in my VirtualBox 1. Removed volume (for some reason it gives errors and blocks deployment - to troubleshoot later) 2. Replace network "Internet" with "Public" Creation went quite smooth: Code:
stack@vlab:~$ openstack stack list Code:
openstack security group rule create default --protocol tcp --dst-port 22:22 --remote-ip 0.0.0.0/0 After reboot of the instance and later also all Devstack Vbox VM, I have no more access via 192.168.56.227. I can still access it via: sudo ip netns exec qrouter-7563b1f4-2635-412b-8053-dda164a5b279 ssh cirros@10.1.1.9 Code:
stack@vlab:~$ openstack server list |
The IP address of external bridge br-ex is not persistent. When you reboot, you lose it. Same for the physical volumes used by Cinder and the filesystem used by Swift.
I use this script to recreate them (only tested on Ussuri and a few earlier versions, and it uses the standard IP address): Code:
$ cat restore-after-reboot |
YES!
Thank you very much for this information. Floating IP: I was not aware that br-ex IP is not persistent. Adding IP and setting int up solves the problem. Volume: I didnt test it yet. Hopefully later today in the evening. Will let know about the results here. Update: 2020.06.15 Volume tested and it works with solution provided by Berndbausch |
same here
this can help
``` sudo ip addr flush ens33 sudo ovs-vsctl add-port br-ex ens33 sudo ip addr add 192.168.72.33/24 dev br-ex ``` |
All times are GMT -5. The time now is 11:04 PM. |