首页 技术 正文
技术 2022年11月6日
0 收藏 813 点赞 706 浏览 2373 个字

安装OpenStack(allinone)环境

### 参考"Packstack使用"章节安装,但是不要配置外网网络

安装OVN组件

### 控制节点
# yum install -y openvswitch-ovn-central python-networking-ovn
### 所有节点
# yum install -y openvswitch openvswitch-ovn-common openvswitch-ovn-host
### 控制节点
# systemctl start ovn-northd
# systemctl enable ovn-northd
### 验证OVN服务6640、6641、6642端口监听情况
# netstat -lntp |grep ovsdb-server

开启OVN

### 所有节点
# vim /etc/neutron/neutron.conf
[qos]
notification_drivers = ovn-qos
# vim /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]
mechanism_drivers = ovn
extension_drivers = port_security[ovn]
ovn_nb_connection = tcp:92.0.0.10:6641
ovn_sb_connection = tcp:92.0.0.10:6642
ovn_l3_mode = False
ovn_l3_scheduler = chance
ovn_native_dhcp = True
neutron_sync_mode = repair
# systemctl restart openvswitch

配置OVN

### 所有节点
# ovs-vsctl set open . external-ids:ovn-remote=tcp:92.0.0.10:6642
# ovs-vsctl set open . external-ids:ovn-encap-type=flat,vxlan
### 使用节点IP
# ovs-vsctl set open . external-ids:ovn-encap-ip=92.0.0.10
### 控制节点
# ovs-vsctl set open . external-ids:ovn-bridge-mappings=extnet:br-ex

删除neutron默认配置

### 所有节点
# systemctl disable neutron-openvswitch-agent
# systemctl stop neutron-openvswitch-agent
# systemctl disable neutron-dhcp-agent
# systemctl stop neutron-dhcp-agent
# systemctl disable neutron-metadata-agent
# systemctl stop neutron-metadata-agent# ovs-vsctl del-br br-tun
# ovs-vsctl del-port br-int patch-tun
# ovs-vsctl del-controller br-int
# ovs-vsctl set bridge br-int protocols=[]### 非控制节点
# ovs-vsctl del-manager### 所有节点
# systemctl start ovn-controller
# systemctl enable ovn-controller
# ip -all netns delete

重启neutron服务

### 控制节点
# systemctl restart neutron-server### 所有节点
# systemctl restart \
openstack-nova-api \
openstack-nova-cert \
openstack-nova-compute \
openstack-nova-conductor \
openstack-nova-consoleauth \
openstack-nova-novncproxy \
openstack-nova-scheduler# systemctl restart \
openstack-glance-api \
openstack-glance-registry### 如果安装了cinder服务也需要重启
# systemctl restart \
openstack-cinder-api \
openstack-cinder-backup \
openstack-cinder-scheduler \
openstack-cinder-volume \
openstack-losetup

验证安装

# openstack network create --project admin --external --provider-network-type flat --provider-physical-network extnet external_network
# openstack subnet create --no-dhcp --subnet-range 192.168.200.0/24 --allocation-pool start=192.168.200.13,end=192.168.200.20 --gateway 192.168.200.1 --dns-nameserver 114.114.114.114 --network external_network public_subnet
# openstack flavor list
# openstack network list
# openstack server list
# openstack server create --flavor m1.tiny --image cirros --nic net-id=eb13d91a-4ff4-4226-b926-eac9cc864299 ovn-test
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,983
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,500
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,344
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,127
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,762
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,838