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
    from openstackclient.shell import main
  File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 24, in
    from osc_lib import shell
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 33, in
    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
    from openstack.config import exceptions as sdk_exceptions
  File "/usr/lib/python2.7/site-packages/openstack/__init__.py", line 17, in
    import openstack.connection
  File "/usr/lib/python2.7/site-packages/openstack/connection.py", line 188, in
    from openstack.cloud import openstackcloud as _cloud
  File "/usr/lib/python2.7/site-packages/openstack/cloud/openstackcloud.py", line 21, in
    import dogpile.cache
  File "/usr/lib/python2.7/site-packages/dogpile/cache/__init__.py", line 1, in
    from .region import CacheRegion  # noqa
  File "/usr/lib/python2.7/site-packages/dogpile/cache/region.py", line 12, in
    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

你可能感兴趣的:(kolla部署openstack allinone,报错 ImportError: cannot import name decorate)