景观安装需要很长时间

景观安装需要很长时间

我正在使用 Landscape OpenStack Autopilot 安装 Landscape:

  • 引导 Juju 耗时 233 秒
  • 准备景观:10 秒
  • 部署 Landscape 到目前为止已用了 2620 秒(43 分 40 秒)。

这时间太长了。正常吗?


它刚达到 3000 就出现错误:

来自安装程序日志:

File "/usr/share/openstack/cloudinstall/multi_install.py", line 771, in run_deployer
    raise Exception("Error deploying Landscape.")
Exception: Error deploying Landscape. ) 

日志中有一段内容:

  Service 'rabbitmq-server' does not need any more units added.\n2015-05-21 13:39:58 [DEBUG] deployer.import: Waiting for units before adding relations\n2015-05-21 13:43:32 [DEBUG] deployer.env:  Delta machine: 0/lxc/0 change:pending\n2015-05-21 13:43:52 [DEBUG] deployer.env:  Delta machine: 0/lxc/1 change:pending\n2015-05-21 13:44:12 [DEBUG] deployer.env:  Delta machine: 0/lxc/2 change:pending\n2015-05-21 13:44:32 [DEBUG] deployer.env:  Delta machine: 0/lxc/3 change:pending\n2015-05-21 13:44:52 [DEBUG] deployer.env:  Delta machine: 0/lxc/4 change:pending\n2015-05-21 13:45:12 [DEBUG] deployer.env:  Delta machine: 0/lxc/5 change:pending\n2015-05-21 14:29:30 [DEBUG] deployer.env: Connecting to environment...\n2015-05-21 14:29:32 [DEBUG] deployer.env: Connected to environment\n2015-05-21 14:29:32 [ERROR] deployer.import: Reached deployment timeout.. exiting\n2015-05-21 14:29:32 [INFO] deployer.cli: Deployment stopped. run time: 3015.07\n", 'status': 1}
[DEBUG ⢠05-21 14:29:32] ⢠cloudinstall.utils ⢠(utils.py, global_exchandler, 63)]
   Traceback (most recent call last):
  File "/usr/share/openstack/cloudinstall/utils.py", line 78, in run
    super().run()
  File "/usr/lib/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/share/openstack/cloudinstall/machinewait.py", line 127, in do_continue
    self.installer.do_install()
  File "/usr/share/openstack/cloudinstall/multi_install.py", line 177, in do_install
    self.loop).run()
  File "/usr/share/openstack/cloudinstall/multi_install.py", line 708, in run
    self.deploy_landscape()
  File "/usr/share/openstack/cloudinstall/multi_install.py", line 731, in deploy_landscape
    self.run_deployer()
  File "/usr/share/openstack/cloudinstall/multi_install.py", line 771, in run_deployer
    raise Exception("Error deploying Landscape.")
Exception: Error deploying Landscape.

答案1

看起来 MAAS 节点从未离开过“待定”状态。您可以在 MAAS 中选择一个节点并单击“启动”,看看它是否达到“已部署”状态吗?

我建议配置 juju 以使用 MAAS(https://jujucharms.com/docs/stable/config-maas),然后尝试引导并将简单的 ubuntu charm 部署到所有节点。这是一个很好的飞行前检查。

~/.juju/environments.yaml按照上面链接的说明配置好文件后,接下来就是简单的事情了:

juju bootstrap
juju deploy ubuntu -n N

NMAAS 中的节点数减 1(用于引导)是多少。

相关内容