[英]Unable to init microstack
I'm trying to install openstack on ubuntu 20.04 server but init fails.我正在尝试在 ubuntu 20.04 服务器上安装 openstack,但 init 失败。 Can someone please explain why this error and any suggestions?
有人可以解释为什么这个错误和任何建议吗?
2022-04-29 12:08:28,706 - microstack_init - INFO - Setting up as a control node.
2022-04-29 12:08:40,467 - microstack_init - INFO - Generating TLS Certificate and Key
2022-04-29 12:08:44,707 - microstack_init - INFO - Configuring networking ...
2022-04-29 12:09:01,841 - microstack_init - INFO - Opening horizon dashboard up to *
2022-04-29 12:09:04,997 - microstack_init - INFO - Waiting for RabbitMQ to start ...
Waiting for 192.168.219.131:5672
2022-04-29 12:09:06,279 - microstack_init - INFO - RabbitMQ started!
2022-04-29 12:09:06,280 - microstack_init - INFO - Configuring RabbitMQ ...
2022-04-29 12:09:09,530 - microstack_init - INFO - RabbitMQ Configured!
2022-04-29 12:09:09,606 - microstack_init - INFO - Waiting for MySQL server to start ...
Waiting for 192.168.219.131:3306
2022-04-29 12:09:10,857 - microstack_init - INFO - Mysql server started! Creating databases ...
2022-04-29 12:09:13,539 - microstack_init - INFO - Configuring Keystone Fernet Keys ...
Traceback (most recent call last):
File "/snap/microstack/245/bin/microstack", line 11, in <module>
load_entry_point('microstack==0.0.1', 'console_scripts', 'microstack')()
File "/snap/microstack/245/lib/python3.8/site-packages/microstack/main.py", line 44, in main
cmd()
File "/snap/microstack/245/lib/python3.8/site-packages/init/main.py", line 60, in wrapper
return func(*args, **kwargs)
File "/snap/microstack/245/lib/python3.8/site-packages/init/main.py", line 228, in init
question.ask()
File "/snap/microstack/245/lib/python3.8/site-packages/init/questions/question.py", line 210, in ask
self.yes(awr)
File "/snap/microstack/245/lib/python3.8/site-packages/init/questions/__init__.py", line 482, in yes
check('snap-openstack', 'launch', 'keystone-manage', 'db_sync')
File "/snap/microstack/245/lib/python3.8/site-packages/init/shell.py", line 69, in check
raise subprocess.CalledProcessError(proc.returncode, " ".join(args))
subprocess.CalledProcessError: Command 'snap-openstack launch keystone-manage db_sync' returned non-zero exit status 1.```
mostly the problem is the required port is used by another process(in use).大多数问题是所需的端口被另一个进程使用(正在使用中)。
#check if the port is in use: #检查端口是否被占用:
sudo lsof -i:[port]
I didn't had lxd installed and solved by running:我没有安装 lxd 并通过运行解决:
sudo snap install lxd && sudo lxd init
After that, just run the following command again and you're done:之后,只需再次运行以下命令即可完成:
sudo microstack init
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.