Icehouse neutron-ml2 GRE network issue

asked 2014-06-17 08:50:28 -0600

aseka gravatar image

updated 2014-06-17 08:58:48 -0600

dbaxps gravatar image

Hi,

I have deployed the Openstack Icehouse version on Ubuntu 14 and configured neutron-ml2 GRE tunneling network.

I'm able to successfully create the external network, router, tenant network & subnets and able to create the VM instance successfully. But instances are not getting ipaddress and unable to ping external network.

Have a question....

1. Will i want to add br-tun to any physical interface and want to assign ipaddress to br-tun?

    Also captured the OVS configuration and errors from log...

    #Neutron node:

    root@eis-bri-network:/var/log# ovs-vsctl show
    e36b1298-74f6-489c-bed5-0da336cc4823
        Bridge br-tun
            Port patch-int
                Interface patch-int
                    type: patch
                    options: {peer=patch-tun}
            Port "gre-0a25be96"
                Interface "gre-0a25be96"
                    type: gre
                    options: {in_key=flow, local_ip="10.37.190.140", out_key=flow, remote_ip="10.37.190.150"}
            Port br-tun
                Interface br-tun
                    type: internal
        Bridge br-int
            Port "qr-f0fd9009-52"
                tag: 1
                Interface "qr-f0fd9009-52"
                    type: internal
            Port br-int
                Interface br-int
                    type: internal
            Port "tap91bda0e9-cb"
                tag: 1
                Interface "tap91bda0e9-cb"
                    type: internal
            Port patch-tun
                Interface patch-tun
                    type: patch
                    options: {peer=patch-int}
            Port "qr-823250b9-5d"
                tag: 2
                Interface "qr-823250b9-5d"
                    type: internal
        Bridge br-ex
            Port br-ex
                Interface br-ex
                    type: internal
            Port "qg-97d4e961-46"
                Interface "qg-97d4e961-46"
                    type: internal
            Port "qg-9db9c1ba-48"
                Interface "qg-9db9c1ba-48"
                    type: internal
            Port "em2"
                Interface "em2"
        ovs_version: "2.0.1"


    #Compute Node:-

    root@eis-bri-comp1:/var/log/nova# ovs-vsctl show
    3b3d1e3a-69b3-40ec-835b-6bce9270dd02
        Bridge br-int
            Port br-int
                Interface br-int
                    type: internal
            Port patch-tun
                Interface patch-tun
                    type: patch
                    options: {peer=patch-int}
            Port "qvo4c6f0b73-a0"
                tag: 5
                Interface "qvo4c6f0b73-a0"
        Bridge br-tun
            Port "gre-0a25be8c"
                Interface "gre-0a25be8c"
                    type: gre
                    options: {in_key=flow, local_ip="10.37.190.150", out_key=flow, remote_ip="10.37.190.140"}
            Port br-tun
                Interface br-tun
                    type: internal
            Port patch-int
                Interface patch-int
                    type: patch
                    options: {peer=patch-tun}
        ovs_version: "2.0.1"

    #Error Logs
    #Neutron node : server.log
    2014-06-17 19:16:12.925 21430 TRACE neutron   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 283, in connect
    2014-06-17 19:16:12.925 21430 TRACE neutron     return self.dbapi.connect(*cargs, **cparams)
    2014-06-17 19:16:12.925 21430 TRACE neutron   File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
    2014-06-17 19:16:12.925 21430 TRACE neutron     return Connection(*args, **kwargs)
    2014-06-17 19:16:12.925 21430 TRACE neutron   File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__
    2014-06-17 19:16:12.925 21430 TRACE neutron     super(Connection, self).__init__(*args, **kwargs2)
    2014-06-17 19:16:12.925 21430 TRACE neutron OperationalError: (OperationalError) (1129, "Host 'eis-bri-network' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'") None None
    2014-06-17 19:16:12.925 21430 TRACE neutron
    2014-06-17 19:16:13.299 21438 INFO neutron.common.config [-] Logging enabled!
    2014-06-17 19:16:13.305 21438 INFO neutron.common.config [-] Config paste file: /etc/neutron/api-paste.ini



    root@eis-bri-network:/var/log/openvswitch# tail ovs-vswitchd.log
    2014-06-17T09:34:25.842Z|00058|netdev_linux|WARN|qr-823250b9-5d: removing policing failed: No such device
    2014-06-17T09:34:35.770Z|00059|ofproto|INFO|br-tun: 2 flow_mods 10 s ago (1 adds, 1 modifications)
    2014-06-17T09:34:36.771Z|00060|ofproto|INFO|br-int: 1 flow_mods 10 s ago (1 deletes)
    2014-06-17T09:34 ...
(more)
edit retag flag offensive close merge delete

Comments

Output: netstat -antp | grep mysql
View also https://ask.openstack.org/en/question...

dbaxps gravatar imagedbaxps ( 2014-06-17 21:05:31 -0600 )edit

I have checked the mysql it is fine.

in following captured the NAT rules....

root@eis-bri-network:~# ip netns exec qrouter-fe89b397-43ff-494b-98ca-3471d4992f6c iptables -L -n -t nat Chain PREROUTING (policy ACCEPT) target prot opt source destination neutron-l3-agent-PREROUTING all -- 0.0.0.0/0 0.0.0.0/0

Chain INPUT (policy ACCEPT) target prot opt source destination

Chain OUTPUT (policy ACCEPT) target prot opt source destination neutron-l3-agent-OUTPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain POSTROUTING (policy ACCEPT) target prot opt source destination neutron-l3-agent-POSTROUTING all -- 0.0.0.0/0 0.0.0.0/0 neutron-postrouting-bottom all -- 0.0.0.0/0 0.0.0.0/0

Chain neutron-l3-agent-OUTPUT (1 references) target prot opt source destination DNAT all -- 0.0.0.0/0 10.37.190.154 to:10.37.191.143

Chain neutron-l3-agent-POSTROUTING (1 references) target prot opt source destination ACCEPT all -- 0.0.0.0/0 ...(more)

aseka gravatar imageaseka ( 2014-06-18 09:00:29 -0600 )edit

Also no traffic found on br-tun ....

root@eis-bri-network:~# ovs-ofctl show br-tun OFPT_FEATURES_REPLY (xid=0x2): dpid:0000cad6ce24e545 n_tables:254, n_buffers:256 capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE 1(patch-int): addr:02:2e:f1:58:b9:23 config: 0 state: 0 speed: 0 Mbps now, 0 Mbps max 2(gre-0a25be96): addr:ee:37:11:0d:18:a1 config: 0 state: 0 speed: 0 Mbps now, 0 Mbps max LOCAL(br-tun): addr:ca:d6:ce:24:e5:45 config: 0 state: 0 speed: 0 Mbps now, 0 Mbps max OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0

aseka gravatar imageaseka ( 2014-06-18 09:04:18 -0600 )edit

Please, format outputs

dbaxps gravatar imagedbaxps ( 2014-06-18 09:27:15 -0600 )edit

If possible could we chat in skype. Skype name: arunsekaranganesan

aseka gravatar imageaseka ( 2014-06-19 00:06:20 -0600 )edit