kolla部署openstack allinone,报错 ImportError: cannot import name decorate

使用 kolla-ansible 部署 opnenstack:stein,最后无法导入变量脚本,报错信息如下:

[root@kolla ~]# . /etc/kolla/admin-openrc.sh
[root@kolla ~]# /usr/share/kolla-ansible/init-runonce
Traceback (most recent call last):
  File "/usr/bin/openstack", line 5, in <module>
    from openstackclient.shell import main
  File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 24, in <module>
    from osc_lib import shell
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 33, in <module>
    from osc_lib.cli import client_config as cloud_config
  File "/usr/lib/python2.7/site-packages/osc_lib/cli/client_config.py", line 18, in <module>
    from openstack.config import exceptions as sdk_exceptions
  File "/usr/lib/python2.7/site-packages/openstack/__init__.py", line 17, in <module>
    import openstack.connection
  File "/usr/lib/python2.7/site-packages/openstack/connection.py", line 188, in <module>
    from openstack.cloud import openstackcloud as _cloud
  File "/usr/lib/python2.7/site-packages/openstack/cloud/openstackcloud.py", line 21, in <module>
    import dogpile.cache
  File "/usr/lib/python2.7/site-packages/dogpile/cache/__init__.py", line 1, in <module>
    from .region import CacheRegion  # noqa
  File "/usr/lib/python2.7/site-packages/dogpile/cache/region.py", line 12, in <module>
    from decorator import decorate
ImportError: cannot import name decorate

解决方法:

sed -i '/^from decorator import decorate/s/from/#from/' /usr/lib/python2.7/site-packages/dogpile/cache/region.py
posted @ 2019-12-17 15:33  chili7  阅读(867)  评论(0编辑  收藏  举报