Juju Charm - Neutron Gateway
Go to file
Edward Hope-Morley 3ecd3807d9 [niedbalski,r=hopem]
Adds sysctl configuration support.

Closes-Bug: #1396613
2014-12-19 15:21:18 +00:00
hooks [hooks] config_changed checks for "sysctl". fixes LP: #1366598 2014-12-19 10:37:34 -03:00
templates [james-page,r=gnuoy] Add support for vlan and flat networking 2014-11-24 09:34:05 +00:00
tests Sync charm-helpers and actually pick up charmhelpers/__init__.py this time. 2014-12-11 17:48:14 +00:00
unit_tests [hooks] config_changed checks for "sysctl". fixes LP: #1366598 2014-12-19 10:37:34 -03:00
.bzrignore Resync helpers 2014-07-02 09:25:12 +01:00
.coveragerc Redux to use agree structure and OS templating 2013-07-19 10:46:25 +01:00
.project Updates post review including better backwards compatibility with 12.04 2012-12-06 10:22:24 +00:00
.pydevproject Redux to use agree structure and OS templating 2013-07-19 10:46:25 +01:00
charm-helpers-hooks.yaml Remove __init__ from charm-helpers yaml. 2014-12-11 14:50:59 +00:00
charm-helpers-tests.yaml Move charm-helpers-sync.yaml to charm-helpers-hooks.yaml and 2014-07-09 13:12:21 +00:00
config.yaml [niedbalski,r=hopem] 2014-12-19 15:21:18 +00:00
copyright Add missing copyright file 2012-12-07 08:39:53 +00:00
icon.svg Update icon.svg 2013-10-23 13:14:57 -07:00
Makefile Amulet test fixes: 2014-10-07 21:19:29 +00:00
metadata.yaml Add neutron-api-plugin relation and use it to dictate neutron settings liek l2_population 2014-09-30 14:12:10 +00:00
README.md [gnuoy,r=james-page,t=james-page] Add support for specifying external port by mac address 2014-03-14 13:24:39 +00:00
revision added postgresql 2014-03-28 12:02:09 +01:00
setup.cfg turn down logging a bit 2013-10-19 20:54:13 +01:00

Overview

Neutron provides flexible software defined networking (SDN) for OpenStack.

This charm is designed to be used in conjunction with the rest of the OpenStack related charms in the charm store) to virtualized the network that Nova Compute instances plug into.

Its designed as a replacement for nova-network; however it does not yet support all of the features as nova-network (such as multihost) so may not be suitable for all.

Neutron supports a rich plugin/extension framework for propriety networking solutions and supports (in core) Nicira NVP, NEC, Cisco and others...

The Openstack charms currently only support the fully free OpenvSwitch plugin and implements the 'Provider Router with Private Networks' use case.

See the upstream Neutron documentation for more details.

Usage

In order to use Neutron with Openstack, you will need to deploy the nova-compute and nova-cloud-controller charms with the network-manager configuration set to 'Neutron':

nova-cloud-controller:
    network-manager: Neutron

This decision must be made prior to deploying Openstack with Juju as Neutron is deployed baked into these charms from install onwards:

juju deploy nova-compute
juju deploy --config config.yaml nova-cloud-controller
juju add-relation nova-compute nova-cloud-controller

The Neutron Gateway can then be added to the deploying:

juju deploy quantum-gateway
juju add-relation quantum-gateway mysql
juju add-relation quantum-gateway rabbitmq-server
juju add-relation quantum-gateway nova-cloud-controller

The gateway provides two key services; L3 network routing and DHCP services.

These are both required in a fully functional Neutron Openstack deployment.

See upstream Neutron multi extnet

Configuration Options

External Port Configuration

If the port to be used for external traffic is consistent accross all physical servers then is can be specified by simply setting ext-port to the nic id:

quantum-gateway:
    ext-port: eth2

However, if it varies between hosts then the mac addresses of the external nics for each host can be passed as a space seperated list:

quantum-gateway:
    ext-port: <MAC ext port host 1> <MAC ext port host 2> <MAC ext port host 3>

Multiple Floating Pools

If multiple floating pools are needed then an L3 agent (which corresponds to a quantum-gateway for the sake of this charm) is needed for each one. Each gateway needs to be deployed as a seperate service so that the external network id can be set differently for each gateway e.g.

juju deploy quantum-gateway quantum-gateway-extnet1
juju add-relation quantum-gateway-extnet1 mysql
juju add-relation quantum-gateway-extnet1 rabbitmq-server
juju add-relation quantum-gateway-extnet1 nova-cloud-controller
juju deploy quantum-gateway quantum-gateway-extnet2
juju add-relation quantum-gateway-extnet2 mysql
juju add-relation quantum-gateway-extnet2 rabbitmq-server
juju add-relation quantum-gateway-extnet2 nova-cloud-controller

Create extnet1 and extnet2 via neutron client and take a note of their ids

juju set quantum-gateway-extnet1 "run-internal-router=leader"
juju set quantum-gateway-extnet2 "run-internal-router=none"
juju set quantum-gateway-extnet1 "external-network-id=<extnet1 id>"
juju set quantum-gateway-extnet2 "external-network-id=<extnet2 id>"

Instance MTU

When using Open vSwitch plugin with GRE tunnels default MTU of 1500 can cause packet fragmentation due to GRE overhead. One solution is to increase the MTU on physical hosts and network equipment. When this is not possible or practical thi charm's instance-mtu option can be used to reduce instance MTU via DHCP.

juju set quantum-gateway instance-mtu=1400

OpenStack upstream documentation recomments a MTU value of 1400: Openstack documentation

Note that this option was added in Havana and will be ignored in older releases.

TODO

  • Provide more network configuration use cases.
  • Support VLAN in addition to GRE+OpenFlow for L2 separation.