我正在尝试在 8 台物理服务器上部署 OpenStack 的 AutopilotBeta。我最初遇到了缺少大小属性的问题(感谢戴尔与众不同)。但最新版本的 openstack-install 已经解决了这个问题。我仍然遇到一些奇怪的身份验证问题,所以我将我的环境恢复为裸机并从头开始重新安装。MAAS 安装进展顺利,没有问题。我能够调试所有机器。当我尝试执行“openstack-install”时,它通过了 juju 引导,但在景观部署期间失败。我将在下面放置相关日志。我两次将此环境剥离为裸机,结果相同……所以我是一致的。我做错了什么?
[DEBUG • 04-07 13:35:28] • cloudinstall.multi_install • (multi_install.py, do_install, 173)]
Finished MAAS step, now deploying Landscape.
[ERROR • 04-07 13:44:18] • cloudinstall.multi_install • (multi_install.py, run_deployer, 770)]
Problem deploying Landscape: {'output': '2015-04-07 13:35:44
[DEBUG] deployer.cli: Using runtime GoEnvironment on maas\n2015-04-07 13:35:44
[INFO] deployer.cli: Starting deployment of landscape-dense-maas\n2015-04-07 13:35:44
[DEBUG] deployer.import: Getting charms...\n2015-04-07 13:35:44
[DEBUG] deployer.charm: Cache dir /home/peugenis/.cloud-install/juju/.deployer-store-cache/cs_trusty_haproxy-4\n2015-04-07 13:35:44
[DEBUG] deployer.charm: Retrieving store charm cs:trusty/haproxy-4\n2015-04-07 13:35:51
[DEBUG] deployer.charm: Cache dir /home/peugenis/.cloud-install/juju/.deployer-store-cache/cs_trusty_rabbitmq-server-26\n2015-04-07 13:35:51
[DEBUG] deployer.charm: Retrieving store charm cs:trusty/rabbitmq-server-26\n2015-04-07 13:35:57
[DEBUG] deployer.charm: Cache dir /home/peugenis/.cloud-install/juju/.deployer-store-cache/cs_trusty_postgresql-15\n2015-04-07 13:35:57
[DEBUG] deployer.charm: Retrieving store charm cs:trusty/postgresql-15\n2015-04-07 13:36:04
[DEBUG] deployer.charm: Cache dir /home/peugenis/.cloud-install/juju/.deployer-store-cache/cs_trusty_landscape-server\n2015-04-07 13:36:09
[DEBUG] deployer.charm: Retrieving store charm cs:trusty/landscape-server-8\n2015-04-07 13:36:15
[DEBUG] deployer.charm: Cache dir /home/peugenis/.cloud-install/juju/.deployer-store-cache/cs_trusty_landscape-server\n2015-04-07 13:36:15
[DEBUG] deployer.charm: Cache dir /home/peugenis/.cloud-install/juju/.deployer-store-cache/cs_trusty_apache2-10\n2015-04-07 13:36:15
[DEBUG] deployer.charm: Retrieving store charm cs:trusty/apache2-10\n2015-04-07 13:36:22
[DEBUG] deployer.deploy: Resolving configuration\n2015-04-07 13:36:22
[DEBUG] deployer.env: Connecting to environment...\n2015-04-07 13:36:22
[DEBUG] deployer.env: Connected to environment\n2015-04-07 13:36:22
[INFO] deployer.import: Deploying services...\n2015-04-07 13:36:22
[DEBUG] deployer.import: <deployer.env.go.GoEnvironment object at 0x7f32ce001c10>\n2015-04-07 13:36:23
[INFO] deployer.import: Deploying service apache2 using cs:trusty/apache2-10\n2015-04-07 13:36:23
[DEBUG] deployer.import: Refetching status for placement deploys\n2015-04-07 13:36:44
[DEBUG] deployer.import: Setting annotations\n2015-04-07 13:36:44
[INFO] deployer.import: Deploying service haproxy using cs:trusty/haproxy-4\n2015-04-07 13:37:00
[DEBUG] deployer.import: Setting annotations\n2015-04-07 13:37:00
[INFO] deployer.import: Deploying service landscape using cs:trusty/landscape-server\n2015-04-07 13:37:22
[DEBUG] deployer.import: Setting annotations\n2015-04-07 13:37:23
[INFO] deployer.import: Deploying service landscape-msg using cs:trusty/landscape-server\n2015-04-07 13:37:41
[DEBUG] deployer.import: Setting annotations\n2015-04-07 13:37:42
[INFO] deployer.import: Deploying service postgresql using cs:trusty/postgresql-15\n2015-04-07 13:37:58
[DEBUG] deployer.import: Setting annotations\n2015-04-07 13:37:58
[INFO] deployer.import: Deploying service rabbitmq-server using cs:trusty/rabbitmq-server-26\n2015-04-07 13:38:14
[DEBUG] deployer.import: Setting annotations\n2015-04-07 13:38:20
[DEBUG] deployer.import: Adding units...\n2015-04-07 13:38:20
[DEBUG] deployer.import: Service \'apache2\' does not need any more units added.\n2015-04-07 13:38:20
[DEBUG] deployer.import: Service \'haproxy\' does not need any more units added.\n2015-04-07 13:38:20
[DEBUG] deployer.import: Service \'landscape\' does not need any more units added.\n2015-04-07 13:38:20
[DEBUG] deployer.import: Service \'landscape-msg\' does not need any more units added.\n2015-04-07 13:38:20
[DEBUG] deployer.import: Service \'postgresql\' does not need any more units added.\n2015-04-07 13:38:20
[DEBUG] deployer.import: Service \'rabbitmq-server\' does not need any more units added.\n2015-04-07 13:38:20
[DEBUG] deployer.import: Waiting for units before adding relations\n2015-04-07 13:40:02
[DEBUG] deployer.env: Delta machine: 0/lxc/0 change:pending\n2015-04-07 13:40:12
[DEBUG] deployer.env: Delta machine: 0/lxc/1 change:pending\n2015-04-07 13:40:22
[DEBUG] deployer.env: Delta machine: 0/lxc/0 change:pending\n2015-04-07 13:40:22
[DEBUG] deployer.env: Delta machine: 0/lxc/0 change:started\n2015-04-07 13:40:22
[DEBUG] deployer.env: Delta unit: apache2/0 change:installing\n2015-04-07 13:40:22
[DEBUG] deployer.env: Delta unit: apache2/0 change:installing\n2015-04-07 13:40:22
[DEBUG] deployer.env: Delta machine: 0/lxc/2 change:pending\n2015-04-07 13:40:32
[DEBUG] deployer.env: Delta machine: 0/lxc/3 change:pending\n2015-04-07 13:40:47
[DEBUG] deployer.env: Delta machine: 0/lxc/4 change:pending\n2015-04-07 13:40:57
[DEBUG] deployer.env: Delta machine: 0/lxc/1 change:pending\n2015-04-07 13:40:57
[DEBUG] deployer.env: Delta machine: 0/lxc/1 change:started\n2015-04-07 13:40:57
[DEBUG] deployer.env: Delta machine: 0/lxc/2 change:pending\n2015-04-07 13:40:57
[DEBUG] deployer.env: Delta unit: haproxy/0 change:installing\n2015-04-07 13:40:57
[DEBUG] deployer.env: Delta machine: 0/lxc/2 change:started\n2015-04-07 13:40:57
[DEBUG] deployer.env: Delta unit: haproxy/0 change:installing\n2015-04-07 13:40:57
[DEBUG] deployer.env: Delta unit: landscape/0 change:installing\n2015-04-07 13:40:57
[DEBUG] deployer.env: Delta unit: landscape/0 change:installing\n2015-04-07 13:40:57
[DEBUG] deployer.env: Delta machine: 0/lxc/3 change:started\n2015-04-07 13:40:57
[DEBUG] deployer.env: Delta unit: landscape-msg/0 change:allocating\n2015-04-07 13:41:02
[DEBUG] deployer.env: Delta machine: 0/lxc/5 change:pending\n2015-04-07 13:41:02
[DEBUG] deployer.env: Delta unit: landscape-msg/0 change:installing\n2015-04-07 13:41:02
[DEBUG] deployer.env: Delta unit: landscape-msg/0 change:installing\n2015-04-07 13:41:12
[DEBUG] deployer.env: Delta machine: 0/lxc/4 change:pending\n2015-04-07 13:41:12
[DEBUG] deployer.env: Delta machine: 0/lxc/4 change:started\n2015-04-07 13:41:13
[DEBUG] deployer.env: Delta unit: postgresql/0 change:installing\n2015-04-07 13:41:13
[DEBUG] deployer.env: Delta unit: apache2/0 change:installing\n2015-04-07 13:41:18
[DEBUG] deployer.env: Delta unit: haproxy/0 change:installing\n2015-04-07 13:41:23
[DEBUG] deployer.env: Delta machine: 0/lxc/5 change:pending\n2015-04-07 13:41:23
[DEBUG] deployer.env: Delta machine: 0/lxc/5 change:started\n2015-04-07 13:41:23
[DEBUG] deployer.env: Delta unit: rabbitmq-server/0 change:allocating\n2015-04-07 13:41:28
[DEBUG] deployer.env: Delta unit: apache2/0 change:started\n2015-04-07 13:41:28
[DEBUG] deployer.env: Delta unit: rabbitmq-server/0 change:installing\n2015-04-07 13:41:28
[DEBUG] deployer.env: Delta unit: rabbitmq-server/0 change:installing\n2015-04-07 13:41:38
[DEBUG] deployer.env: Delta unit: haproxy/0 change:started\n2015-04-07 13:41:58
[DEBUG] deployer.env: Delta unit: postgresql/0 change:installing\n2015-04-07 13:41:58
[DEBUG] deployer.env: Delta unit: postgresql/0 change:installing\n2015-04-07 13:42:08
[DEBUG] deployer.env: Delta unit: postgresql/0 change:started\n2015-04-07 13:42:43
[DEBUG] deployer.env: Delta unit: rabbitmq-server/0 change:installing\n2015-04-07 13:44:18
[DEBUG] deployer.env: Delta unit: landscape-msg/0 change:error\n2015-04-07 13:44:18
[ERROR] deployer.env: The following units had errors:\n unit: landscape-msg/0: machine: 0/lxc/3 agent-state: error details: hook failed: "install"\n2015-04-07 13:44:18
[INFO] deployer.cli: Deployment stopped. run time: 513.42\n', 'status': 1}
[DEBUG • 04-07 13:44:18] • 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.
附加信息。我在部署到的机器的景观日志中看到以下错误:
2015-04-07 20:44:29 INFO unit.landscape/0.install logger.go:40
2015-04-07 20:44:29 INFO unit.landscape/0.install logger.go:40 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/z/zope.browserresource/python-zope.browserresource_3.12.0-0ubuntu1_all.deb 503 Service Unavailable
但是我能够从那台机器获取该文件。
/var/log/maas/proxy/store.log 中与上述内容相关的两行内容:
1428439419.359 RELEASE -1 FFFFFFFF 3C1B6A761DD7EF328EC4C7C7822C849A 503 1428439419 0 -1 text/html 3571/3571 GET http://archive.ubuntu.com/ubuntu/pool/universe/z/zope.browserresource/python-zope.browserresource_3.12.0-0ubuntu1_all.deb
1428439419.367 RELEASE -1 FFFFFFFF 46EC83BBA3477FFD0A0EE9199555EA91 503 1428439419 0 -1 text/html 3571/3571 GET http://archive.ubuntu.com/ubuntu/pool/universe/z/zope.browserresource/python-zope.browserresource_3.12.0-0ubuntu1_all.deb
答案1
根据您的日志,许多单元部署得很好,只是 Landscape-msg/0 失败了:
[错误] deployer.env:以下单元出现错误:\n 单元:landscape-msg/0:机器:0/lxc/3 代理状态:错误详细信息:钩子失败:“安装”
如果您能从引导节点中的 /var/log/juju 获取 unit-landscape-msg-0.log 文件,那将会非常有帮助。
您还可以在 /var/log/maas/proxy/ 检查 maas 服务器上的代理日志,看看通过 apt-get 获取包时是否出现一些随机故障。