我在虚拟机 Centos7 中安装 openstack 时遇到了问题
错误是:
[root@localhost ~(keystone_admin)]# rally deployment create --fromenv --name=existing
Command failed, please check log for more info
2019-09-02 01:58:54.144 17869 CRITICAL rally [-] ImportError: cannot import name VariableManager
2019-09-02 01:58:54.144 17869 ERROR rally Traceback (most recent call last):
2019-09-02 01:58:54.144 17869 ERROR rally File "/usr/bin/rally", line 10, in <module>
2019-09-02 01:58:54.144 17869 ERROR rally sys.exit(main())
2019-09-02 01:58:54.144 17869 ERROR rally File "/usr/lib/python2.7/site-packages/rally/cli/main.py", line 38, in main
2019-09-02 01:58:54.144 17869 ERROR rally return cliutils.run(sys.argv, categories)
2019-09-02 01:58:54.144 17869 ERROR rally File "/usr/lib/python2.7/site-packages/rally/cli/cliutils.py", line 661, in run
2019-09-02 01:58:54.144 17869 ERROR rally ret = fn(*fn_args, **fn_kwargs)
2019-09-02 01:58:54.144 17869 ERROR rally File "<string>", line 2, in create
2019-09-02 01:58:54.144 17869 ERROR rally File "/usr/lib/python2.7/site-packages/rally/plugins/__init__.py", line 42, in ensure_plugins_are_loaded
2019-09-02 01:58:54.144 17869 ERROR rally load()
2019-09-02 01:58:54.144 17869 ERROR rally File "/usr/lib/python2.7/site-packages/rally/plugins/__init__.py", line 32, in load
2019-09-02 01:58:54.144 17869 ERROR rally discover.import_modules_from_package("rally.plugins")
2019-09-02 01:58:54.144 17869 ERROR rally File "/usr/lib/python2.7/site-packages/rally/common/plugin/discover.py", line 60, in import_modules_from_package
2019-09-02 01:58:54.144 17869 ERROR rally module_name)
2019-09-02 01:58:54.144 17869 ERROR rally File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 73, in import_module
2019-09-02 01:58:54.144 17869 ERROR rally __import__(import_str)
2019-09-02 01:58:54.144 17869 ERROR rally File "/usr/lib/python2.7/site-packages/rally/plugins/openstack/hook/fault_injection.py", line 16, in <module>
2019-09-02 01:58:54.144 17869 ERROR rally import os_faults
2019-09-02 01:58:54.144 17869 ERROR rally File "/usr/lib/python2.7/site-packages/os_faults/__init__.py", line 21, in <module>
2019-09-02 01:58:54.144 17869 ERROR rally from os_faults.ansible import executor
2019-09-02 01:58:54.144 17869 ERROR rally File "/usr/lib/python2.7/site-packages/os_faults/ansible/executor.py", line 24, in <module>
2019-09-02 01:58:54.144 17869 ERROR rally from ansible.vars import VariableManager
2019-09-02 01:58:54.144 17869 ERROR rally ImportError: cannot import name VariableManager
2019-09-02 01:58:54.144 17869 ERROR rally
我在网上搜索过,但没有找到解决方案
感谢您的帮助
答案1
进一步检查您是否安装了“python-octaviaclient”包此外,您是否尝试过:“rally db recreate”
答案2
看起来你即将使用 rally 0.9.1,因此请升级你的 ansible 版本。例如pip install ansible==2.3