neutron setup with virtual interfaces

asked 2014-09-24 10:39:27 -0500

kaaaas54 gravatar image

updated 2014-09-24 10:41:41 -0500

Hello,

im trying to setup an OpenStack cluster. At the moment, I have three nodes, each node has only one network interface. Following this guide ( http://docs.openstack.org/trunk/insta... + Neutron setup), I do need two NICs for the Compute and three for the network node. At the moment, im using virtual interfaces (ip aliases).

  1. Controller

    auto eth0
    iface eth0 inet static
                address 11.0.0.11
                netmask 255.255.255.0
                gateway 11.0.0.1
                dns-nameservers 11.0.0.1
                dns-search lan
    
  2. Network

    auto eth0
    iface eth0 inet static
                address 11.0.0.21
                netmask 255.255.255.0
                gateway 11.0.0.1
                dns-nameservers 11.0.0.1
                dns-search lan
    
    auto eth0:1
    iface eth0:1 inet static
                address 11.0.1.21
                netmask 255.255.255.0
    
    auto eth0:2
    iface eth0:2 inet manual
                up ip link set dev $IFACE up
                down ip link set dev $IFACE down
    
  3. Compute

    auto eth0
    iface eth0 inet static
                address 11.0.0.31
                netmask 255.255.255.0
                gateway 11.0.0.1
                dns-nameservers 11.0.0.1
                dns-search lan
    
    auto eth0:1
    iface eth0:1 inet static
                address 11.0.1.31
                netmask 255.255.255.0
    

All nodes are connected to a router, which is directly connected to the internet. The router has three IP adresses (Public IP: xxx.xxx.xxx.xxx, LAN: 11.0.0.1 and 192.168.0.1).

As in the guide, I created (via neutron) a external network (ext-net with subnet, CIDR 192.168.0.0/24, IP Allocation Pool 192.168.0.101 - 192.168.0.200, Gateway 192.168.0.1)

and a demo network (CIDR 192.168.2.0/24, IP Allocation Pool 192.168.2.2 - 192.168.2.254, Gateway 192.168.2.1), which are connected via a router (interface router_gateway, IP 192.168.0.101, Status DOWN and Interface router_interface, IP 192.168.2.1, Status ACTIVE).

My Questions/Problems:

1. As the guide states, it should be possible to ping the router gateway (192.168.0.101), but I not able to do so. Wheres my mistake?

2. If I start an instance on the demo-net, I can see on the horizon dashboard that it gets an IP (e.g 192.168.2.16), but the instance itself (running CirrOS) is NOT able to do a dhcp discover and to pick up an IP.

Heres also the output from ovs-vsctl show:

a563624a-5fc4-49f7-969f-c574c3369393
    Bridge br-tun
        Port "gre-0b00011f"
            Interface "gre-0b00011f"
                type: gre
                options: {in_key=flow, local_ip="11.0.1.21", out_key=flow, remote_ip="11.0.1.31"}
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port br-tun
            Interface br-tun
                type: internal
    Bridge br-int
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port "tapc295f082-be"
            tag: 1
            Interface "tapc295f082-be"
                type: internal
        Port "qr-f6ff0abb-f9"
            tag: 1
            Interface "qr-f6ff0abb-f9"
                type: internal
    Bridge br-ex
        Port br-ex
            Interface br-ex
                type: internal
        Port "eth0:2"
            Interface "eth0:2"
        Port "qg-cc69748e-7d"
            Interface ...
(more)
edit retag flag offensive close merge delete

Comments

Did you find a solution ?

najeh gravatar imagenajeh ( 2018-11-14 06:46:41 -0500 )edit