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 network.

Documentation used:

  • ( (general install)
  • ( (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: (LAN but no Internet access), (LAN and Internet access)

  • Neutron/OpenvSwitch details: (

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 --name ext-subnet   --allocation-pool start=,end=   --disable-dhcp --gateway
neutron subnet-create ext-net --name ext-subnet   --allocation-pool start=,end=   --disable-dhcp --gateway
neutron net-create demo-net
neutron subnet-create demo-net --name demo-subnet --gateway
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

    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 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