Oracle VM + centos7.1+openstack kilo Multi-node installation tutorial---Neutron installation (2)

Source: Internet
Author: User
Tags openvswitch

Disclaimer: The recent installation of the kilo version of OpenStack found that there were very few existing web tutorials and that most of the tutorials did not install successfully, So write this tutorial. The installation of OpenStack is complex, and this tutorial does not guarantee that it will be installed successfully in different environments. Personal installation tutorials are also prone to errors. At the same time, the installation is in the virtual machine environment, the real installation environment needs to be changed.

Reprint please declare the source:

Zhang someone ER

Original link:http://blog.csdn.net/xinxing__8185/article/details/51353630

Part V Installation of neutron (2)
configuration on the netwrok node

Related configuration Files

Vim/etc/sysctl.conf


#添加net. ipv4.ip_forward=1net.ipv4.conf.all.rp_filter=0net.ipv4.conf.default.rp_filter=0


Sysctl-p #执行

  

Install package

Yum Install Openstack-neutron OPENSTACK-NEUTRON-ML2 openstack-neutron-openvswitch


Make the relevant configuration

Vim/etc/neutron/neutron.conf


[default]verbose = True rpc_backend=rabbit [oslo_messaging_rabbit]rabbit_host= controllerrabbit_userid= Openstackrabbit_password=openstackauth_strategy=keystone [Keystone_authtoken]auth_uri = Http://controller : 5000auth_url = Http://controller:35357auth_plugin = passwordproject_domain_id = defaultuser_domain_id = Defaultproject_name = Serviceusername = Neutronpassword = Neutron below 4 lines commented out [default]core_plugin = Ml2service_plugins = Rout Erallow_overlapping_ips = True


Vim/etc/neutron/plugins/ml2/ml2_conf.ini

Type_drivers = Flat,vlan,gre,vxlantenant_network_types = Gremechanism_drivers = Openvswitch[ml2_type_flat]flat_ Networks = External[ml2_type_gre]tunnel_id_ranges = 1:1000[securitygroup]enable_security_group = Trueenable_ipset = Truefirewall_driver = Neutron.agent.linux.iptables_firewall. Ovshybridiptablesfirewalldriver[ovs]local_ip = instance_tunnels_interface_ip_address Bridge_mappings = external: Br-ex [agent]tunnel_types = GRE


Interface_driver = Neutron.agent.linux.interface.OVSInterfaceDriverexternal_network_bridge =router_delete_ namespaces = True[default] Verbose=true

Vim/etc/neutron/dhcp_agent.ini

[DEFAULT] Verbose=trueinterface_driver = Neutron.agent.linux.interface.OVSInterfaceDriverdhcp_driver = Neutron.agent.linux.dhcp.Dnsmasqdhcp_delete_namespaces = True


Vim/etc/neutron/metadata_agent.ini

Under [DEFAULT] Add verbose=true  Auth_uri = Http://controller:5000auth_url = Http://controller:35357auth_region = Regiononeauth_plugin = passwordproject_domain_id = defaultuser_domain_id = Defaultproject_name = Serviceusername = Neutronpassword = neutron# Comment out the following (if any) #admin_tenant_name #admin_usernova_metadata_ip=controller
Metadata_proxy_shared_secret = OpenStack #替换METADATA_SECRET

On the control node

Vim/etc/nova/nova.conf


Under the [Neutron] tab, Service_meta_proxy=truemetadata_proxy_shared_secret=openstack #替换METADATA_SECRET
Systemctl Restart Openstack-nova-api.service

on the network node

Systemctl Enable Openvswitch.servicesystemctl start Openvswitch.service

Note: Add the initial bridge and make the bridge connect to a network card, which is an outlet for connecting to the Internet and is not allocated when configured Ip,bootproto=none

Ovs-vsctl add-br br-exovs-vsctl add-port br-ex interface_name #替换NTERFACE_NAME


Ln-s/etc/neutron/plugins/ml2/ml2_conf.ini/etc/neutron/plugin.inicp/usr/lib/systemd/system/ Neutron-openvswitch-agent.service/usr/lib/systemd/system/neutron-openvswitch-agent.service.origsed-i ' S,plugins /openvswitch/ovs_neutron_plugin.ini,plugin.ini,g '/usr/lib/systemd/system/neutron-openvswitch-agent.service


Systemctl Enable Neutron-openvswitch-agent.service Neutron-l3-agent.service Neutron-dhcp-agent.service Neutron-metadata-agent.service neutron-ovs-cleanup.servicesystemctl Start Neutron-openvswitch-agent.service Neutron-l3-agent.service Neutron-dhcp-agent.service Neutron-metadata-agent.service


On the control node

Test to see if the relevant service is working

SOURCE Admin-openrc.shneutron agent-listsystemctl Status Neutron-server.service

  


Oracle VM + centos7.1+openstack kilo Multi-node installation tutorial---Neutron installation (2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.