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

Source: Internet
Author: User

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/51317722

Part V Installation of neutron (1)
Neutron Introduction
Neutron is a project in OpenStack that provides network-as-a-service (networking as a services) between interface devices and is managed by other OpenStack services, such as Nova. Specifically, Neutron provides the OpenStack cloud with more flexibility in dividing the physical network into a multi-tenant environment that is available to each tenant in a separate network environment. In addition, Neutron provides APIs to achieve this goal. The "network" in neutron is a user-created object that, if it is to be mapped to a concept in a physical environment, is equivalent to a huge switch that can have an unlimited number of dynamically created and destroyed virtual ports.

neutron network structure diagram, the administrator creates and manages the neutron external network, is the tenant virtual machine and the Internet Information Interaction Bridge. More specifically, the external network divides a subnet, which is an addressable set of IP addresses on the Internet. In general, there is only one external network (neutron is supported for multiple external networks) and is created by an administrator. Tenant virtual machines Create and manage tenant networks, and each network can be divided into multiple subnets as needed. Many subnets are connected via routers to the neutron external network (specifically subnet A in the figure). The gateway of the router connects to the subnet of the external network, and the interfaces interface has multiple subnets that connect to the tenant network. Routers and interface interface-connected networks are created by tenants as needed, and managers only create and manage neutron external network parts.

In summary, the process of creating a neutron network is as follows:

1. First, the administrator gets a set of IP addresses that can be addressed on the Internet, and creates an external network and subnet

2. Tenants create a network and subnets

3. Tenant creates a router and connects tenant subnets and external networks

4. Tenants Create virtual machines



in theControlleron the node Create a database and perform related operations

Mysql-u root-p

Do the following:

CREATE DATABASE Neutron; GRANT all privileges the neutron.* to ' neutron ' @ ' localhost ' identified by ' neutron_dbpass '; GRANT all privileges the neutron.* to ' neutron ' @ '% ' identified by ' neutron_dbpass ';  #  Replace <span style= "font-family:arial, Helvetica, Sans-serif;" >neutron_dbpass</span>quit


creating users and Endpoint

SOURCE Admin-openrc.shopenstack user Create--password-prompt neutron  # #密码: neutronopenstack role Add--project  Service--user Neutron adminopenstack service Create--name neutron--description "OpenStack Networking" Networkopenstack Endpoint Create--publicurl http://controller:9696--adminurl http://controller:9696--internalurl Http://controller : 9696--region Regionone Network

  

to install the related package 

Yum install Openstack-neutron OPENSTACK-NEUTRON-ML2 python-neutronclient which


Related Configuration

Vim/etc/neutron/neutron.conf


[database]connection = Mysql://neutron:[email Protected]/neutron[default]rpc_backend=rabbit [oslo_messaging_rabbit ]rabbit_host=controllerrabbit_userid=openstackrabbit_password=openstack Auth_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 [default]core_plugin= ml2service_plugins=routerallow_overlapping_ips= truenotify_nova_on_port_data_changes = Truenotify_nova_on_port_ Status_changes = Truenova_url=http://controller:8774/v2 [Nova] #auth_plugin = below to start adding Auth_url = Http://controller : 35357auth_plugin = passwordproject_domain_id = defaultuser_domain_id = Defaultregion_name = RegionOneproject_name = Serviceusername = Novapassword = Nova[default]verbose=true



Type_drivers = Flat,vlan,gre,vxlantenant_network_types=gre Mechanism_drivers = Openvswitch tunnel_id_ranges = 1:1000 Enable_security_group = Trueenable_ipset = true# Adds a line below Firewall_driver = Neutron.agent.linux.iptables_firewall. Ovshybridiptablesfirewalldriver

Vim/etc/nova/nova.conf

[Default]network_api_class = Nova.network.neutronv2.api.APIsecurity_group_api = Neutronlinuxnet_interface_driver = Nova.network.linux_net. Linuxovsinterfacedriverfirewall_driver = nova.virt.firewall.NoopFirewallDriver [neutron] #URL for connecting to Neutron url = http://controller:9696auth_strategy = Keystoneadmin_auth_url = Http://controller:35357/v2.0admin_tenant _name = Serviceadmin_username = Neutronadmin_password = Neutron


for related operations 

Ln-s/etc/neutron/plugins/ml2/ml2_conf.ini/etc/neutron/plugin.inisu-s/bin/sh-c "Neutron-db-manage--config-file/ etc/neutron/neutron.conf--config-file/etc/neutron/plugins/ml2/ml2_conf.ini upgrade Head "neutron


Start

Systemctl Restart Openstack-nova-api.service openstack-nova-scheduler.service Openstack-nova-conductor.servicesystemctl Enable Neutron-server.servicesystemctl start Neutron-server.service

  


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

Related Article

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.