您好,我正在尝试在 18.4 ubuntu 机器上运行 openstack,但遇到了以下错误。
2020-03-04 09:12:52,823 - microstack_init - INFO - Creating service project ...
Traceback (most recent call last):
File "/snap/microstack/196/bin/microstack_init", line 11, in <module>
load_entry_point('microstack-init==0.0.1', 'console_scripts', 'microstack_init')()
File "/snap/microstack/196/lib/python3.6/site-packages/init/main.py", line 122, in main
question.ask()
File "/snap/microstack/196/lib/python3.6/site-packages/init/questions/question.py", line 210, in ask
self.yes(awr)
File "/snap/microstack/196/lib/python3.6/site-packages/init/questions/__init__.py", line 373, in yes
'service')
File "/snap/microstack/196/lib/python3.6/site-packages/init/shell.py", line 68, in check
raise subprocess.CalledProcessError(proc.returncode, " ".join(args))
subprocess.CalledProcessError: Command 'openstack project create --domain default --description Service Project service' returned non-zero exit status 1.
答案1
我讨厌尝试找到这个问题的解决方案。我也遇到了错误。你相信吗,只需要 1 段代码。
sudo systemctl restart snap.microstack.*
应该可以。希望这能有所帮助。我猜你在完成初始初始化后关闭了电脑。基本上,执行此操作后服务会停止,你需要重新启动它。