AttributeError:模块“openstack.proxy”没有属性“Proxy”

AttributeError:模块“openstack.proxy”没有属性“Proxy”

我在 openSUSE 15.2 上运行 Ussuri 安装。根据官方安装指南,Keystone、Glance 和 Placemente 运行正常,没有任何大问题。但是,当我尝试使用 nova-manage 运行任何命令时,我收到以下消息:

AttributeError: module 'openstack.proxy' has no attribute 'Proxy'

该消息出现在每个带有“nova-manage”的命令中。特别是,我正在执行以下步骤:

填充 nova-api 数据库:

根据官方指南,命令是:

su -s /bin/sh -c "nova-manage api_db sync" nova

每个日志都有该错误,即使是 journalctl -xe 也试图在未填充数据库的情况下启动服务。

其他服务运行良好。

完整日志为:

Traceback (most recent call last):
  File "/usr/bin/nova-manage", line 6, in <module>
    from nova.cmd.manage import main
  File "/usr/lib/python3.6/site-packages/nova/cmd/manage.py", line 48, in <module>
    from nova.cmd import common as cmd_common
  File "/usr/lib/python3.6/site-packages/nova/cmd/common.py", line 32, in <module>
    from nova import utils
  File "/usr/lib/python3.6/site-packages/nova/utils.py", line 35, in <module>
    from openstack import connection
  File "/usr/lib/python3.6/site-packages/openstack/__init__.py", line 22, in <module>
    import openstack.connection
  File "/usr/lib/python3.6/site-packages/openstack/connection.py", line 213, in <module>
    class Connection(six.with_metaclass(_meta.ConnectionMeta)):
  File "/usr/lib/python3.6/site-packages/six.py", line 856, in __new__
    return meta(name, resolved_bases, d)
  File "/usr/lib/python3.6/site-packages/openstack/_meta.py", line 47, in __new__
    service_filter_class = _find_service_filter_class(service_type)
  File "/usr/lib/python3.6/site-packages/openstack/_meta.py", line 113, in _find_service_filter_class
    service_filter_module = importlib.import_module(import_name)
  File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3.6/site-packages/openstack/baremetal_introspection/baremetal_introspection_service.py", line 14, in <module>
    from openstack.baremetal_introspection.v1 import _proxy
  File "/usr/lib/python3.6/site-packages/openstack/baremetal_introspection/v1/_proxy.py", line 23, in <module>
    class Proxy(proxy.Proxy):
AttributeError: module 'openstack.proxy' has no attribute 'Proxy'

相关内容