Ask Your Question
0

Problems with OVS: No Connectivity

asked 2014-02-09 10:29:26 -0500

Mathias Ewald gravatar image

updated 2014-02-10 03:24:32 -0500

Hi, first some information on my setup: I am running Havana on Ubuntu 12.04.4 LTS in the controller, compute and network node. I installed according to the Openstack installation guide for this OS. Here some information from the network and compute node:

root@network:~# uname -a
Linux network 3.8.0-35-generic #52~precise1-Ubuntu SMP Thu Jan 30 17:24:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
root@network:~# modinfo openvswitch
filename:       /lib/modules/3.8.0-35-generic/updates/dkms/openvswitch.ko
version:        1.10.2
license:        GPL
description:    Open vSwitch switching datapath
srcversion:     C57BFF12C03B30A057F0B4B
depends:        
vermagic:       3.8.0-35-generic SMP mod_unload modversions 
root@network:~# lsmod | grep openvswitch
openvswitch            62733  0 
root@network:~#

root@compute1:~# uname -a
Linux compute1 3.8.0-35-generic #52~precise1-Ubuntu SMP Thu Jan 30 17:24:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
root@compute1:~# modinfo openvswitch
filename:       /lib/modules/3.8.0-35-generic/updates/dkms/openvswitch.ko
version:        1.10.2
license:        GPL
description:    Open vSwitch switching datapath
srcversion:     C57BFF12C03B30A057F0B4B
depends:        
vermagic:       3.8.0-35-generic SMP mod_unload modversions 
root@compute1:~# lsmod | grep openvswitch
openvswitch            62733  0 
root@compute1:~#

This is the (very basic) network and instance topology:

root@controller:~# neutron net-list
+--------------------------------------+---------+-----------------------------------------------------+
| id                                   | name    | subnets                                             |
+--------------------------------------+---------+-----------------------------------------------------+
| 3b5d01ce-34ac-4828-93de-eaadae98ea76 | ext-net | fc260828-b6eb-4386-9451-dbbe20872b05 192.168.0.0/24 |
| c181adde-74e6-4046-9a13-5897991392a0 | testnet | 6a814dc9-40b3-4c81-8b90-4e9349cf8a04 10.10.10.0/24  |
+--------------------------------------+---------+-----------------------------------------------------+
root@controller:~#
root@controller:~# neutron net-show 3b5d01ce-34ac-4828-93de-eaadae98ea76
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 3b5d01ce-34ac-4828-93de-eaadae98ea76 |
| name                      | ext-net                              |
| provider:network_type     | local                                |
| provider:physical_network |                                      |
| provider:segmentation_id  |                                      |
| router:external           | True                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | fc260828-b6eb-4386-9451-dbbe20872b05 |
| tenant_id                 | 2575481bef7f4fde956202e3070fe688     |
+---------------------------+--------------------------------------+
root@controller:~# neutron net-show c181adde-74e6-4046-9a13-5897991392a0
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | c181adde-74e6-4046-9a13-5897991392a0 |
| name                      | testnet                              |
| provider:network_type     | local                                |
| provider:physical_network |                                      |
| provider:segmentation_id  |                                      |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | 6a814dc9-40b3-4c81-8b90-4e9349cf8a04 |
| tenant_id                 | 2575481bef7f4fde956202e3070fe688     |
+---------------------------+--------------------------------------+
root@controller:~#
root@controller:~# neutron router-list
+--------------------------------------+------------+-----------------------------------------------------------------------------+
| id                                   | name       | external_gateway_info                                                       |
+--------------------------------------+------------+-----------------------------------------------------------------------------+
| 8c1956f9-112b-4c02-9e16-dbd393a26e53 | testrouter | {"network_id": "3b5d01ce-34ac-4828-93de-eaadae98ea76", "enable_snat": true} |
+--------------------------------------+------------+-----------------------------------------------------------------------------+
root@controller:~#
root@controller:~# neutron router-show 8c1956f9-112b-4c02-9e16-dbd393a26e53
+-----------------------+-----------------------------------------------------------------------------+
| Field                 | Value                                                                       |
+-----------------------+-----------------------------------------------------------------------------+
| admin_state_up        | True                                                                        |
| external_gateway_info | {"network_id": "3b5d01ce-34ac-4828-93de-eaadae98ea76", "enable_snat": true} |
| id                    | 8c1956f9-112b-4c02-9e16-dbd393a26e53                                        |
| name                  | testrouter                                                                  |
| routes                |                                                                             |
| status                | ACTIVE                                                                      |
| tenant_id             | 2575481bef7f4fde956202e3070fe688                                            |
+-----------------------+-----------------------------------------------------------------------------+
root@controller:~#
root@controller:~# nova list
+--------------------------------------+-----------------------------------------+--------+------------+-------------+--------------------+
| ID                                   | Name                                    | Status | Task State | Power State | Networks           |
+--------------------------------------+-----------------------------------------+--------+------------+-------------+--------------------+
| 73c8955b-39df-4bca-b4a5-7a15f6e53e5c | vm-73c8955b-39df-4bca-b4a5-7a15f6e53e5c | ACTIVE | None       | Running     | testnet=10.10.10.3 |
| b8b2b0af-f396-48a2-a60f-7dfc453b0dc3 | vm-b8b2b0af-f396-48a2-a60f-7dfc453b0dc3 | ACTIVE | None       | Running     | testnet=10.10.10.4 |
+--------------------------------------+-----------------------------------------+--------+------------+-------------+--------------------+
root@controller:~#

So as you can see above, I have a external network "ext-net" and a tenant network "testnet" with two VMs connected. Here is what it looks like on the compute node:

root@compute1:~# ovs-vsctl show
06a3c654-cfe1-47e9-9315-c6369a703ee5
    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-1"
            Interface "gre-1"
                type: gre
                options: {in_key=flow, local_ip="10.0.0.11", out_key=flow, remote_ip="10.0.0.6"}
    Bridge br-int
        Port br-int
            Interface br-int
                type: internal
        Port "tapd0c160b8-4c"
            tag: 3
            Interface "tapd0c160b8-4c"
        Port "gw-0eaea8af-6b"
            tag: 4095
            Interface "gw-0eaea8af-6b"
                type: internal
        Port "tapbff69f80-e0"
            tag: 3
            Interface "tapbff69f80-e0"
        Port "tap9ecc6db7-0a"
            tag: 1
            Interface "tap9ecc6db7-0a"
        Port "tapb24f2739-58"
            tag: 2
            Interface "tapb24f2739-58"
        Port "tap174c96e6-2d"
            tag: 2
            Interface "tap174c96e6-2d"
        Port "tap11a52cce-79"
            tag: 1
            Interface "tap11a52cce-79"
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
    ovs_version: "1.10.2"
root@compute1:~#
root@compute1:~# ip ...
(more)
edit retag flag offensive close merge delete

Comments

any errors in the neutron ovs agent log?

darragh-oreilly gravatar imagedarragh-oreilly ( 2014-02-09 15:16:04 -0500 )edit

yeah, a lot of those messages dont look good on the network node (http://pastebin.com/x6c3Y3sb and http://pastebin.com/nLWiY5Hi) and compute node (http://pastebin.com/LRDbD2PE and http://pastebin.com/q1C4NzkS) Sorry forgot that in the original posting.

Mathias Ewald gravatar imageMathias Ewald ( 2014-02-10 03:23:31 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-02-10 06:47:37 -0500

darragh-oreilly gravatar image

There is this error in the logs:

2014-02-10 10:48:27.012 1075 ERROR neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] No tunnel_type specified, cannot create tunnels

Try setting tunnel_types=gre in ovs_neutron_plugin.ini

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

1 follower

Stats

Asked: 2014-02-09 10:29:26 -0500

Seen: 350 times

Last updated: Feb 10 '14