红联Linux门户
Linux帮助

openstack启动linuxbridge_agent服务报错

发布时间:2017-04-27 15:22:16来源:linux网站作者:郑子明
openstac计算机点上启动linuxbridge_agent服务服务报错ERROR neutron AttributeError: 'LinuxBridgeNeutronAgentRPC' object has no attribute 'plugin_rpc'
# systemctl restart neutron-linuxbridge-agent.service
2017-04-26 17:11:46.300 45872 INFO neutron.common.config [-] Logging enabled!
2017-04-26 17:11:46.301 45872 INFO neutron.common.config [-] /usr/bin/neutron-linuxbridge-agent version 7.2.0
2017-04-26 17:11:46.301 45872 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Interface mappings: {'physnet1': 'eth0'}
2017-04-26 17:11:46.302 45872 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Bridge mappings: {}
2017-04-26 17:11:46.302 45872 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Agent initialized successfully, now running...
2017-04-26 17:11:50.954 45872 INFO oslo_rootwrap.client [req-449e66f6-dbb1-45f7-9386-742543d38b4b - - - - -] Spawned new rootwrap daemon process with pid=45898
2017-04-26 17:11:51.651 45872 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [req-449e66f6-dbb1-45f7-9386-742543d38b4b - - - - -] RPC agent_id: lb0050563bdc7e
2017-04-26 17:11:51.734 45872 INFO oslo.messaging._drivers.impl_rabbit [req-449e66f6-dbb1-45f7-9386-742543d38b4b - - - - -] Connecting to AMQP server on 192.168.3.199:5672
2017-04-26 17:11:51.768 45872 INFO oslo.messaging._drivers.impl_rabbit [req-449e66f6-dbb1-45f7-9386-742543d38b4b - - - - -] Connected to AMQP server on 192.168.3.199:5672
2017-04-26 17:11:51.871 45872 INFO oslo.messaging._drivers.impl_rabbit [req-449e66f6-dbb1-45f7-9386-742543d38b4b - - - - -] Connecting to AMQP server on 192.168.3.199:5672
2017-04-26 17:11:51.895 45872 INFO oslo.messaging._drivers.impl_rabbit [req-449e66f6-dbb1-45f7-9386-742543d38b4b - - - - -] Connected to AMQP server on 192.168.3.199:5672
2017-04-26 17:11:51.922 45872 INFO oslo.messaging._drivers.impl_rabbit [req-449e66f6-dbb1-45f7-9386-742543d38b4b - - - - -] Connecting to AMQP server on 192.168.3.199:5672
2017-04-26 17:11:51.985 45872 INFO oslo.messaging._drivers.impl_rabbit [req-449e66f6-dbb1-45f7-9386-742543d38b4b - - - - -] Connected to AMQP server on 192.168.3.199:5672
2017-04-26 17:11:52.004 45872 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [req-449e66f6-dbb1-45f7-9386-742543d38b4b - - - - -] LinuxBridge Agent RPC Daemon Started!
2017-04-26 17:11:52.005 45872 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [req-449e66f6-dbb1-45f7-9386-742543d38b4b - - - - -] Agent out of sync with plugin!
2017-04-26 17:11:52.008 45872 INFO oslo.messaging._drivers.impl_rabbit [-] Connecting to AMQP server on 192.168.3.199:5672
2017-04-26 17:11:52.044 45872 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on 192.168.3.199:5672
2017-04-26 17:11:52.052 45872 INFO oslo.messaging._drivers.impl_rabbit [-] Connecting to AMQP server on 192.168.3.199:5672
2017-04-26 17:11:52.070 45872 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on 192.168.3.199:5672
2017-04-26 17:11:52.231 45872 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.arp_protect [req-449e66f6-dbb1-45f7-9386-742543d38b4b - - - - -] Clearing orphaned ARP spoofing entries for devices []
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Failed reporting state!
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent Traceback (most recent call last):
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 941, in _report_state
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     True)
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/rpc.py", line 87, in report_state
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     return method(context, 'report_state', **kwargs)
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 158, in call
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     retry=self.retry)
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 90, in _send
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     timeout=timeout, retry=retry)
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 431, in send
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     retry=retry)
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 420, in _send
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     result = self._waiter.wait(msg_id, timeout)
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 318, in wait
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     message = self.waiters.get(msg_id, timeout=timeout)
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 223, in get
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent     'to message ID %s' % msg_id)
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent MessagingTimeout: Timed out waiting for a reply to message ID dc16d1ec5ae044e8b42b1eea68ee5ac7
2017-04-26 17:12:52.100 45872 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent
2017-04-26 17:12:52.180 45872 WARNING oslo.service.loopingcall [-] Function 'neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent.LinuxBridgeNeutronAgentRPC._report_state' run outlasted interval by 30.17 sec
 
原因:
原来是 {'physnet1': 'eth0'} 找不到,通过ifconfig发现网卡名称是ens33
[root@node2 network-scripts]# ifconfig 
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
inet 192.168.3.200  netmask 255.255.255.0  broadcast 192.168.3.255
inet6 fe80::20c:29ff:fefe:677c  prefixlen 64  scopeid 0x20<link>
ether 00:0c:29:fe:67:7c  txqueuelen 1000  (Ethernet)
RX packets 503886  bytes 161144856 (153.6 MiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 84807  bytes 13543059 (12.9 MiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
inet6 ::1  prefixlen 128  scopeid 0x10<host>
loop  txqueuelen 0  (Local Loopback)
RX packets 29917  bytes 1570911 (1.4 MiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 29917  bytes 1570911 (1.4 MiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
解决办法:
编辑/etc/neutron/plugins/ml2/linuxbridge_agent.ini 
在linux_bridge部分将physical_interface_mappings改为physnet1:ens33,重启neutron-linuxbridge-agent服务即可
[linux_bridge]
...
physical_interface_mappings = physnet1:ens33
 
本文永久更新地址:http://www.linuxdiyf.com/linux/30346.html