当前位置: 首页 > article >正文

upgrade openstack from ovs to ovn (by quqi99)

作者:张华 发表于:2023-11-27
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明(http://blog.csdn.net/quqi99)

set up ovs test env

./generate-bundle.sh --name ovs -s focal --num-compute 1 --ml2-ovs --run
./configure
source novarc
./tools/instance_launch.sh 1 jammy

prepretion

juju config neutron-gateway instance-mtu=1300
juju config neutron-openvswitch instance-mtu=1300

# Deploy ovn-central, ovn-chassis(on all neutron-openvswitch units), ovn-dedicated-chassis(on all neutron-gateway units) and vault
juju deploy ovn-central --series focal -n 3

# ovn-chassis is for every neutron-openvswitch (ovn-chassis is subordinate charm of nova-compute so there is no '--to' here)
juju config neutron-openvswitch bridge-mappings
juju config neutron-openvswitch data-port
source ~/novarc
nova interface-attach $(nova list |grep $(juju ssh neutron-openvswitch/0 -- hostname) |awk '{print $2}') --net-id=$(neutron net-show zhhuabj_admin_net -c id -f value)
juju deploy ovn-chassis --series focal --config new-units-paused=true \
   --config bridge-interface-mappings='br-data:ens7' --config ovn-bridge-mappings=physnet1:br-data

# neutron-gateway is for every ovn-dedicated-chassis (neutron-gateway/0 is on the machine 7)
# juju config neutron-gateway bridge-mappings
# juju config neutron-gateway data-port
juju deploy ovn-dedicated-chassis --series focal --config new-units-paused=true \
   --config bridge-interface-mappings='br-data:ens7' --config ovn-bridge-mappings=physnet1:br-data -n 1 --to 7

juju deploy --series focal vault --channel 1.7/stable
juju deploy --series focal mysql-router vault-mysql-router --channel 8.0/stable
juju add-relation vault-mysql-router:db-router mysql:db-router
juju add-relation vault-mysql-router:shared-db vault:shared-db
juju add-relation ovn-central:certificates vault:certificates
juju add-relation ovn-chassis:certificates vault:certificates
juju add-relation ovn-chassis:ovsdb ovn-central:ovsdb
juju add-relation nova-compute:neutron-plugin ovn-chassis:nova-compute

Perform the migration

juju config neutron-openvswitch firewall-driver=openvswitch

juju run-action neutron-gateway/0 pause
juju run-action neutron-openvswitch/0 pause

juju deploy neutron-api-plugin-ovn --series focal --config dns-servers="1.1.1.1 8.8.8.8"
juju add-relation neutron-api-plugin-ovn:neutron-plugin neutron-api:neutron-plugin-api-subordinate
juju add-relation neutron-api-plugin-ovn:certificates vault:certificates
juju add-relation neutron-api-plugin-ovn:ovsdb-cms ovn-central:ovsdb-cms
juju status neutron-api-plugin-ovn
juju run-action neutron-api-plugin-ovn/0 migrate-mtu i-really-mean-it=true
# Enable the Neutron OVN plugin, Wait for the deployment to settle.
juju config neutron-api manage-neutron-plugin-legacy-mode=false

juju run-action neutron-api/0 pause
# Perform initial synchronization of the Neutron and OVN databases
juju run-action neutron-api-plugin-ovn/0 migrate-ovn-db i-really-mean-it=true
# Perform Neutron database surgery to update network_type of overlay networks to ‘geneve’
juju run-action neutron-api-plugin-ovn/0 offline-neutron-morph-db

juju run-action neutron-api/0 resume

# Migrate hypervisors and gateways
juju run-action neutron-openvswitch/0 cleanup
juju run-action ovn-chassis/0 resume
juju run-action neutron-gateway/0 cleanup
juju run-action ovn-dedicated-chassis/0 resume

Post migration tasks

juju exec --application neutron-gateway 'apt remove -y neutron-dhcp-agent neutron-l3-agent neutron-metadata-agent neutron-openvswitch-agent'
juju remove-application neutron-gateway
juju exec --application neutron-openvswitch 'apt remove -y neutron-dhcp-agent neutron-l3-agent neutron-metadata-agent neutron-openvswitch-agent'
juju remove-application neutron-openvswitch
openstack network agent list
openstack network agent delete ...

reference

[1] https://docs.openstack.org/charm-guide/latest/project/procedures/ovn-migration.html


http://www.kler.cn/a/146662.html

相关文章:

  • wordpress独立站首页调用产品的三种方法
  • UniAPP快速入门教程(一)
  • 《编程与艺术的交汇:Python Turtle 绘画与游戏制作》
  • 【初阶数据结构篇】队列的实现(赋源码)
  • 深入探索Python集合(Set)的高效应用:数据处理、性能优化与实际案例分析
  • css uniapp背景图宽度固定高度自适应可以重复
  • Linux 设置文件开启数量限制
  • 8.统一异常处理 + 统一记录日志
  • 地理坐标系转换
  • 使用 .toISOString() 方法生成当前时间的ISO格式字符串,解决UTC时区差问题
  • pycharm中requirements
  • 【matlab程序】图像最大化填充画布
  • Oracle查询数据库中当前用户每个表的数据条数
  • 形态学操作—顶帽运算
  • Grafana采用Nginx反向代理,部分功能报错‘Origin not allowed’ behind proxy
  • Unity阻止射线穿透UI的方法之一
  • 欧标电动汽车充电标准CCS2
  • 简易地铁自动机售票系统实现(C++)
  • 王者荣耀小游戏
  • 数据结构 / 内存的动态申请和释放
  • AIGC创作系统ChatGPT网站源码、支持最新GPT-4-Turbo模型、GPT-4图片对话能力+搭建部署教程
  • 微软发布了Orca 2,一对小型语言模型,它们的性能超越了体积更大的同类产品
  • 王者荣耀java版
  • Java王者荣耀
  • 【shell脚本】常见的shell脚本面试题目
  • SpringBoot进阶——解释springboot的自动配置原理