linux运维之openstack,Linux运维知识之openstack queens 版本 linux bridge起不来的解决办法...

本文主要向大家介绍了Linux运维知识之openstack queens 版本 linux bridge起不来的解决办法,通过具体的内容向大家展现,希望对大家学习Linux运维知识有所帮助。

报错如下:

Apr  3 03:52:48 neutron neutron-linuxbridge-agent: elif tornado and tornado.gen.is_coroutine_function(f):

Apr  3 03:52:48 neutron neutron-linuxbridge-agent: AttributeError: 'module' object has no attribute 'is_coroutine_function'

Apr  3 03:52:48 neutron systemd: neutron-linuxbridge-agent.service: main process exited, code=exited, status=1/FAILURE

Apr  3 03:52:48 neutron systemd: Unit neutron-linuxbridge-agent.service entered failed state.

Apr  3 03:52:48 neutron systemd: neutron-linuxbridge-agent.service failed.

Apr  3 03:52:48 neutron systemd: neutron-linuxbridge-agent.service holdoff time over, scheduling restart.

Apr  3 03:52:48 neutron systemd: Starting OpenStack Neutron Linux Bridge Agent...

Apr  3 03:52:48 neutron neutron-enable-bridge-firewall.sh: net.bridge.bridge-nf-call-iptables = 1

Apr  3 03:52:48 neutron neutron-enable-bridge-firewall.sh: net.bridge.bridge-nf-call-ip6tables = 1

Apr  3 03:52:48 neutron systemd: Started OpenStack Neutron Linux Bridge Agent.

Apr  3 03:52:49 neutron neutron-linuxbridge-agent: Traceback (most recent call last):

Apr  3 03:52:49 neutron neutron-linuxbridge-agent: File "/usr/bin/neutron-linuxbridge-agent", line 6, in

Apr  3 03:52:49 neutron neutron-linuxbridge-agent: from neutron.cmd.eventlet.plugins.linuxbridge_neutron_agent import main

Apr

3 03:52:49 neutron neutron-linuxbridge-agent: File

"/usr/lib/python2.7/site-packages/neutron/cmd/eventlet/plugins/linuxbridge_neutron_agent.py",

line 15, in

Apr  3 03:52:49 neutron neutron-linuxbridge-agent: import \

Apr

3 03:52:49 neutron neutron-linuxbridge-agent: File

"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",

line 47, in

Apr  3 03:52:49 neutron neutron-linuxbridge-agent: from neutron.plugins.ml2.drivers.linuxbridge.agent import arp_protect

Apr

3 03:52:49 neutron neutron-linuxbridge-agent: File

"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/arp_protect.py",

line 229, in

Apr  3 03:52:49 neutron neutron-linuxbridge-agent: def ebtables(comm, table='nat'):

Apr  3 03:52:49 neutron neutron-linuxbridge-agent: File "/usr/lib/python2.7/site-packages/tenacity/init.py", line 98, in wrap

Apr  3 03:52:49 neutron neutron-linuxbridge-agent: elif tornado and tornado.gen.is_coroutine_function(f):

Apr  3 03:52:49 neutron neutron-linuxbridge-agent: AttributeError: 'module' object has no attribute 'is_coroutine_function'

Apr  3 03:52:49 neutron systemd: neutron-linuxbridge-agent.service: main process exited, code=exited, status=1/FAILURE

Apr  3 03:52:49 neutron systemd: Unit neutron-linuxbridge-agent.service entered failed state.

Apr  3 03:52:49 neutron systemd: neutron-linuxbridge-agent.service failed.

现象是 neutron-linuxbridge-agent 不断重启,但是不生产日志文件,最后启动失败,坑了我2天,找到问题

"neutron-linuxbridge-agent: AttributeError: 'module' object has no

attribute 'is_coroutine_function'"

找到/usr/lib/python2.7/site-packages/tenacity/init.py 里面找到这个代码注释掉。

如下:

以前是:

def wrap(f):

if asyncio and asyncio.iscoroutinefunction(f):

r = AsyncRetrying(*dargs, dkw)

elif tornado and tornado.gen.is_coroutine_function(f):

r = TornadoRetrying(*dargs, *dkw)

else:

r = Retrying(dargs, dkw)

return r.wraps(f)    return wrap

改变后:

def wrap(f):

if asyncio and asyncio.iscoroutinefunction(f):

r = AsyncRetrying(*dargs, **dkw)

#elif tornado and tornado.gen.is_coroutine_function(f):

r = TornadoRetrying(*dargs, **dkw)

else:

r = Retrying(*dargs, **dkw)        return r.wraps(f)    return wrap

本文由职坐标整理并发布,希望对同学们有所帮助。了解更多详情请关注系统运维Linux频道!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值