Instance cannot ping outside

asked 2014-08-28 03:17:26 -0500

leethaoqn gravatar image

updated 2014-08-28 03:24:32 -0500

I follow this tutorial icehouse to install openstack with three node (controller, compute01,networknode)

My demo-net, which is tenant net, is 192.168.1.0/24.
My ext-net, which is external net, is 172.22.22.0/24.


I create two instance and it can ping each other. All of service on network node is running ok.

From controller, i can ssh to instance , ping floating ip of instance is ok .
From qrrouter and qdhcp , i can ping the instance and the outside network.
My problem is the instance cannot ping the controller and the outside network . In the console log of instance, it can't connect metadate service.

checking http://169.254.169.254/2009-04-04/instance-id
failed 1/20: up 15.87. request failed
failed 2/20: up 29.21. request failed
failed 3/20: up 41.43. request failed

Here is ovs-vsctl show on network node:

17e35285-e6f5-4b4d-98d5-889b6fd39830
    Bridge br-tun
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port br-tun
            Interface br-tun
                type: internal
        Port "gre-c0a80ab5"
            Interface "gre-c0a80ab5"
                type: gre
                options: {in_key=flow, local_ip="192.168.10.184", out_key=flow, remote_ip="192.168.10.181"}
        Port "gre-c0a80ab6"
            Interface "gre-c0a80ab6"
                type: gre
                options: {in_key=flow, local_ip="192.168.10.184", out_key=flow, remote_ip="192.168.10.182"}
    Bridge br-ex
        Port "eth0"
            Interface "eth0"
        Port "qg-0fdb50b1-6b"
            Interface "qg-0fdb50b1-6b"
                type: internal
        Port br-ex
            Interface br-ex
                type: internal
    Bridge br-int
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port "qr-3ece34d9-2f"
            tag: 1
            Interface "qr-3ece34d9-2f"
                type: internal
        Port br-int
            Interface br-int
                type: internal
        Port "tap10785084-ff"
            tag: 1
            Interface "tap10785084-ff"
                type: internal
    ovs_version: "2.0.1"

Here ovs-vsctl on compute node :

f770b074-9fa6-40a0-965b-db0ae5a53475
    Bridge br-tun
        Port br-tun
            Interface br-tun
                type: internal
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port "gre-c0a80ab6"
            Interface "gre-c0a80ab6"
                type: gre
                options: {in_key=flow, local_ip="192.168.10.181", out_key=flow, remote_ip="192.168.10.182"}
        Port "gre-c0a80ab8"
            Interface "gre-c0a80ab8"
                type: gre
                options: {in_key=flow, local_ip="192.168.10.181", out_key=flow, remote_ip="192.168.10.184"}
    Bridge br-int
        fail_mode: secure
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port br-int
            Interface br-int
                type: internal
        Port "qvo0d1afd48-10"
            tag: 1
            Interface "qvo0d1afd48-10"
        Port "gw-3b2efe4e-85"
            tag: 4095
            Interface "gw-3b2efe4e-85"
                type: internal
        Port "qvof140c766-70"
            tag: 1
            Interface "qvof140c766-70"
    ovs_version: "2.0.1"
edit retag flag offensive close merge delete

Comments

First fix problem with metadata access

dbaxps gravatar imagedbaxps ( 2014-08-28 04:19:55 -0500 )edit

ya, how to fix metadata access , service neutron-metadata-agent running ok

leethaoqn gravatar imageleethaoqn ( 2014-08-28 10:30:46 -0500 )edit

netstat -lntp | grep 8775

dbaxps gravatar imagedbaxps ( 2014-08-28 10:58:32 -0500 )edit

On controller node and compute :

  netstat -lntp | grep 8775
tcp        0      0 0.0.0.0:8775            0.0.0.0:*               LISTEN      1044/python

On network node is nothing

leethaoqn gravatar imageleethaoqn ( 2014-08-28 11:56:34 -0500 )edit

ps -ef | grep 1044
ip netns list

dbaxps gravatar imagedbaxps ( 2014-08-28 12:06:56 -0500 )edit