Ask Your Question
1

Unable to Access external network

asked 2019-01-07 22:33:47 -0500

Yasir Iqbal gravatar image

updated 2019-01-08 04:10:42 -0500

Dear All, I have configured openstack on Centos 7 with packstack utility with following details but my instance could not ping or connect to external gateway and wise versa. Details are as follow.

Controlller:

External Network: 192.168.1.30
Internal Network: 172.16.2.30
control.example.com

Compute:

External Network: 192.168.1.31
Internal Network: 172.16.2.31
compute.example.com

Neutron:

External Network: 192.168.1.32
Internal Network: 172.16.2.32
network.example.com

On Network Node:

[root@network ~]# ovs-vsctl show
f1d3dd99-a90f-4036-a4a6-9f1bd2ef66d4
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-int
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
        Port "tapb3370d16-c8"
            tag: 1
            Interface "tapb3370d16-c8"
                type: internal
        Port "qr-8331b487-d6"
            tag: 1
            Interface "qr-8331b487-d6"
                type: internal
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port br-int
            Interface br-int
                type: internal
        Port "qg-e1e25655-ad"
            tag: 2
            Interface "qg-e1e25655-ad"
                type: internal
    Bridge br-tun
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port "vxlan-c0a8011f"
            Interface "vxlan-c0a8011f"
                type: vxlan
                options: {df_default="true", in_key=flow, local_ip="192.168.1.32                                                                                        ", out_key=flow, remote_ip="192.168.1.31"}
Port br-tun
            Interface br-tun
                type: internal
    Bridge br-ex
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port "eth0"
            Interface "eth0"
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
        Port br-ex
            Interface br-ex
                type: internal
    ovs_version: "2.9.0"

Pl help me to solve the problem

Dear, I have configure packstack on Centos-7. The instance is connected on internal network 192.168.0.0/24 and external network is 192.168.1.0/24. Floating ip address is 192.168.1.103.

# ip netns exec qrouter-27e50b10-5f6d-4cf2-af23-a43b87b440c9 route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 qg-e1e25655-ad
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 qr-8331b487-d6
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 qg-e1e25655-ad

 ip netns exec qrouter-27e50b10-5f6d-4cf2-af23-a43b87b440c9 ifc                                                                                        onfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qg-e1e25655-ad: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet 192.168.1.104  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::f816:3eff:fe99:d72a  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:99:d7:2a  txqueuelen 1000  (Ethernet)
        RX packets 14  bytes 968 (968.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 9375  bytes 394286 (385.0 KiB ...
(more)
edit retag flag offensive close merge delete

Comments

More information please: How did you set up the Packstack. To which network is the instance connected. Can it reach the router's internal interface. How are you trying to connect to the instance.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-08 00:29:18 -0500 )edit

Packstack has a hundred options. Did you set any options when deploying Packstack?

Normally I would expect to see the floating IP configured on the qg interface in the router namespace, but there is nothing. This explains why you can't reach the floating ip.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-08 02:17:05 -0500 )edit

This confuses me. Normally, the floating IP range is CONFIG_PROVISION_DEMO_FLOATRANGE=172.24.4.224/28. Since you did not change this, I wonder why your floating IP is 192.168.1.103?

Can you, as admin, show details of the public and private networks?

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-08 04:09:48 -0500 )edit

By default, Packstack creates a simulated external network that is not external at all. To attach it to your real external network, follow https://www.rdoproject.org/networking....

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-08 04:12:02 -0500 )edit

Dear Bernd, Sorry I have not mentioned that I have disable the CONFIG_PROVISION_DEMO=n and have created my our internal network and floating ip ranges.

Yasir Iqbal gravatar imageYasir Iqbal ( 2019-01-08 22:02:25 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2019-01-09 22:45:41 -0500

Yasir Iqbal gravatar image

Dear Bernd Please find below the Neutron Network and Router Info

[root@network ~]# ip a 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: eth0: <broadcast,multicast,up,lower_up> mtu 1500 qdisc mq master ovs-system state UP group default qlen 1000 link/ether 00:50:56:be:88:3a brd ff:ff:ff:ff:ff:ff inet6 fe80::250:56ff:febe:883a/64 scope link valid_lft forever preferred_lft forever 3: eth1: <broadcast,multicast,up,lower_up> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 00:50:56:be:24:b6 brd ff:ff:ff:ff:ff:ff inet 172.16.2.82/24 brd 172.16.2.255 scope global eth1 valid_lft forever preferred_lft forever inet6 fe80::250:56ff:febe:24b6/64 scope link valid_lft forever preferred_lft forever 4: ovs-system: <broadcast,multicast> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether ba:db:62:95:2f:47 brd ff:ff:ff:ff:ff:ff 6: br-int: <broadcast,multicast> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 72:40:18:06:13:47 brd ff:ff:ff:ff:ff:ff 9: br-tun: <broadcast,multicast> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether b6:a8:8f:31:6b:44 brd ff:ff:ff:ff:ff:ff 10: vxlan_sys_4789: <broadcast,multicast,up,lower_up> mtu 65000 qdisc noqueue master ovs-system state UNKNOWN group default qlen 1000 link/ether 0a:e7:0a:1e:4c:c1 brd ff:ff:ff:ff:ff:ff inet6 fe80::8e7:aff:fe1e:4cc1/64 scope link valid_lft forever preferred_lft forever 11: br-ex: <broadcast,multicast,up,lower_up> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether 00:50:56:be:88:3a brd ff:ff:ff:ff:ff:ff inet 192.168.1.32/24 brd 192.168.1.255 scope global br-ex valid_lft forever preferred_lft forever inet6 fe80::f425:93ff:fe70:d243/64 scope link valid_lft forever preferred_lft forever

Router Interfaces Details

ip netns exec qrouter-27e50b10-5f6d-4cf2-af23-a43b87b440c9 ifc onfig lo: flags=73<up,loopback,running> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

qg-e1e25655-ad: flags=4163<up,broadcast,running,multicast> mtu 1450 inet 192.168.1.104 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::f816:3eff:fe99:d72a prefixlen 64 scopeid 0x20<link> ether fa:16:3e:99:d7:2a txqueuelen 1000 (Ethernet) RX packets 14 bytes 968 (968.0 B) RX errors ... (more)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2019-01-07 22:33:47 -0500

Seen: 57 times

Last updated: Jan 08