OpenStack Networking (Compute Node)
Open vSwitch
Install the packages:
# apt-get install openvswitch-switch
# yum install openvswitch-switch
# zypper install openvswitch-switch
Start Open vSwitch service
# service openvswitch-switch start
# service openvswitch-switch start
# chkconfig openvswitch-switch on
# systemctl start openvswitch-switch
# systemctl enable openvswitch-switch
Create an internal bridge. Just as described in the Introduction to this guide, the Compute Node
does not provide an external bridge. This enforces all instances' network traffic to go through
the Network Controller. This is known as a "single-node" networking setup.
# ovs-vsctl add-br br-int
OpenStack Networking
Install the packages:
# apt-get install neutron-plugin-openvswitch-agent
# yum install openstack-neutron-openvswitch
# zypper install openstack-neutron-openvswitch-agent
Edit /etc/neutron/neutron.conf:
[DEFAULT]
rabbit_host = 10.10.10.10
rabbit_password = password
verbose = True
verbose = True
rpc_backend=neutron.openstack.common.rpc.impl_qpid
[DEFAULT]
rabbit_host = 10.10.10.10
rabbit_password = password
verbose = True
Edit /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini:
[database]
connection = mysql://neutron:password@10.10.10.1/neutron
[ovs]
tenant_network_type = gre
tunnel_id_ranges = 1:1000
local_ip = 10.10.10.11
enable_tunneling = True
[securitygroup]
firewall_driver = \
neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
# ln -s /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini \
/etc/neutron/plugin.ini
# ln -s /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini \
/etc/neutron/plugin.ini
Start the Agent:
# service neutron-plugin-openvswitch-agent restart
# service neutron-openvswitch-agent restart
# chkconfig neutron-openvswitch-agent on
# systemctl restart openstack-neutron-openvswitch-agent
# systemctl enable openstack-neutron-openvswitch-agent
Ensure the cleanup utility is started on future boots:
# chkconfig neutron-ovs-cleanup on
Check the /var/log/neutron/openvswitch-agent.log file for errors that would
prevent the Networking service from successfully starting.