Cleanup Master CI
- update:
- charmcraft.yaml for v3
- tox.ini to use py3.12 by default
- test-requirements.in to use zaza for juju3
- update test bundles to work with charmcraft v3
- generate:
- merged-requirements-py312.txt
- test-requirements-py312.txt
- add:
- update-requirements env to tox.ini
Change-Id: I778292684cb4c31cd81f887c134ebb072a4ca9a3 Signed-off-by: Arif Ali arif-ali@ubuntu.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Overview
The neutron-gateway charm deploys the data plane of Neutron, the core OpenStack service that provides software defined networking (SDN) for Nova instances. This provides the Neutron Gateway service, which in turn supplies two key services: L3 network routing and DHCP. The charm works alongside other Juju-deployed OpenStack applications; in particular: neutron-openvswitch, nova-compute, and nova-cloud-controller.
Usage
Configuration
This section covers common and/or important configuration options. See file
config.yamlfor the full list of options, along with their descriptions and default values. See the Juju documentation for details on configuring applications.data-portA bridge that Neutron Gateway will bind to, given in the form of a space-delimited bridge:port mapping (e.g. ‘br-ex:ens8’). The port will be added to its corresponding bridge.
The specified bridge(s) should match the one(s) defined in the
bridge-mappingsoption.Flat or VLAN network types are supported.
The device itself must not have any L3 configuration. In MAAS, it must have an IP mode of ‘Unconfigured’.
bridge-mappingsA space-delimited list of ML2 data provider:bridge mappings (e.g. ‘physnet1:br-ex’). The specified bridge(s) should match the one(s) defined in the
data-portoption.openstack-originThe
openstack-originoption states the software sources. A common value is an OpenStack UCA release (e.g. ‘cloud:bionic-ussuri’ or ‘cloud:focal-victoria’). See Ubuntu Cloud Archive. The underlying host’s existing apt sources will be used if this option is not specified (this behaviour can be explicitly chosen by using the value of ‘distro’).Deployment
These deployment instructions assume the following pre-existing applications: neutron-api, nova-cloud-controller, and rabbitmq-server.
Deploy Neutron Gateway:
Port configuration
Network ports are configured with the
bridge-mappingsanddata-portoptions but the neutron-api charm also has several relevant options (e.g.flat-network-providers,vlan-ranges, etc.). Additionally, the network topology can be further defined with supplementaryopenstackclient commands.Example 1
This configuration has a single external network and is typically used when floating IP addresses are combined with a GRE private network.
Charm option values (YAML):
Supplementary commands:
Example 2
This configuration is for two networks, where an internal private network is directly connected to the gateway with public IP addresses but a floating IP address range is also offered.
Charm option values (YAML):
Example 3
This configuration has two external networks, where one is for public instance addresses and one is for floating IP addresses. Both networks are on the same physical network connection (but they might be on different VLANs).
Charm option values (YAML):
Supplementary commands:
legacy
ext-portoptionThe
ext-portoption is deprecated and is superseded by thedata-portoption. Theext-portoption always created a bridge called ‘br-ex’ for external networks that was used implicitly by external router interfaces.The following will occur if both the
data-portandext-portoptions are set:ext-portoption will be ignoredInstance MTU
When using Open vSwitch plugin with GRE tunnels the default MTU of 1500 can cause packet fragmentation due to GRE overhead. One solution to this problem is to increase the MTU on physical hosts and network equipment. When this is not feasible the charm’s
instance-mtuoption can be used to reduce instance MTU via DHCP:Actions
This section covers Juju actions supported by the charm. Actions allow specific operations to be performed on a per-unit basis. To display action descriptions run
juju actions --schema neutron-gateway. If the charm is not deployed then see fileactions.yaml.cleanupget-status-dhcpget-status-lbget-status-routersopenstack-upgradepauserestart-servicesresumerestart-servicesrun-deferred-hookssecurity-checklistshow-deferred-eventsDeferred service events
Operational or maintenance procedures applied to a cloud often lead to the restarting of various OpenStack services and/or the calling of certain charm hooks. Although normal, such events can be undesirable due to the service interruptions they can cause.
The deferred service events feature provides the operator the choice of preventing these service restarts and hook calls from occurring, which can then be resolved at a more opportune time.
See the Deferred service events page in the OpenStack Charms Deployment Guide for an in-depth treatment of this feature.
Documentation
The OpenStack Charms project maintains two documentation guides:
Bugs
Please report bugs on Launchpad.