neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [ - ]物理网络提供商的接口不存在

时间:2017-12-07 15:12:09

标签: openstack openstack-neutron

我在一台服务器上安装控制器节点和计算节点。当我安装计算服务时:

我使用neutron agent-list不显示任何内容:

[root@controller ~]# neutron agent-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.

我也尝试过使用openstack network agent list,但仍然没有显示任何内容。

我查看/var/log/neutron/linuxbridge-agent.log,找到它说Interface ifcfg-enp2s0f0 for physical network provider does not exist.

vim /var/log/neutron/linuxbridge-agent.log

2017-12-07 23:04:08.374 12766 INFO neutron.common.config [-] Logging enabled!
2017-12-07 23:04:08.375 12766 INFO neutron.common.config [-] /usr/bin/neutron-linuxbridge-agent version 10.0.0
2017-12-07 23:04:08.375 12766 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Interface mappings: {'provider': 'ifcfg-enp2s0f0'}
2017-12-07 23:04:08.375 12766 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Bridge mappings: {}
2017-12-07 23:04:08.382 12766 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Interface ifcfg-enp2s0f0 for physical network provider does not exist. Agent terminated!

我使用vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini检查我的linuxbridge_agent.ini:

[linux_bridge]
physical_interface_mappings = provider:ifcfg-enp2s0f0

[securitygroup]
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

[vxlan]
enable_vxlan = True
local_ip = 10.1.1.120
l2_population = True

但是在我的/etc/sysconfig/network-scripts/中,我有ifcfg-enp2s0f0ifcfg-enp2s0f1个网络接口。

ifcfg-enp2s0f0

TYPE="Ethernet"
BOOTPROTO="static"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="no"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="enp2s0f0"
UUID="2748d036-2377-4d8d-9753-52873fe03d3d"
DEVICE="enp2s0f0"
ONBOOT="yes"
IPADDR="100.35.202.1"
PREFIX="29"
IPADDR1="100.35.202.2"
PREFIX1="29"
IPADDR2="100.35.202.3"
PREFIX2="29"
IPADDR3="100.35.202.4"
PREFIX3="29"
IPADDR4="100.35.202.5"
PREFIX4="29"
GATEWAY="100.35.202.6"
DNS1="8.8.8.8"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_PRIVACY="no"

ifcfg-enp2s0f1

TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp2s0f1
UUID=098161a9-4bae-4ff2-a768-eeaada509507
DEVICE=enp2s0f1
ONBOOT=yes
IPADDR=10.1.1.120
NETMASK=255.255.255.0
~               

我不知道问题是什么,有些朋友可以帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

感谢Bernd Bausch,他告诉我问题是:

physical_interface_mappings = provider:ifcfg-enp2s0f0

我的网络接口名称是enp2s0f0,而不是ifcfg-enp2s0f0