首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >场景:代理状态:错误详细信息:钩子失败.为什么?

场景:代理状态:错误详细信息:钩子失败.为什么?
EN

Ask Ubuntu用户
提问于 2015-04-07 21:37:29
回答 1查看 600关注 0票数 0

我正在8台物理服务器上尝试AutopilotBeta部署OpenStack。我最初有个问题,就是缺少了一个大小属性(谢谢戴尔.不一样)。但是openstack的最新版本已经解决了这个问题。我仍然有一些奇怪的身份验证问题,所以我把我的环境带回到裸金属和重新安装从零。MAAS安装进行得很好,没有问题。我能委托所有的机器。当我尝试执行“openstack”时,它通过juju引导,但在部署过程中失败了。我会把相关的日志放在下面。我把这个环境剥了两次,结果是一样的.所以我是一贯的。我做错了什么?

代码语言:javascript
复制
[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.

补充资料。我看到正在部署到的机器上的横向日志中有以下错误:

代码语言:javascript
复制
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中的两行:

代码语言:javascript
复制
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
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2015-04-08 00:14:19

根据您的日志,许多单位部署得很好,只是-msg/0失败了:

错误 deployer.env:以下单元有错误:\n单元:横向-msg/0:计算机: 0/lxc/3代理状态:错误详细信息:钩子失败:“安装”

如果您能够从引导节点中的/var/log/juju中获得单元横向-msg-0.log文件,这将是非常有帮助的。

您还可以在/var/log/ maas / proxy /上检查maas服务器上的代理日志,看看在通过apt-get获取包时是否出现了随机故障。

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/606511

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档