现象是 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):
else:
r = Retrying(*dargs, **dkw)
return r.wraps(f)
return wrap
openstack queens 版本 linux bridge起不来的解决办法
原文地址:http://blog.51cto.com/mrdeng/2094042