Configure compute nodeBefore you install and configure OpenStack Networking, you
must enable certain kernel networking functions.To enable kernel networking functionsEdit the /etc/sysctl.conf file and
add the following lines:net.ipv4.conf.all.rp_filter=0
net.ipv4.conf.default.rp_filter=0Implement the changes:#sysctl -pTo install the Networking components#apt-get install neutron-plugin-ml2 neutron-plugin-openvswitch-agent \
openvswitch-datapath-dkms#yum install openstack-neutron-ml2 openstack-neutron-openvswitch#zypper install openstack-neutron-openvswitch-agentUbuntu installations that use Linux kernel version 3.11
or later do not require the
openvswitch-datapath-dkms
package.SUSE does not use a separate ML2 plug-in package.To install and configure the Networking components#apt-get install neutron-plugin-openvswitch-agent openvswitch-datapath-dkmsDebian does not use a separate ML2 plug-in package.Respond to prompts for database
management, Identity service credentials, service endpoint
registration, and message broker credentials.Select the ML2 plug-in:Selecting the ML2 plug-in also populates the
and
keys in the
/etc/neutron/neutron.conf file with the
appropriate values.To configure the Networking common componentsThe Networking common component configuration includes the
authentication mechanism, message broker, and plug-in.Configure Networking to use the Identity service for
authentication:Edit the
/etc/neutron/neutron.conf file and
add the following key to the [DEFAULT]
section:[DEFAULT]
...
auth_strategy = keystoneAdd the following keys to the
[keystone_authtoken] section:[keystone_authtoken]
...
auth_uri = http://controller:5000
auth_host = controller
auth_protocol = http
auth_port = 35357
admin_tenant_name = service
admin_user = neutron
admin_password = NEUTRON_PASSReplace NEUTRON_PASS with
the password you chose for the neutron
user in the Identity service.Configure Networking to use the message broker:Edit the
/etc/neutron/neutron.conf file and
add the following keys to the [DEFAULT]
section:Replace RABBIT_PASS with
the password you chose for the guest
account in RabbitMQ.[DEFAULT]
...
rpc_backend = neutron.openstack.common.rpc.impl_kombu
rabbit_host = controller
rabbit_password = RABBIT_PASSConfigure Networking to use the Modular Layer 2 (ML2)
plug-in and associated services:Edit the
/etc/neutron/neutron.conf file and
add the following keys to the [DEFAULT]
section:[DEFAULT]
...
core_plugin = ml2
service_plugins = router
allow_overlapping_ips = TrueTo assist with troubleshooting, addverbose
= True to the [DEFAULT]
section in the
/etc/neutron/neutron.conf
file.To configure the Modular Layer 2 (ML2) plug-inThe ML2 plug-in uses the Open vSwitch (OVS) mechanism
(agent) to build the virtual networking framework for
instances.Edit the
/etc/neutron/plugins/ml2/ml2_conf.ini
file and add the following keys to the
[ml2] section:[ml2]
...
type_drivers = gre
tenant_network_types = gre
mechanism_drivers = openvswitchAdd the following keys to the
[ml2_type_gre] section:[ml2_type_gre]
...
tunnel_id_ranges = 1:1000Add the [ovs] section and the following
keys to it:Replace
INSTANCE_TUNNELS_INTERFACE_IP_ADDRESS
with the IP address of the instance tunnels network interface
on your compute node.[ovs]
...
local_ip = INSTANCE_TUNNELS_INTERFACE_IP_ADDRESS
tunnel_type = gre
enable_tunneling = TrueAdd the [securitygroup] section and the
following keys to it:[securitygroup]
...
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = TrueTo configure the Open vSwitch (OVS) serviceThe OVS service provides the underlying virtual networking framework
for instances.Start the OVS service and configure it to start when the
system boots:#service openvswitch start#chkconfig openvswitch onStart the OVS service and configure it to start when the
system boots:#service openvswitch-switch start#chkconfig openvswitch-switch onRestart the OVS service:#service openvswitch-switch restartRestart the OVS service:#service openvswitch restartTo configure Compute to use NetworkingBy default, most distributions configure Compute to use
legacy networking. You must reconfigure Compute to manage
networks through Networking.Edit the /etc/nova/nova.conf and add
the following keys to the [DEFAULT]
section:Replace NEUTRON_PASS with the
password you chose for the neutron user in
the Identity service.[DEFAULT]
...
network_api_class = nova.network.neutronv2.api.API
neutron_url = http://controller:9696
neutron_auth_strategy = keystone
neutron_admin_tenant_name = service
neutron_admin_username = neutron
neutron_admin_password = NEUTRON_PASS
neutron_admin_auth_url = http://controller:35357/v2.0
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
security_group_api = neutronBy default, Compute uses an internal firewall service.
Since Networking includes a firewall service, you must
disable the Compute firewall service by using the
nova.virt.firewall.NoopFirewallDriver
firewall driver.To finalize the installationThe Networking service initialization scripts expect a
symbolic link /etc/neutron/plugin.ini
pointing to the configuration file associated with your chosen
plug-in. Using the ML2 plug-in, for example, the symbolic link
must point to
/etc/neutron/plugins/ml2/ml2_conf.ini.
If this symbolic link does not exist, create it using the
following commands:#ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.iniThe Networking service initialization scripts expect the
variable NEUTRON_PLUGIN_CONF in the
/etc/sysconfig/neutron file to
reference the configuration file associated with your chosen
plug-in. Using ML2, for example, edit the
/etc/sysconfig/neutron file and add the
following:NEUTRON_PLUGIN_CONF="/etc/neutron/plugins/ml2/ml2_conf.ini"Restart the Compute service:#service openstack-nova-compute restart#service nova-compute restartStart the Open vSwitch (OVS) agent and configure it to
start when the system boots:#service openstack-neutron-openvswitch-agent start#chkconfig openstack-neutron-openvswitch-agent onRestart the Open vSwitch (OVS) agent:#service neutron-plugin-openvswitch-agent restart