Instance cannot ping external (Lan/Internet) Openstack AllinOne Packstack Virtualbox

dangerzone ar dangerzonen at gmail.com
Fri Sep 11 08:14:15 UTC 2020


Hi Team,
I have been struggling to get the solution. I'm testing openstack and
deploying it over virtualbox. I have shared my issue in SO with help from
berndbausch <https://stackoverflow.com/users/3548109/berndbausch> and
try to share it here also to get more help....as I have create and redeploy
few times with different openstack release.. deployment
methods..parameters....still the same problem.
I don't think my deployment is different with others as i follow the
guideline and common practise... just stuck on this problem...please do
help and assist me further.
Thank you to all....

Below is my environment setup.

Windos10_Virtualbox----Centos7------Openstack----VM instance
[192.168.0.0/24] - external network/public-ip
Pc host - 192.168.0.160
Home Lan GW - 192.168.0.1
Centos7 - 192.168.0.12 (VM virtualbox)
Openstack Router GW - 192.168.0.221
Virtualbox VM setting bridge (enp0s3) and promiscuous mode all
selinux permissive

add rules icmp and ssh.
create public-ip 192.168.0.0/24 (pool 220-230)
create router
create private subnet 10.0.0.0/24
attach router to private subnet
create router GW(public-ip)

>From LAN I can ping and ssh vm instance but from vm instance i cannot ping
to home Lan GW, pc host. VM instance can ping up to centos7 virtualbox and
openstack Router GW. Instance created with centos and cirros using direct
public-ip and also floating ip. Some instance created with direct public ip
and some with private subnet and using floating ip.

I have tested with queens, stein, train. With allinone and also using
answerfile and all end up I cannot ping external. I follows guideline
below:-

*hxxps://www.linuxtechi.com/single-node-openstack-liberty-installation-centos-7/
<http://www.linuxtechi.com/single-node-openstack-liberty-installation-centos-7/>*
*hxxps://www.rdoproject.org/install/packstack/
<http://www.rdoproject.org/install/packstack/>*

This some of answer file parameters that i edited

CONFIG_NEUTRON_L3_EXT_BRIDGE=br-ex
CONFIG_NEUTRON_ML2_TYPE_DRIVERS=flat,vxlan
CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=extnet:br-ex
CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:enp0s3
CONFIG_NEUTRON_OVS_BRIDGES_COMPUTE=br-ex
CONFIG_PROVISION_DEMO=n


ip netns list
qrouter-f6967bba-986e-4bb3-838e-d035a684e2c4 (id: 2)
qdhcp-dbd713cd-1af4-4e2c-9c57-d8a675a10608 (id: 1)
qdhcp-fa6fb1d6-b65e-4eb2-a4a4-5552fde8bb08 (id: 0)
[root at myospackanswer ~(keystone_admin)]# ip netns exec
qrouter-f6967bba-986e-4bb3-838e-d035a684e2c4 arp -an
? (192.168.0.211) at <incomplete> on qg-0ba7da31-7f
? (192.168.0.227) at fa:16:3e:ed:19:81 [ether] on qg-0ba7da31-7f (Instance IP)
? (192.168.0.160) at d4:d2:52:73:de:80 [ether] on qg-0ba7da31-7f (host pc IP)
? (192.168.0.1) at 80:26:89:b2:98:50 [ether] on qg-0ba7da31-7f (home router GW)
? (10.0.0.4) at fa:16:3e:01:63:42 [ether] on qr-7e6f9436-40 (private subnet)

ip r
default via 192.168.0.1 dev br-ex169.254.0.0/16 dev enp0s3 scope link
metric 1002169.254.0.0/16 dev br-ex scope link metric
1006192.168.0.0/24 dev br-ex proto kernel scope link src 192.168.0.121


qrouter-f6967bba-986e-4bb3-838e-d035a684e2c4 (id: 2)
qdhcp-dbd713cd-1af4-4e2c-9c57-d8a675a10608 (id: 1)
qdhcp-fa6fb1d6-b65e-4eb2-a4a4-5552fde8bb08 (id: 0)

sudo ip netns exec qrouter-f6967bba-986e-4bb3-838e-d035a684e2c4 ip route
default via 192.168.0.1 dev qg-0ba7da31-7f10.0.0.0/24 dev
qr-7e6f9436-40 proto kernel scope link src 10.0.0.1192.168.0.0/24 dev
qg-0ba7da31-7f proto kernel scope link src 192.168.0.221


ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
master ovs-system state UP group default qlen 1000
    link/ether 08:00:27:98:9b:a3 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a00:27ff:fe98:9ba3/64 scope link
       valid_lft forever preferred_lft forever
5: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
group default qlen 1000
    link/ether 8a:17:8b:e5:dc:c2 brd ff:ff:ff:ff:ff:ff
6: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UNKNOWN group default qlen 1000
    link/ether 08:00:27:98:9b:a3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.121/24 brd 192.168.0.255 scope global br-ex
       valid_lft forever preferred_lft forever
    inet6 2001:e68:5435:d135:a00:27ff:fe98:9ba3/64 scope global
mngtmpaddr dynamic
       valid_lft 86399sec preferred_lft 86399sec
    inet6 fe80::a00:27ff:fe98:9ba3/64 scope link
       valid_lft forever preferred_lft forever
7: br-int: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN group
default qlen 1000
    link/ether 32:ff:0f:26:18:43 brd ff:ff:ff:ff:ff:ff
8: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
default qlen 1000
    link/ether d6:52:08:a9:68:4f brd ff:ff:ff:ff:ff:ff
29: qbr1f637f14-9c: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc
noqueue state UP group default qlen 1000
    link/ether 42:95:e8:c0:a3:07 brd ff:ff:ff:ff:ff:ff
30: qvo1f637f14-9c at qvb1f637f14-9c:
<BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue
master ovs-system state UP group default qlen 1000
    link/ether 6e:2e:07:8d:79:86 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::6c2e:7ff:fe8d:7986/64 scope link
       valid_lft forever preferred_lft forever
31: qvb1f637f14-9c at qvo1f637f14-9c:
<BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue
master qbr1f637f14-9c state UP group default qlen 1000
    link/ether 42:95:e8:c0:a3:07 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::4095:e8ff:fec0:a307/64 scope link
       valid_lft forever preferred_lft forever
32: tap1f637f14-9c: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc
pfifo_fast master qbr1f637f14-9c state UNKNOWN group default qlen 1000
    link/ether fe:16:3e:05:2d:50 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc16:3eff:fe05:2d50/64 scope link
       valid_lft forever preferred_lft forever
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200911/ee6d6dc8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1osp.jpg
Type: image/jpeg
Size: 25859 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200911/ee6d6dc8/attachment-0001.jpg>


More information about the openstack-discuss mailing list