OpenStack Havana - Configure Neutron#3(Compute Node)2013/10/29 |
Configure OpenStack Network Service (Neutron).
This example configures like the environment below.
Install Neutron Server on Controle Node, and Install DHCP, L3, L2 Agent on Network Node, and Install L2 Agent on Compute Node. | +------------------+ | +------------------------+ | [ Control Node ] |10.0.0.30 | 10.0.0.50| [ Network Node ] | | Keystone |------------+------------| DHCP Agent | | Neutron Server | | | L3 Agent | +------------------+ | | L2 Agent | | +------------------------+ | |10.0.0.51 +--------------------+ | [ Compute Node ] | | Nova | | L2 Agent | +--------------------+ |
Configure Compute Node on here.
By the way, Neutron needs a plugin software, it's possible to choose it from some softwares. This example chooses Open vSwitch plugin. |
|
[1] | Install L2 Agent |
# install from EPEL OpenStack, EPEL [root@node01 ~]# yum --enablerepo=openstack-havana,epel -y install openstack-neutron-openvswitch
|
[2] | Configure L2 Agent |
[root@node01 ~]#
neutron-node-setup --plugin openvswitch Neutron plugin: openvswitch Please enter the Neutron hostname: 10.0.0.30 # specify QPID server Would you like to update the nova configuration files? (y/n): y Configuration updates complete!
[root@node01 ~]#
vi /etc/neutron/neutron.conf # near line 5: add
core_plugin = neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2
# line 110: uncomment control_exchange = neutron # line 301: uncomment and change root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
[root@node01 ~]#
vi /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini # add at the last (specify Neutron DB)
[DATABASE]
sql_connection = mysql://neutron:neutron@10.0.0.30/ovs_neutron
[root@node01 ~]#
vi /etc/nova/nova.conf # line 237: comment out # network_manager=nova.network.manager.FlatDHCPManager
# line 2147: change like follows libvirt_use_virtio_for_bridges=true neutron_admin_username = neutron neutron_admin_password = servicepassword neutron_admin_auth_url = http:// 10.0.0.30 :35357/v2.0/neutron_auth_strategy = keystone neutron_admin_tenant_name = service neutron_url = http:// 10.0.0.30 :9696/
/etc/rc.d/init.d/openvswitch start [root@node01 ~]# chkconfig openvswitch on [root@node01 ~]# ovs-vsctl add-br br-int [root@node01 ~]# chkconfig openstack-nova-network off [root@node01 ~]# chkconfig neutron-openvswitch-agent on [root@node01 ~]# # reboot to finish |
Sponsored Link |
|