openstack octavia:Amphora工作程序异常

时间:2018-10-19 01:13:47

标签: openstack openstack-neutron

我正在尝试按照此处的说明运行openstack Octavia

https://docs.openstack.org/octavia/latest/contributor/guides/dev-quick-start.html

启动Octavia-worker时遇到以下异常:

 2018-10-18 19:00:47.765 16044 INFO octavia.controller.queue.consumer [-]   Starting consumer...
 2018-10-18 19:00:49.103 16044 ERROR cotyledon._utils [-] Unhandled exception: ImportError: cannot import name opentype
 2018-10-18 19:00:49.103 16044 ERROR cotyledon._utils Traceback (most recent call last):
 2018-10-18 19:00:49.103 16044 ERROR cotyledon._utils   File "/usr/local/lib/python2.7/dist-packages/cotyledon/_utils.py", line 95, in   exit_on_exception
 2018-10-18 19:00:49.103 16044 ERROR cotyledon._utils     yield
 2018-10-18 19:00:49.103 16044 ERROR cotyledon._utils   File "/usr/local/lib/python2.7/dist-packages/cotyledon/_service.py", line 139, in _run
 2018-10-18 19:00:49.103 16044 ERROR cotyledon._utils     self.run()
 2018-10-18 19:00:49.103 16044 ERROR cotyledon._utils File "/usr/local/lib/python2.7/dist-  packages/octavia/controller/queue/consumer.py", line 41, in run
 2018-10-18 19:00:49.103 16044 ERROR cotyledon._utils     self.endpoints = [endpoint.Endpoint()]
 2018-10-18 19:00:49.103 16044 ERROR cotyledon._utils   File "/usr/local/lib/python2.7/dist-packages/octavia/controller/queue/endpoint.py", line 39, in __init__
 2018-10-18 19:00:49.103 16044 ERROR cotyledon._utils     invoke_on_load=True

我正在将Octavia 1.0.2与openstack pike一起使用。我不确定此导入错误“ opentype”来自何处。缺少什么包裹?感谢您的帮助。

范围

1 个答案:

答案 0 :(得分:0)

以下内容对其进行了修复(为其他可能遇到同一问题的人提供了便利):

BookCode

现在我看到了

pip install --upgrade pyasn1-modules 

我在Octavia.conf中未注释以下内容,从而使该问题消失了

 Unhandled exception: InvalidTarget: A server's target must have topic and server names specified:<Target server=neutron01>
2018-10-18 19:37:06.864 23338 ERROR cotyledon._utils Traceback (most recent call last):
   2018-10-18 19:37:06.864 23338 ERROR cotyledon._utils     File "/usr/local/lib/python2.7/dist-packages/cotyledon/_utils.py", line 95, in    exit_on_exception
2018-10-18 19:37:06.864 23338 ERROR cotyledon._utils     yield

但是如果我知道自己在做什么,那会很好。