Juju Charm - Neutron Gateway
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Frode Nordahl ea2e3bf24f Add cleanup action and OVS to OVN migration test 2 weeks ago
actions Add cleanup action and OVS to OVN migration test 2 weeks ago
files Merge "fix the spelling mistakes" 9 months ago
hooks Add cleanup action and OVS to OVN migration test 2 weeks ago
lib Update tox.ini files from release-tools gold copy 4 years ago
templates Add keepalived-healthcheck-interval config option 1 month ago
tests Add cleanup action and OVS to OVN migration test 2 weeks ago
unit_tests Add cleanup action and OVS to OVN migration test 2 weeks ago
.gitignore Update for Python 3 execution 2 years ago
.gitreview OpenDev Migration Patch 1 year ago
.project Rename project 5 years ago
.pydevproject Rename project 5 years ago
.stestr.conf Replace ostestr with stestr in testing framework. 1 year ago
.zuul.yaml Switch to Ussuri jobs 10 months ago
Makefile Sync helpers for 20.05 4 months ago
README.md Mark OVS bridges and ports as managed by charm-neutron-gateway 1 month ago
actions.yaml Add cleanup action and OVS to OVN migration test 2 weeks ago
charm-helpers-hooks.yaml Sync charm/ceph helpers, tox, and requirements 1 year ago
config.yaml Merge "Add keepalived-healthcheck-interval config option" 3 weeks ago
copyright Add missing copyright file 7 years ago
hardening.yaml Add hardening support 4 years ago
icon.svg Update charm icon 3 years ago
metadata.yaml Updates for 20.08 cycle start for groovy and libs 3 months ago
requirements.txt Release sync for 20.08 2 months ago
revision added postgresql 6 years ago
setup.cfg Add Python 3 Train unit tests 1 year ago
test-requirements.txt Unpin flake8, fix lint 2 weeks ago
tox.ini Unpin flake8, fix lint 2 weeks ago

README.md

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 virtualize the network that Nova Compute instances plug into.

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

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 deploy neutron-api
juju add-relation nova-compute nova-cloud-controller
juju add-relation neutron-api nova-cloud-controller

The Neutron Gateway can then be added to the deploying:

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

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

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

Configuration Options

Port Configuration

All network types (internal, external) are configured with bridge-mappings and data-port and the flat-network-providers configuration option of the neutron-api charm. Once deployed, you can configure the network specifics using neutron net-create.

If the device name is not consistent between hosts, you can specify the same bridge multiple times with MAC addresses instead of interface names. The charm will loop through the list and configure the first matching interface.

Basic configuration of a single external network, typically used as floating IP addresses combined with a GRE private network:

neutron-gateway:
    bridge-mappings:         physnet1:br-ex
    data-port:               br-ex:eth1
neutron-api:
    flat-network-providers:  physnet1

neutron net-create --provider:network_type flat \
    --provider:physical_network physnet1 --router:external=true \
    external
neutron router-gateway-set provider external

Alternative configuration with two networks, where the internal private network is directly connected to the gateway with public IP addresses but a floating IP address range is also offered.

neutron-gateway:
    bridge-mappings:         physnet1:br-data external:br-ex
    data-port:               br-data:eth1 br-ex:eth2
neutron-api:
    flat-network-providers:  physnet1 external

Alternative configuration with two external networks, one for public instance addresses and one for floating IP addresses. Both networks are on the same physical network connection (but they might be on different VLANs, that is configured later using neutron net-create).

neutron-gateway:
    bridge-mappings:         physnet1:br-data
    data-port:               br-data:eth1
neutron-api:
    flat-network-providers:  physnet1

neutron net-create --provider:network_type vlan \
    --provider:segmentation_id 400 \
    --provider:physical_network physnet1 --shared external
neutron net-create --provider:network_type vlan \
    --provider:segmentation_id 401 \
    --provider:physical_network physnet1 --shared --router:external=true \
    floating
neutron router-gateway-set provider floating

This replaces the previous system of using ext-port, which always created a bridge called br-ex for external networks which was used implicitly by external router interfaces.

Note: if the ‘data-port’ config item is set, then the ‘ext-port’ option is ignored. This is to prevent misconfiguration of the charm. A warning is logged and the unit is marked as blocked in order to indicate that the charm is misconfigured.

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 the charm’s instance-mtu option can be used to reduce instance MTU via DHCP.

juju set neutron-gateway instance-mtu=1400

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