Seamless migration from Nova-network to Neutron in eBay production

3DMAX插件多边形建筑生成器PolyBuilding下载 3DMAX多边形建筑生成器PolyBuilding,一键从选择的闭合图形生成多边形建筑模型! 使用方法: 1.选择一个闭合图。 2.打开PolyBuilding插件,点击“开始生成”按钮。 提示:当前版本对矩形轮廓支持较好。 立即下载

Problem Statement

In eBay production deployment, two AZs (Availability Zones) in data center are running OpenStack Folsom with Nova Network. To align with efforts to upgrade and operationalize consistent deployment pattern across all eBay production data centers, these two AZs need to be upgraded to OpenStack Havana and Neutron with VMWare NSX plugin.

 

The most challenge task in the upgrade is nova-network to Neutron migration, for all existing VMs (Virtual Machines) should keep alive and traffic stop time should be as little as possible. This post shares our experience about how to accomplish this mission.

 

Overview of Cloud Environment

The Figure 1 shows the original Folsom deployment, it is Nova Network Multi-host mode. Each Compute Node has one nova-network process and several dnsmasq processes, nova-network does network management while dnsmasq provides DHCP service for the VMs running in the same Compute Node. All the VMs are running in the bridged mode, Linux bridge interfaces are in each Compute Node and VMs’ tap devices are attached to the Linux bridge interfaces.

 

All Compute Nodes in SLC are running either RHEL 6.4 or RHEL 6.3

Figure 1

The Figure 2 shows the target Havana deployment. All OpenStack components are upgraded to Havana release and Neutron server is enabled, in addition, VMWare NSX SDN nodes are deployed too. No nova-network and dnsmasq processes are running in Compute Nodes anymore, instead, Open vSwitch components are installed, and the Linux bridge interfaces are replaced by Open vSwitch bridge interfaces. All existing VMs are running in bridged mode still.

Figure 2

Nova-network to Neutron Migration

  • Control-plane Migration.

The first step is to setup a new set of Havana OpenStack Nodes and NSX Nodes, meanwhile we keep Folsom OpenStack Nodes running still. Transport Zones are created in the NSX controller and all Compute nodes are registered to the NSX controller.

 

Second step is to do database migration. For Keystone, Nova and Glance database, it is the normal procedure, i.e. export MySQL database from Folsom, and import it to Havana plus  db_sync. For Neutron database, net and subnet are created according to networks and fixed_ips tables in Folsom Nova database, Figure 3.

Figure 3

After net and subnet creation in Neutron, the next step is to create ports for all existing VM in Neutron and NSX controller. Here Neutron and Nova APIs are called to do port creation and attach the port to VM. One thing need pay attention is that the tap devices have been created in the Compute Nodes and attached to existing VMs already. In order not to break things in Compute Nodes, the fake driver is enabled in nova-compute service when doing port creation and attachment, see Figure 4.

Figure 4

  • Data-plane Migration.

The data-plane migration is moving VMs’ tap devices from Linux bridge to Open vSwitch bridge, and putting the Compute Nodes’ Open vSwitch under the control of SDN controller, see Figure 5.

Figure 5

The details steps are,

a.Install Open vSwitch components, including Open vSwitch kernel module and user space application ovs-vswitchd and ovsdb-server. At this step, we only install the package but don’t load the kernel module and don’t start the services. N.B. ovs-l3d (VMWare’s l3d for Open vSwitch) is installed later.

#rpm -Uvh kmod-openvswitch-2.1.0.*.rpm

#rpm -Uvh openvswitch-2.1.0.*.rpm

b.Detach the VMs’ tap devices and Compute Node’s physical interface, e.g. eth0 from Linux bridge. At this point, the VMs on this Compute Node lose network connections. We need rename the tap device from vnetX to tapXXX in order to follow the Havana Neutron tap device naming convention.

#brctl delif $lnxbr $phyif

#brctl delif $lnxbr $vm_tap_folsom

#ip link set $vm_tap_folsom down

#ip link set $vm_tap_folsom name $vm_tap_havana

#ip link set $vm_tap_havana up

c.Delete the Linux bridge interface and remove the Linux bridge module from kernel. This step is especially important in RHEL6.3, as Linux bridge module and Open vSwitch kernel module have symbol conflicts.

#ip addr del $ip dev $lnxbr

#ip link set $lnxbr down

#brctl delbr $lnxbr

#rmmod bridge

d.Start all Open vSwitch services. As nicira-ovs-hypervisor-node rpm package’s specific scripts auto start the ovs-l3d service, we install the rpm here.

#service openvswitch start

#rpm -Uvh nicira-ovs-hypervisor-node*.rpm

e.Create Open vSwitch integration bridge br-int and external bridge e.g. br0, and set the external id for external bridge interface. N.B. the br-int is created by nicira-ovs-hypervisor-node rpm package specific scripts.

#ovs_vsctl -- --may-exist add-br br-int\

-- br-set-external-id br-int bridge-id br-int\

       -- set bridge br-int other-config:disable-in-band=true\

           -- set bridge br-int fail-mode=secure

 

#ovs-vsctl add-br $ovsbr

#ip link set $ovsbr up

#ovs-vsctl br-set-external-id $ovsbr bridge-id $ovsbr

#ovs-vsctl set bridge $ovsbr fail-mode=standalone

f.Attach Compute Node’s physical interface to Open vSwitch external bridge interface, config Compute Node’s IP on external bridge interface and adding default route.

#ovs-vsctl add-port $ovsbr $phyif

#ip addr add $ip dev $ovsbr

#ip route add default via $gw dev $ovsbr

g.Attach VMs’ tap devices to Open vSwitch integration bridge, and set properties to the tap devices. The iface-id value is Neutron port’s uuid and with mac address value, both of them are read from Neutron’s database. As same uuid value and mac value are in SDN controller too, now the VMs tap devices have enough information linked to SDN controller.

#ovs-vsctl add-port br-int $vm_tap_havana -- \

set Interface $vm_tap_havana external-ids:iface-id=$iface_id -- \

set Interface $vm_tap_havana external-ids:attached-mac=$mac -- \

set Interface $vm_tap_havana external-ids:iface-status=active

h.Set connection to SDN controller. Then SDN controllers let ovsdb-server setup the patch ports between integration bridge interface and external bridge interface, and download traffic forwarding flows to Compute Node by openflow protocols. At this point, the VMs’ network connections are restored.

#ovs-vsctl set-manager $sdn_controller_url

The VMs traffic stop time is less than 10 seconds which doesn’t break existing TCP connections usually. For RHEL6.4, we could load Open vSwitch kernel module and start its service (step d) before tap devices and physical interface are detached from Linux bridge (step b), then VMs traffic stop time is less than 5 seconds even.

 

  • Post-migration

After control-plane and data-plane migration is done, the existing VMs could be working under OpenStack Havana controllers and SDN controllers, but we need consider cases like VM stop, VM restart, and Compute Node restart. In order to make all these cases work well and clean enough, below two post-migration jobs are required.

  1. As the change from Linux bridge interfaces to Open vSwitch bridge interfaces, the Linux network configuration files need update in Compute Node, e.g. /etc/sysconfig/network-scripts/ifcfg-XXX in RHEL.
  2. The running VMs are still regarding tap devices attached the Linux bridge, so we need update the libvirt runtime xml file /var/run/libvirt/qemu/<instance>.xml and restart libvirtd service.

 

  • Roll-back plan

There are thousands Compute Nodes in the production, and it is possible that some drift Compute Node configuration would cause migration failure, the roll-back plan is important for the production.

We log all steps during the migration. If there’s failure in certain step, we would run revert-migration script, i.e. from Open vSwith to Linux bridge. It can help shorten VMs traffic break time. Then we have enough time to fix configuration drift and run migration script again.

 

OpenStack Summit

This topic was presented in the OpenStack Paris Summit 2014, the slides and video are at below links,

https://www.openstack.org/assets/presentation-media/Seamless-migration-from-Nova-network-to-Neutron-in-eBay-production-20141104.pptx

http://www.youtube.com/watch?v=YMLDCBPUnJo

 

Reference

1.http://docs.openstack.org/

2.http://openvswitch.org/support/

3.NSX User Guide, version 4.1

夏BC1730年世界历史地图矢量文件SHP格式.zip 本资源为《夏BC1730年世界历史地图矢量文件SHP格式》压缩包,文件大小约 16.15 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。 立即下载

相关推荐

120-基于STM32小区自动售水机控制系统设计(设计+程序+仿真).rar

项目120-基于STM32小区自动售水机控制系统设计 资料包括Proteus仿真+Keil程序+Altium Designer原理图+软件安装包+参考设计说明书+答辩PPT+设计流程图,保证资料完整性! 功能: (1)本小区自动售水机系统以STM32F103单片机为核心控制单元,统筹售水数据运算,保障取水计量与设备运维逻辑稳定运行。 (2)采用HLW8032水流量传感器、DS1302时钟、TDS水质检测模块与压力传感器组合采集,实时监测出水量、水质纯度与水箱液位状态。 (3)使用TFT1.44彩屏实时显示当前出水流量、剩余可取水量、水质TDS数值与设备运行状态,界面信息清晰直观,采样数据刷新及时。 (4)配备直流供水电磁阀、紫外线杀菌灯与有源蜂鸣器作为执行装置,扫码或刷卡验证后自动开启供水,取水完成自动断水并提示。 (5)内置独立按键支持单次最大取水量自定义配置与设备每日启停时段灵活调整,电路结构易复现,适配社区智能便民设备类电子开发需求。

OpenStack 集成 OpenDaylight

  此处OpenStack集成 OpenDaylight 过程及简单的测试Case. 软件版本   OpenDaylight:   0.6.2-Carbon   OpenStack:    ocata   OpenVswitch:   2.8.0 部署OpenDaylight 下载OpenDaylight https://www.opendaylight.org/t...

weixin_33901843的博客 357

智慧市政灯联网解决方案.pptx

智慧市政灯联网解决方案.pptx

【负荷频率和电压控制】电力系统的组合负荷频率和电压控制模型研究(Simulink)

内容概要:本文针对电力系统中频率与电压耦合控制的关键问题,研究了组合负荷频率控制(LFC)与自动电压调节(AVR)的协同建模方法,基于Simulink搭建动态仿真系统,构建了能够反映负载突变、发电侧扰动等实际工况的多变量控制系统模型。通过集成经典控制理论与现代仿真技术,设计协调控制器以同时稳定系统频率和关键母线电压,有效抑制因功率不平衡引发的动态波动,提升电力系统的整体稳定性与电能质量。文中详述了系统建模流程、控制策略设计原理及仿真验证过程,为复杂电力系统的多目标协同控制提供了理论依据与实践参考。; 适合人群:电力系统自动化、电气工程及其相关专业的高校研究生、科研机构研究人员以及从事电网运行、控制策略开发的工程技术从业人员。; 使用场景及目标:①用于深入理解负荷频率控制与电压调节之间的动态耦合机制及其交互影响;②为含高比例新能源接入的现代电力系统提供频率-电压协同控制的仿真验证平台;③支撑PID、模糊逻辑、最优控制等先进控制算法在多输入多输出(MIMO)电力系统稳定控制中的研究与应用。; 阅读建议:建议结合提供的Simulink模型文件进行同步操作学习,重点掌握控制器结构设计与参数整定方法,关注系统在不同扰动工况下的动态响应特性,并可进一步拓展研究新能源出力不确定性、负荷随机性对控制性能的影响。

机械传动深沟球轴承结构与选型:基于载荷、转速及密封参数的工业应用系统设计

内容概要:本文系统介绍了深沟球轴承的结构机理、性能特征、关键参数及选型方法,重点阐述了其作为工业领域最广泛应用的滚动轴承类型的技术特点。文章详细解析了深沟球轴承的四大组成部分、双向轴向载荷承载原理及其适用边界,明确了其在高转速、低噪声、低成本等方面的优点,同时也指出其不适用于重载冲击、纯轴向载荷和对中不良工况的局限性。通过对尺寸参数、型号编码规则、后置代号含义的解读,结合典型应用场景与推荐配置,提供了完整的选型流程与交付要求,并列举了常见失效形式与选型误区,强调了正确匹配游隙、密封结构、精度等级的重要性。; 适合人群:面向从事机械设计、产品开发、设备维护等领域的工程师和技术人员,尤其是需要进行轴承选型与应用验证的产品工程师; 使用场景及目标:①指导在电机、泵类、家电、汽车发电机等设备中合理选用深沟球轴承;②掌握型号识别、寿命计算、转速校核、游隙与密封配置等关键技术环节;③避免因选型不当导致的温升、振动、早期失效等问题; 阅读建议:学习时应结合实物图示与参数标注理解结构特征,重点关注后置代号与工况匹配关系,在实际选型中严格按照六步流程操作,并参考目标品牌官方样本确认参数定义差异。

技术转移机构如何向潜在合作伙伴展示创新联合体的资源匹配效率?.docx

技术转移机构如何向潜在合作伙伴展示创新联合体的资源匹配效率?

商品期货与股指指数行情数据包含交易日期、合约或指数代码、名称、开盘价、最高价、最低价、收盘价、结算价、前结算价、涨跌额、涨跌幅、成交量、持仓量、成交额等字段 商品期货按合约记录,股指指数按指数记录,内

商品期货与股指指数行情数据包含交易日期、合约或指数代码、名称、开盘价、最高价、最低价、收盘价、结算价、前结算价、涨跌额、涨跌幅、成交量、持仓量、成交额等字段。商品期货按合约记录,股指指数按指数记录,内容以数值型行情指标为主。 数据源:CMES金融数据库

技术转移平台运营商如何赋能下游服务商参与创新联合体?.docx

技术转移平台运营商如何赋能下游服务商参与创新联合体?

极值寻找控制(ESC)的新的最大功率点跟踪(MPPT)方法,并测试了该算法在找到光伏板的峰值功率点方面的能力(Simulink仿真实现)

内容概要:本文提出了一种基于改进极值寻找控制(ESC)的最大功率点跟踪(MPPT)新方法,旨在提升光伏发电系统在复杂多变环境下的能量捕获效率。通过在Simulink中构建完整的光伏系统仿真模型,结合光伏阵列的非线性输出特性,设计并实现了优化的ESC算法。该算法通过注入高频扰动信号、实时估计功率梯度,并引入反馈调节机制,实现了对最大功率点的快速、稳定追踪。相较于传统扰动观察法和增量电导法,该方法在光照强度快速变化或存在局部遮阴的工况下展现出更强的鲁棒性和更高的动态响应精度,有效避免了误判与振荡问题。文中详细阐述了ESC控制器的结构设计、关键参数整定原则及滤波环节的优化策略,并通过大量仿真实验验证了其在不同环境条件下的优越性能。; 适合人群:具备一定电力电子技术、自动控制理论及光伏系统基础知识,从事新能源发电、智能电网、自动化控制等相关领域的科研人员、工程技术人员及高校研究生。; 使用场景及目标:①应用于光伏发电系统的仿真建模与控制器设计,提升系统在动态环境下的最大功率追踪效率与稳定性;②为研究人员提供一种先进的ESC-MPPT算法实现范例,促进高性能自寻优控制策略在可再生能源领域的深入研究与工程应用。; 阅读建议:建议读者结合提供的Simulink仿真模型,深入理解ESC算法中扰动频率、幅值、滤波器截止频率等关键参数对系统性能的影响,通过设置不同的光照与温度变化场景进行对比仿真,全面掌握算法的调参规律与优化潜力。

地方科技局如何认定和培育市级创新联合体,有哪些具体的政策支持?.docx

科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。

头部科技企业孵化器通过生态赋能实现指数级增长的经验有哪些?.docx

头部科技企业孵化器通过生态赋能实现指数级增长的经验有哪些?

组播测试工具,可以专门针对IGMP V2/V3、MLD V1/V2协议测试

此工具包含组播成员和组播源模式,组播源负责推送视频流量,成员模式负责发送组播加入报告并接入视频流量最终呈现画面和声音,组播加入报告属于工具自行构造,不依赖电脑系统注册表,这一点vlc工具做不到,适用于Win10和Win11,需管理员权限运行,此工具就是解决vlc不能自定义加入报文的协议版本而开发。

某音商城hook so层进行抓包

适用于某音抓包的文件分析,给ai即可自动理解使用

【使用高斯原理推导缆绳-拖曳伞系统的动态模型】使用拖缆系统进行微型空中飞行器的空中回收研究(Matlab代码实现)

内容概要:本文围绕使用高斯最小约束原理推导缆绳-拖曳伞系统的动态模型,系统研究微型空中飞行器(MAV)通过拖缆系统实现空中回收的动力学机制。通过高斯原理建立系统的动力学方程,综合考虑缆绳的柔性特性、拖曳伞的气动效应以及飞行器与伞系统之间的强耦合作用,构建了高精度的多体耦合动力学模型,并利用Matlab进行数值仿真与验证。研究重点在于分析回收过程中的系统稳定性、动态响应特性以及关键参数对回收性能的影响,旨在为提升空中回收的安全性与可靠性提供坚实的理论依据和可行的技术路径。; 适合人群:具备一定理论力学、空气动力学基础及Matlab编程能力,从事航空航天、飞行器设计、多体动力学建模与控制等领域的研究生、科研人员及工程技术人员。; 使用场景及目标:① 掌握基于高斯原理的复杂柔性多体系统建模方法;② 深入理解缆绳与气动体耦合下的非线性动力学行为;③ 优化微型飞行器空中回收系统的总体设计与控制策略; 阅读建议:建议结合Matlab代码深入剖析模型实现细节,重点关注高斯原理在处理非完整约束与复杂耦合系统中的独特优势,对比仿真结果与理论预期,宜配合经典动力学教材与相关学术论文进行延伸学习,以深化对系统物理本质的理解。

生物基可持续航空燃料(SAF):低碳航空需求催生技术升级与全球供应链新机遇.docx

生物基可持续航空燃料(SAF):低碳航空需求催生技术升级与全球供应链新机遇

政府如何制定政策来引导和支持本地技术转移服务机构规范化发展?.docx

科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。

PT100-两篇VIP文对照笔记

PT100-两篇VIP文对照笔记

地方产业研究院委托技术转移机构引入外地成果的典型案例有哪些.docx

科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。

上一篇: 使用JProfiler进行性能调优
下一篇: A Tutorial to Dev a Jenkins Plugin for a Distributed Jenkins
ebay
博客等级 码龄24年 109粉丝 69原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值