neutron网络服务
控制节点
- 创建neutron数据库,自定义用户密码设置为neutron/neutron
mysql -uroot -proot
MariaDB [(none)]> CREATE DATABASE neutron;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' IDENTIFIED BY 'neutron';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' IDENTIFIED BY 'neutron';
MariaDB [(none)]> FLUSH PRIVILEGES;
- 加载admin临时环境变量
source keystonerc_admin
- 在keystone上创建neutron用户,密码自定义为neutron
[root@controller-01 ~]# openstack user create --domain default --password-prompt neutron
User Password:
Repeat User Password:
+---------------------+----------------------------------+
| Field | Value |
+---------------------+----------------------------------+
| domain_id | default |
| enabled | True |
| id | 6dba19fbf1e44fc5b38d81315ecd141e |
| name | neutron |
| options | {} |
| password_expires_at | None |
+---------------------+----------------------------------+
- 给neutron用户添加admin角色权限,执行结果无输出
openstack role add --project service --user neutron admin
- 创建neutron服务实体
[root@controller-01 ~]# openstack service create --name neutron --description "OpenStack Networking" network
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | OpenStack Networking |
| enabled | True |
| id | 6d99c27e4ca74b4b80db2ea15d1214e1 |
| name | neutron |
| type | network |
+-------------+----------------------------------+
- 创建网络服务API端点(endpoint)
[root@controller-01 ~]# openstack endpoint create --region RegionOne network public http://controller-01:9696
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | eaa491b4812a4f22892f8e31179e035b |
| interface | public |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 6d99c27e4ca74b4b80db2ea15d1214e1 |
| service_name | neutron |
| service_type | network |
| url | http://controller-01:9696 |
+--------------+----------------------------------+
[root@controller-01 ~]# openstack endpoint create --region RegionOne network internal http://controller-01:9696
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | 071f2a4a84404310b10f9cb610766e4f |
| interface | internal |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 6d99c27e4ca74b4b80db2ea15d1214e1 |
| service_name | neutron |
| service_type | network |
| url | http://controller-01:9696 |
+--------------+----------------------------------+
[root@controller-01 ~]# openstack endpoint create --region RegionOne network admin http://controller-01:9696
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | 34016fc444894a7c887e0ae62ca264cf |
| interface | admin |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 6d99c27e4ca74b4b80db2ea15d1214e1 |
| service_name | neutron |
| service_type | network |
| url | http://controller-01:9696 |
+--------------+----------------------------------+
配置网络选项
您可以使用选项1和2表示的两种体系结构之一来部署网络服务。
- 选项1、部署了最简单的架构,它只支持将实例附加到提供商(外部)网络。没有自助服务(专用)网络、路由器或浮动IP地址。只有admin特权用户或其他特权用户可以管理提供商网络。
-
选项2、增加了选项1的第3层服务支持将实例附加到自助服务网络。该demo用户或其他非特权用户可以管理自助服务网络,包括在自助服务网络和提供商网络之间提供连接的路由器。此外,浮动IP地址使用来自外部网络(例如 Internet)的自助服务网络提供与实例的连接。
自助服务网络通常使用覆盖网络。诸如 VXLAN 之类的覆盖网络协议包括额外的标头,这些标头会增加开销并减少可用于有效负载或用户数据的空间。在不了解虚拟网络基础结构的情况下,实例会尝试使用 1500 字节的默认以太网最大传输单元 (MTU) 发送数据包。网络服务通过 DHCP 自动为实例提供正确的 MTU 值。但是,某些云映像不使用 DHCP 或忽略 DHCP MTU 选项,需要使用元数据或脚本进行配置。
根据自己需求,这里我选择的选项2自助服务网络。
这里开始网络组件可以选择linuxbridge
或者openvswitch
,根据需要选择其中一种
安装组件(linuxbridge)
yum install openstack-neutron openstack-neutron-ml2 openstack-neutron-linuxbridge ebtables
配置服务组件
- 编辑
/etc/neutron/neutron.conf
文件,修改如下区域参数,根据实际帐号密码信息修改
[database]
connection = mysql+pymysql://neutron:neutron@controller-01/neutron
[DEFAULT]
core_plugin = ml2
service_plugins = router
allow_overlapping_ips = true
transport_url = rabbit://openstack:openstack@controller-01
auth_strategy = keystone
notify_nova_on_port_status_changes = true
notify_nova_on_port_data_changes = true
[keystone_authtoken]
auth_uri = http://controller-01:5000
auth_url = http://controller-01:35357
memcached_servers = controller-01:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = neutron
[nova]
auth_url = http://controller-01:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = nova
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/neutron.conf
配置Modular Layer 2 (ML2)插件
- 编辑
/etc/neutron/plugins/ml2/ml2_conf.ini
文件,修改如下参数- 在[ml2]区域,启用flat,VLAN,VXLAN网络
[ml2]
type_drivers = flat,vlan,vxlan
- 在[ml2]区域,启用VXLAN自助服务网络
[ml2]
tenant_network_types = vxlan
- 在[ml2]区域,启用Linux桥接和layer-2层填充机制
[ml2]
mechanism_drivers = linuxbridge,l2population
配置 ML2 插件后,删除 type_drivers 选项中的值会导致数据库不一致。
Linux桥接代理仅支持VXLAN网络
- 在[ml2]区域,启用端口安全扩容驱动
[ml2]
extension_drivers = port_security
- 在[ml2_type_flat]区域,配置提供者虚拟网络作为一个flat网络
[ml2_type_flat]
flat_networks = provider
- 在[ml2_type_vxlan]区域,配置自助服务网络VXLAN网络认证范围
[ml2_type_vxlan]
vni_ranges = 1:1000
- 在[securitygroup]区域,启用ipset以提高安全组规则的效率
[securitygroup]
enable_ipset = true
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/plugins/ml2/ml2_conf.ini
配置Linux桥接代理
- 编辑
/etc/neutron/plugins/ml2/linuxbridge_agent.ini
文件,配置如下参数
[linux_bridge]
physical_interface_mappings = provider:enp0s8 # 将提供者虚拟网络映射到提供者物理网络接口主机网卡二(enp0s8)
[vxlan]
enable_vxlan = true
local_ip = 10.0.0.10 # 填写主机网卡二(enpp0s8) 上绑定的IP
l2_population = true
[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
- 检查系统是否支持桥接模式防火墙,在启动neutron-linuxbridge-agent.service的时候会自动设置为1,结果显示1为开启
sysctl net.bridge.bridge-nf-call-iptables
sysctl net.bridge.bridge-nf-call-ip6tables
执行报错提示
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-ip6tables: No such file or directory
- 尝试启用br_netfilter模块,再次执行上面命令
modprobe br_netfilter
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/plugins/ml2/linuxbridge_agent.ini
配置layer-3层代理
Layer-3(L3)代理对自助虚拟网络提供路由和NAT服务
– 编辑/etc/neutron/l3_agent.ini
文件,配置如下参数
[DEFAULT]
interface_driver = linuxbridge
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/l3_agent.ini
配置DHCP代理
DHCP代理对虚拟网络提供DHCP服务
– 编辑/etc/neutron/dhcp_agent.ini
文件,配置如下参数
[DEFAULT]
interface_driver = linuxbridge
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = true
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/dhcp_agent.ini
配置元数据代理
- 编辑
/etc/neutron/metadata_agent.ini
文件,配置如下参数
[DEFAULT]
nova_metadata_host = controller-01
metadata_proxy_shared_secret = metadata # METADATA_SECRET自定义设置为metadata
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/metadata_agent.ini
配置计算服务使用网络服务
- 编辑
/etc/nova/nova.conf
文件,配置如下参数
[neutron]
url = http://controller-01:9696
auth_url = http://controller-01:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron
service_metadata_proxy = true
metadata_proxy_shared_secret = metadata
- 检查配置的参数
egrep -v "^$|^#" /etc/nova/nova.conf
最后安装
- 创建网络插件的链接,初始化网络的脚本插件会用到
/etc/neutron/plugin.ini
,需要使用ML2的插件进行提供
ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
- 同步数据库
su -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
- 重启计算API服务
systemctl restart openstack-nova-api.service
- 启动并设置开机自启动服务
systemctl enable neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service
systemctl start neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service
systemctl enable neutron-l3-agent.service
systemctl start neutron-l3-agent.service
控制节点linuxbridge
网络到此结束。
安装组件(openvswitch)
yum install openstack-neutron openstack-neutron-ml2 openstack-neutron-openvswitch ebtables
配置服务组件
- 编辑
/etc/neutron/neutron.conf
文件,修改如下区域参数,根据实际帐号密码信息修改
[database]
connection = mysql+pymysql://neutron:neutron@controller-01/neutron
[DEFAULT]
core_plugin = ml2
service_plugins = router
allow_overlapping_ips = true
transport_url = rabbit://openstack:openstack@controller-01
auth_strategy = keystone
notify_nova_on_port_status_changes = true
notify_nova_on_port_data_changes = true
[keystone_authtoken]
auth_uri = http://controller-01:5000
auth_url = http://controller-01:35357
memcached_servers = controller-01:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = neutron
[nova]
auth_url = http://controller-01:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = nova
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/neutron.conf
配置Modular Layer 2 (ML2)插件
- 编辑
/etc/neutron/plugins/ml2/ml2_conf.ini
文件,修改如下参数- 在[ml2]区域,启用flat,VLAN,VXLAN网络
[ml2]
type_drivers = flat,vlan,vxlan
- 在[ml2]区域,启用VXLAN自助服务网络
[ml2]
tenant_network_types = vxlan
- 在[ml2]区域,启用openvswitch和layer-2层填充机制
[ml2]
mechanism_drivers = openvswitch,l2population
配置 ML2 插件后,删除 type_drivers 选项中的值会导致数据库不一致。
- 在[ml2]区域,启用端口安全扩容驱动
[ml2]
extension_drivers = port_security
- 在[ml2_type_flat]区域,配置提供者虚拟网络作为一个flat网络
[ml2_type_flat]
flat_networks = provider
- 在[ml2_type_vxlan]区域,配置自助服务网络VXLAN网络认证范围
[ml2_type_vxlan]
vni_ranges = 1:1000
- 在[securitygroup]区域,启用ipset以提高安全组规则的效率
[securitygroup]
enable_ipset = true
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/plugins/ml2/ml2_conf.ini
配置openvswitch代理
- 编辑
/etc/neutron/plugins/ml2/openvswitch_agent.ini
文件,配置如下参数
[ovs]
bridge_mappings = provider:br-provider # 将提供者虚拟网络映射到ovs创建的br-provider
local_ip = 10.0.0.10 # 填写主机隧道网网卡二(enpp0s8) 上绑定的IP
[agent]
tunnel_types = vxlan
l2_population = true
[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
- 检查系统是否支持桥接模式防火墙,在启动neutron-openvswitch_agent.service的时候会自动设置为1,结果显示1为开启
sysctl net.bridge.bridge-nf-call-iptables
sysctl net.bridge.bridge-nf-call-ip6tables
执行报错提示
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-ip6tables: No such file or directory
- 尝试启用br_netfilter模块,再次执行上面命令
modprobe br_netfilter
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/plugins/ml2/openvswitch_agent.ini
配置layer-3层代理
Layer-3(L3)代理对自助虚拟网络提供路由和NAT服务
– 编辑/etc/neutron/l3_agent.ini
文件,配置如下参数
[DEFAULT]
interface_driver = openvswitch
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/l3_agent.ini
配置DHCP代理
DHCP代理对虚拟网络提供DHCP服务
– 编辑/etc/neutron/dhcp_agent.ini
文件,配置如下参数
[DEFAULT]
interface_driver = openvswitch
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = true
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/dhcp_agent.ini
配置元数据代理
- 编辑
/etc/neutron/metadata_agent.ini
文件,配置如下参数
[DEFAULT]
nova_metadata_host = controller-01
metadata_proxy_shared_secret = metadata # METADATA_SECRET自定义设置为metadata
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/metadata_agent.ini
配置计算服务使用网络服务
- 编辑
/etc/nova/nova.conf
文件,配置如下参数
[neutron]
url = http://controller-01:9696
auth_url = http://controller-01:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron
service_metadata_proxy = true
metadata_proxy_shared_secret = metadata
- 检查配置的参数
egrep -v "^$|^#" /etc/nova/nova.conf
最后安装
- 启动ovs服务并设置自启动
systemctl enable openvswitch
sysetmctl start openvswitch
- 添加网桥
输入ovs-vsctl相关命令出现报错
net_mlx5: cannot load glue library: libibverbs.so.1: cannot open shared object file: No such file or directory
net_mlx5: cannot initialize PMD due to missing run-time dependency on rdma-core libraries (libibverbs, libmlx5)
PMD: net_mlx4: cannot load glue library: libibverbs.so.1: cannot open shared object file: No such file or directory
PMD: net_mlx4: cannot initialize PMD due to missing run-time dependency on rdma-core libraries (libibverbs, libmlx4)
ovs-vsctl: missing command name (use --help for help)
执行安装如下包
yum install libibverbs
继续添加网桥
ovs-vsctl add-br br-provider
- 添加端口
ovs-vsctl add-port br-provider enp0s8
- 查看网桥、端口信息
[root@controller-01 ~]# ovs-vsctl show
f01e1351-3da7-4c51-9cdc-9c064aa256b9
Bridge br-provider
Port "enp0s8"
Interface "enp0s8"
Port br-provider
Interface br-provider
type: internal
ovs_version: "2.11.0"
- 创建网络插件的链接,初始化网络的脚本插件会用到
/etc/neutron/plugin.ini
,需要使用ML2的插件进行提供
ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
- 同步数据库
su -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
- 重启计算API服务
systemctl restart openstack-nova-api.service
- 启动并设置开机自启动服务
systemctl enable neutron-server.service neutron-openvswitch-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service
systemctl start neutron-server.service neutron-openvswitch-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service
systemctl enable neutron-l3-agent.service
systemctl start neutron-l3-agent.service
控制节点openvswitch
网络到此结束。
计算节点
安装组件(linuxbridge)
yum install openstack-neutron-linuxbridge ebtables ipset
配置公共组件
- 编辑
/etc/neutron/neutron.conf
文件,修改如下配置参数- 在[database]部分,注释掉任何connection选项,因为计算节点不需要访问数据库
[DEFAULT]
transport_url = rabbit://openstack:openstack@controller-01
auth_strategy = keystone
[keystone_authtoken]
auth_uri = http://controller-01:5000
auth_url = http://controller-01:35357
memcached_servers = controller-01:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = neutron
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
- 计算节点网络选项保持跟控制节点一样,这里选择选项2自助服务网络
配置linuxbridge代理
- 编辑
/etc/neutron/plugins/ml2/linuxbridge_agent.ini
文件,修改如下配置参数
[linux_bridge]
physical_interface_mappings = provider:enp0s8 # 将提供者虚拟网络映射到提供者物理网络接口主机网卡二(enp0s8)
[vxlan]
enable_vxlan = true
local_ip = 10.0.0.11 # 填写主机网卡二(enpp0s8) 上绑定的IP
l2_population = true
[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
- 检查系统是否支持桥接模式防火墙,在启动neutron-linuxbridge-agent.service的时候会自动设置为1,结果显示1为开启
sysctl net.bridge.bridge-nf-call-iptables
sysctl net.bridge.bridge-nf-call-ip6tables
执行报错提示
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-ip6tables: No such file or directory
- 尝试启用br_netfilter模块,再次执行上面命令
modprobe br_netfilter
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/plugins/ml2/linuxbridge_agent.ini
配置计算服务使用网络服务
- 编辑
/etc/nova/nova.conf
文件,修改如下配置参数
[neutron]
url = http://controller-01:9696
auth_url = http://controller-01:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron
计算节点linuxbridge
网络到此结束。
安装组件(openvswitch)
yum install openstack-neutron-openvswitch ebtables ipset
配置公共组件
- 编辑
/etc/neutron/neutron.conf
文件,修改如下配置参数- 在[database]部分,注释掉任何connection选项,因为计算节点不需要访问数据库
[DEFAULT]
transport_url = rabbit://openstack:openstack@controller-01
auth_strategy = keystone
[keystone_authtoken]
auth_uri = http://controller-01:5000
auth_url = http://controller-01:35357
memcached_servers = controller-01:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = neutron
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
- 计算节点网络选项保持跟控制节点一样,这里选择选项2自助服务网络
配置openvswitch代理
- 编辑
/etc/neutron/plugins/ml2/openvswitch_agent.ini
文件,修改如下配置参数
[ovs]
local_ip = 10.0.0.11 # 填写主机隧道网网卡二(enpp0s8) 上绑定的IP
[agent]
tunnel_types = vxlan
l2_population = true
[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
- 检查系统是否支持桥接模式防火墙,在启动neutron-openvswitch-agent.service的时候会自动设置为1,结果显示1为开启
sysctl net.bridge.bridge-nf-call-iptables
sysctl net.bridge.bridge-nf-call-ip6tables
执行报错提示
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-ip6tables: No such file or directory
- 尝试启用br_netfilter模块,再次执行上面命令
modprobe br_netfilter
- 检查配置的参数
egrep -v "^$|^#" /etc/neutron/plugins/ml2/openvswitch_agent.ini
配置计算服务使用网络服务
- 编辑
/etc/nova/nova.conf
文件,修改如下配置参数
[neutron]
url = http://controller-01:9696
auth_url = http://controller-01:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron
计算节点openvswitch
网络到此结束。
最后安装
- 重启计算服务
systemctl restart openstack-nova-compute.service
- 启动并设置开机自启动服务
– linuxbridge网络
systemctl enable neutron-linuxbridge-agent.service
systemctl start neutron-linuxbridge-agent.service
- openvswitch网络
systemctl enable neutron-openvswitch-agent.service
systemctl start neutron-openvswitch-agent.service
验证操作(控制节点)
- 加载环境变量
. keystonerc_admin
- 列表查看加载的网络插件
openstack extension list --network
- 列表查看网络代理
– linuxbridge网络
[root@controller-01 ~]# openstack network agent list
+--------------------------------------+--------------------+---------------+-------------------+-------+-------+---------------------------+
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+--------------------------------------+--------------------+---------------+-------------------+-------+-------+---------------------------+
| 49bb42f3-c74c-449b-81bd-9db84615e959 | DHCP agent | controller-01 | nova | :-) | UP | neutron-dhcp-agent |
| 9182f70b-c79b-4c7f-a56f-f817e74834e2 | L3 agent | controller-01 | nova | :-) | UP | neutron-l3-agent |
| 99ba4531-5507-4a92-8286-04cd9d4f5ddb | Metadata agent | controller-01 | None | :-) | UP | neutron-metadata-agent |
| f3645c9b-5be5-4319-a78f-69f1a6cf0ee2 | Linux bridge agent | controller-01 | None | :-) | UP | neutron-linuxbridge-agent |
| fcc589e2-6a4b-4636-905d-8b0bb12a1d77 | Linux bridge agent | compute-01 | None | :-) | UP | neutron-linuxbridge-agent |
+--------------------------------------+--------------------+---------------+-------------------+-------+-------+---------------------------+
- openvswitch网络
[root@controller-01 ~]# openstack network agent list
+--------------------------------------+--------------------+---------------+-------------------+-------+-------+---------------------------+
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+--------------------------------------+--------------------+---------------+-------------------+-------+-------+---------------------------+
| 213175cd-3dfe-4be9-887e-c424157ee1db | Open vSwitch agent | controller-01 | None | :-) | UP | neutron-openvswitch-agent |
| 475b88a9-d3a6-426a-a0f6-f355e80dc1a2 | DHCP agent | controller-01 | nova | :-) | UP | neutron-dhcp-agent |
| 7b0d5e81-bd42-4503-8fa2-4184887f71a4 | Metadata agent | controller-01 | None | :-) | UP | neutron-metadata-agent |
| 86064bf2-642b-4751-b658-b75f3bb627c2 | L3 agent | controller-01 | nova | :-) | UP | neutron-l3-agent |
| 9276965f-d2b7-4f23-8d7e-52a6ff3c9c5e | Open vSwitch agent | compute-01 | None | :-) | UP | neutron-openvswitch-agent |
+--------------------------------------+--------------------+---------------+-------------------+-------+-------+---------------------------+
验证看到4个控制节点服务,1个计算节点服务,状态显示“:)”和UP正常
参考文档
https://docs.openstack.org
https://www.de009.top/neutron-configuration-openvswitch.html