文档章节

安装配置openstack 中的 Open vSwitch (OVS) service

傻呆
 傻呆
发布于 2016/06/22 10:02
字数 523
阅读 113
收藏 0

感谢朋友支持本博客,欢迎共同探讨交流,由于能力和时间有限,错误之处在所难免,欢迎指正!
如果转载,请保留作者信息。
博客地址:http://blog.csdn.net/qq_21398167

原博客地址:http://blog.csdn.net/qq_21398167/article/details/46913271

•          # yum install openstack-neutronopenstack-neutron-ml2 openstack-neutron- openvswitch


Edit the/etc/neutron/plugins/ml2/ml2_conf.ini file and complete the fol­lowing actions:

a. In the [ml2] section,enable the flat and generic routingencapsulation (GRE) net­work type drivers, GRE tenant networks, and theOVS mechanism driver:

[ml2]

type_drivers = flat,gre tenant_network_types = gre mechanism_drivers= openvswitch


b. In the[ml2_type_flatj section, configure the external network:

[ml2_type_flat]

flatnetworks = external

c.         In the [ml2_type_grej section,configure the tunnel identifier (id) range:

[ml2_type_gre] tunnel_id_ranges = 1:1000

d.        In the [securitygroup] section,enable security groups, enable ipset, and con­figure theOVS iptables firewall driver:

[securitygroupj

enable_security_group = True enable_ipset = True

firewall_driver= neutron.agent.linux.iptables_firewall. OVSHybridIptablesFirewallDriver

e.         In the [ovs] section, configurethe Open vSwitch (OVS) agent:

[ovs]

local_ip = INSTANCE_TUNNELS_INTERFACE_IP_ADDRESS tunnel_type = greenable_tunneling = True bridge_mappings = external:br-ex

ReplaceINSTANCE—TUNNELS—INTERFACE—IP—ADDRESS with the IP address of the instancetunnels network interface on your network node.


To configure the OpenvSwitch (OVS) service

The OVS service provides theunderlying virtual networking framework for instances. The integration bridgebr-int handles internal instance network traffic within OVS. The exter­nalbridge br-ex handles external instance network traffic within OVS. The externalbridge requires a port on the physical external network interface to provideinstances with exter­nal network access. In essence, this port connects thevirtual and physical external networks in your environment.

1.  Start the OVS service and configure it to startwhen the system boots:

systemctl enable openvswitch.service

#  systemctlstart openv

2.  Add theexternal bridge:

# ovs-vsctl add-br br-ex

3.  Add a port to the externalbridge that connects to the physical external network inter­face:

Replace interf^ce_name with the actual interface name. For example, eth2or ens256.

ovs-vsctl add-port br-ex INTERFACE_NAME


Note

Depending on your networkinterface driver, you may need to disable generic receiveoffload (GRO) to achieve suitable throughput between your instances and theexternal network.

To temporarily disable GRO onthe external network interface while testing your environment:

# ethtool-K INTERFACE_NAME gro off

alize theinstallationTo finalize the installation

1.       The Networking serviceinitialization scripts expect a symbolic link /etc/neu- tron/plugin.inipointing to the ML2 plug-in configuration file, /etc/neu-tron/plugins/ml2/ml2_conf.ini. If this symbolic link does not exist, create itus­ing the following command:

ln -s/etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini


Due to a packaging bug, the Open vSwitch agent initialization scriptexplicitly looks for the Open vSwitch plug-in configuration file rather than asymbolic link /etc/neu- tron/plugin.ini pointing to the ML2 plug-inconfiguration file. Run the following commands to resolve this issue:

cp/usr/lib/systemd/system/neutron-openvswitch-agent.service \/usr/lib/systemd/system/neutron-openvswitch-agent.service.orig

sed -i,s,plugins/openvswitch/ovs_neutron_plugin.ini,plugin.ini/g,\ /usr/lib/systemd/system/neutron-openvswitch-agent.service

2.       Start theNetworking services and configure them to start when the system boots:

systemctlenable neutron-openvswitch-agent.service neutron-l3-agent. service \

neutron-dhcp-agent.serviceneutron-metadata-agent.service \ neutron-ovs-cleanup.service

systemctlstart neutron-openvswitch-agent.service neutron-l3-agent. service \

neutron-dhcp-agent.serviceneutron-metadata-agent.service




© 著作权归作者所有

傻呆
粉丝 1
博文 143
码字总数 138424
作品 0
成都
私信 提问
Neutron中Linux Bridge与Open vSwitch优劣势对比

目前说到虚拟交换机,通常会想到使用Open vSwitch做虚拟交换机,因为支持Open vSwitch的个人和企业都想要有一个开放的模式把他们的服务集成进OpenStack。 Open vSwitch社区做了大量的工作,希...

技术小能手
2018/07/09
0
0
OpenStack Icehouse neutron-networking 架构 新增计算节点操作详解

新增计算节点 官方教程中只包含三个节点,所以根据实际需求我们需要增加计算节点,以创建更多的虚拟机。 1.配置网络 需要配置两个网卡 网卡配置 【eth0】 IP:10.0.0.41 netmask:255.255.2...

zhangdiandong
2015/12/08
0
0
openstack 利用neutron-metering-agent 监控l3层流量

##利用neutron-metering-agent 监控l3层流量 环境:ocata版本 openstack的信息监控都是通过ceilometer来获取,而在基本的组件中没有将l3层流量的数据push到message中,需要额外安装openstack...

hNicholas
01/24
0
0
Openstack计算-存储-控制分离与计算节点的在线添加

Openstack计算-存储-控制分离与计算节点的在线添加 实验环境:red hat linux 6.5 Host: 192.168.122.19 server19.example.com Compute node 1:192.168.122.3 server3.example.com Compute n......

Scanf_Love
2014/09/01
3.9K
0
Kilo版Openstack删除一台计算节点

1、移除计算节点上的ceph osd 停止节点上所有的osd服务 在mon节点上移除osd 等待集群自动恢复即可如果配置文件中有对应osd在某台节点上的配置,需要删掉 2、移除计算节点上openstack服务 2....

哓竹
2018/03/23
55
0

没有更多内容

加载失败,请刷新页面

加载更多

Spring Boot + Mybatis-Plus 集成与使用(二)

前言: 本章节介绍MyBatis-Puls的CRUD使用。在开始之前,先简单讲解下上章节关于Spring Boot是如何自动配置MyBatis-Plus。 一、自动配置 当Spring Boot应用从主方法main()启动后,首先加载S...

伴学编程
昨天
7
0
用最通俗的方法讲spring [一] ──── AOP

@[TOC](用最通俗的方法讲spring [一] ──── AOP) 写这个系列的目的(可以跳过不看) 自己写这个系列的目的,是因为自己是个比较笨的人,我曾一度怀疑自己的智商不适合干编程这个行业.因为在我...

小贼贼子
昨天
7
0
Flutter系列之在 macOS 上安装和配置 Flutter 开发环境

本文为Flutter开发环境在macOS下安装全过程: 一、系统配置要求 想要安装并运行 Flutter,你的开发环境需要最低满足以下要求: 操作系统:macOS(64位) 磁盘空间:700 MB(不包含 IDE 或其余...

過愙
昨天
6
0
OSChina 周六乱弹 —— 早上儿子问我他是怎么来的

Osc乱弹歌单(2019)请戳(这里) 【今日歌曲】 @凉小生 :#今日歌曲推荐# 少点戾气,愿你和这个世界温柔以待。中岛美嘉的单曲《僕が死のうと思ったのは (曾经我也想过一了百了)》 《僕が死の...

小小编辑
昨天
2.7K
16
Excption与Error包结构,OOM 你遇到过哪些情况,SOF 你遇到过哪些情况

Throwable 是 Java 中所有错误与异常的超类,Throwable 包含两个子类,Error 与 Exception 。用于指示发生了异常情况。 Java 抛出的 Throwable 可以分成三种类型。 被检查异常(checked Exc...

Garphy
昨天
42
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部