To install and configure the network node
Install the packages:
# apt-get install neutron-plugin-openvswitch-agent \ neutron-dhcp-agent neutron-l3-agent
Start Open vSwitch:
# service openvswitch-switch start
Add the integration bridge to the Open vSwitch:
# ovs-vsctl add-br br-int
Update the OpenStack Networking
/etc/neutron/neutron.conf
configuration file:rabbit_password = guest rabbit_host =
controller
rabbit_password =RABBIT_PASS
[database] connection = mysql://neutron:NEUTRON_DBPASS
@controller
:3306/neutronUpdate the plug-in
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
configuration file:[ovs] tenant_network_type=vlan network_vlan_ranges = physnet1:1:4094 bridge_mappings = physnet1:br-eth1
Create the
br-eth1
network bridge. All VM communication between the nodes occurs throughbr-eth1
:# ovs-vsctl add-br br-eth1 # ovs-vsctl add-port br-eth1 eth1
Create the external network bridge to the Open vSwitch:
# ovs-vsctl add-br br-ex # ovs-vsctl add-port br-ex eth2
Edit the
/etc/neutron/l3_agent.ini
file and add these lines:[DEFAULT] auth_url = http://
controller
:35357/v2.0 admin_tenant_name = service admin_user = neutron admin_password =NEUTRON_PASS
metadata_ip =controller
use_namespaces = TrueEdit the
/etc/neutron/api-paste.ini
file and add these lines:[DEFAULT] auth_host =
controller
admin_tenant_name = service admin_user = neutron admin_password =NEUTRON_PASS
Edit the
/etc/neutron/dhcp_agent.ini
file and add this line:use_namespaces = True
Restart networking services:
# service neutron-plugin-openvswitch-agent start # service neutron-dhcp-agent restart # service neutron-l3-agent restart