Can't get Neutron/OpenvSwitch to work - Issues when providing IPs to instances

asked 2015-06-25 00:25:13 -0600

teamhanded gravatar image

updated 2015-06-25 06:44:58 -0600

My issues: I can't get to assign a floating IP to an instance upon creation, and I want to set up a non-contiguous floating IP pool.

My goal: to have a floating IP assigned to every instance being created or running on the 10.60.51.0/24 network.

Documentation used:

  • http://docs.openstack.org/kilo/install-guide/install/yum/content/ (http://docs.openstack.org/kilo/instal...) (general install)
  • http://docs.openstack.org/kilo/install-guide/install/yum/content/section_neutron-networking.html (http://docs.openstack.org/kilo/instal...) (Neutron and OpenvSwitch)

  • Platform details: Two-node OpenStack install (Compute, Network, Controller in blade02) (Keystone, Glance, Nova, Neutron/OpenvSwitch, Horizon on server blade02, Cinder and Heat yet to be installed on blade01).

  • Operating system: CentOS 7, kernel 3.10.0-229.4.2, running NetworkManager instead of networking (don't know if it matters)

  • Networks: 10.60.49.0/24 (LAN but no Internet access), 10.60.51.0/24 (LAN and Internet access)

  • Neutron/OpenvSwitch details: http://pastebin.com/0CBEM5ZR (http://pastebin.com/0cBEM5ZR) http://pastebin.com/4SaAtrs9

Progress made: Keystone, Nova, Glance, Horizon working as expected.

Issue #1: I can't get Neutron/OpenvSwitch to assign IPs to Nova instances. I previously tried manually adding a floating IP from the pool and it seemed to work, but I need this to be done upon creation/boot. I followed the aforementioned guide step by step and it's not currently working. Nothing much to say here, I'm at loss. What are your troubleshooting steps, comments, solutions for this?

Edit: this steps were taken to create the networks et al.

neutron net-create ext-net --router:external   --provider:physical_network external --provider:network_type flat
neutron subnet-create ext-net 10.60.51.0 --name ext-subnet   --allocation-pool start=10.60.51.10,end=10.60.51.200   --disable-dhcp --gateway 10.60.51.1
neutron subnet-create ext-net 10.60.51.0/24 --name ext-subnet   --allocation-pool start=10.60.51.10,end=10.60.51.200   --disable-dhcp --gateway 10.60.51.1
neutron net-create demo-net
neutron subnet-create demo-net 10.60.51.0/24 --name demo-subnet --gateway 10.60.51.1
neutron router-create demo-router
neutron router-interface-add demo-router demo-subnet
neutron router-gateway-set demo-router ext-net

Edit 2: and this is the output for ovs-vsctl show

6c7dc31e-d6e4-4f52-a1e9-ab5c280dc71d
    Bridge br-tun
        fail_mode: secure
        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 "tap10ca80f6-d0"
            tag: 1
            Interface "tap10ca80f6-d0"
                type: internal
        Port "qr-9bf50cb0-0e"
            tag: 1
            Interface "qr-9bf50cb0-0e"
                type: internal
        Port "qg-7f3748e5-39"
            tag: 4095
            Interface "qg-7f3748e5-39"
                type: internal
        Port br-int
            Interface br-int
                type: internal
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
    Bridge br-ex
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
        Port "enp4s0"
            Interface "enp4s0"
        Port br-ex
            Interface br-ex
                type: internal
    ovs_version: "2.3.1"

Issue #2: I have set up a router in the 10.60.51.0/24 network, as you can see on the provided link. Problem is, my company has some of the IPs in that ... (more)

edit retag flag offensive close merge delete