7.8. Configuring the Plug-in Agent
7.8.1. Configure the Open vSwitch Plug-in Agent
See Section 7.5.3, “Set the Networking Service Plug-in” to enable the Open vSwitch plug-in.
The Open vSwitch plug-in has a corresponding agent. When the Open vSwitch plug-in is in use all nodes in the environment that handle data packets must have the agent installed and configured.
This includes all compute nodes and systems hosting the dedicated DHCP and L3 agents.
Note
Open vSwitch support for TCP segmentation offload (TSO) and Generic Segmentation Offload (GSO) to VXLAN and GRE is enabled by default.
Procedure 7.16. Configuring the Open vSwitch Plug-in Agent
- Confirm that the openvswitch package is installed. This is normally installed as a dependency of the neutron-plugin-openvswitch package.
#rpm -qa | grep openvswitchopenvswitch-1.10.0-1.el6.x86_64 openstack-neutron-openvswitch-2013.1-3.el6.noarc - Start the
openvswitchservice.#service openvswitch start - Enable the
openvswitchservice permanently.#chkconfig openvswitch on - Each host running the Open vSwitch agent also requires an Open vSwitch bridge named
br-int. This bridge is used for private network traffic. Use theovs-vsctlcommand to create this bridge before starting the agent.#ovs-vsctl add-br br-intWarning
Thebr-intbridge is required for the agent to function correctly. Once created do not remove or otherwise modify thebr-intbridge. - Ensure that the
br-intdevice persists on reboot by creating a/etc/sysconfig/network-scripts/ifcfg-br-intfile with these contents:DEVICE=br-int DEVICETYPE=ovs TYPE=OVSBridge ONBOOT=yes BOOTPROTO=none
- Set the value of the
bridge_mappingsconfiguration key. This configuration key must contain a list of physical networks and the network bridges associated with them.The format for each entry in the comma separated list is:PHYSNET:BRIDGE
Where PHYSNET is replaced with the name of a physical network, and BRIDGE is replaced by the name of the network bridge.The physical network must have been defined in thenetwork_vlan_rangesconfiguration variable on the OpenStack Networking server.#openstack-config --set /etc/neutron/plugin.ini \OVS bridge_mappings MAPPINGSReplace MAPPINGS with the physical network to bridge mappings. - Use the
servicecommand to start theneutron-openvswitch-agentservice.#service neutron-openvswitch-agent start - Use the
chkconfigcommand to ensure that theneutron-openvswitch-agentservice is started automatically in the future.#chkconfig neutron-openvswitch-agent on - Use the
chkconfigcommand to ensure that theneutron-ovs-cleanupservice is started automatically on boot. When started at boot time this service ensures that the OpenStack Networking agents maintain full control over the creation and management of tap devices.#chkconfig neutron-ovs-cleanup on
The networking configuration has been updated to use the Open vSwitch plug-in.
7.8.2. Configure the Linux Bridge Plug-in Agent
The Linux Bridge plug-in has a corresponding agent. When the Linux Bridge plug-in is in use all nodes in the environment that handle data packets must have the agent installed and configured.
This includes all compute nodes and systems hosting the dedicated DHCP and L3 agents.
Procedure 7.17. Configuring the Linux Bridge plug-in agent
- Set the value of the
physical_interface_mappingsconfiguration key. This configuration key must contain a list of physical networks and the VLAN ranges associated with them that are available for allocation to tenant networks.The format for each entry in the comma separated list is:PHYSNET:VLAN_START:VLAN_END
Where PHYSNET is replaced with the name of a physical network, VLAN_START is replaced by an identifier indicating the start of the VLAN range, and VLAN_END is replaced by an identifier indicating the end of the VLAN range.The physical networks must have been defined in thenetwork_vlan_rangesconfiguration variable on the OpenStack Networking server.#openstack-config --set /etc/neutron/plugin.ini \LINUX_BRIDGE physical_interface_mappings MAPPINGSReplace MAPPINGS with the physical network to VLAN range mappings. - Use the
servicecommand to start theneutron-linuxbridge-agentservice.#service neutron-linuxbridge-agent start - Use the
chkconfigcommand to ensure that theneutron-linuxbridge-agentservice is started automatically in the future.#chkconfig neutron-linuxbridge-agent on
The networking configuration has been updated to use the Linux Bridge plug-in.