Juju 引导环境失败

Juju 引导环境失败

我在部署我的第一个 juju 环境“maas”时遇到了问题。主机由 MAAS 委托,但在 juju 部署期间出现此错误:

Setting up libtcmalloc-minimal4 (2.1-2ubuntu1) ...
Setting up libgoogle-perftools4 (2.1-2ubuntu1) ...
Setting up libsnappy1 (1.1.0-1ubuntu1) ...
Setting up juju-mongodb (2.4.9-0ubuntu3) ...
Processing triggers for libc-bin (2.19-0ubuntu6.1) ...
curl: (22) The requested URL returned error: 503 Service Unavailable tools from http://172.19.202.71/MAAS/api/1.0/files/?key=0b492b0c-2ce4-11e4-9494-525400f28eaf&op=get_by_key
downloaded: HTTP 503; time 74.994s; size 0 bytes; speed 0.000 bytes/s
2014-08-26 06:00:43 ERROR juju.provider.common bootstrap.go:123 bootstrap
failed: rc: 1
Stopping instance...
2014-08-26 06:00:43 INFO juju.cmd cmd.go:113 Bootstrap failed, destroying environment
2014-08-26 06:00:43 INFO juju.provider.common destroy.go:14 destroying environment "maas"
2014-08-26 06:00:44 ERROR juju.cmd supercommand.go:300 rc: 1

我在 KVM 环境中使用 Ubuntu 14.04。

我的 environment.yaml 如下所示:

environments:
  maas:
    type: maas
    maas-server: 'http://172.19.202.71/MAAS'
    maas-oauth: 'ZJ9GLGqSVSWdZ6eXET:AjCdJRwgS26jsBwHp8:gpwhCLf6P2AJCh3mcGL2vRqhbSvkwRGB'
    admin-secret: 'MY-PASSWORD'
    default-series: trusty
    http-proxy: http://172.19.202.70:8000
    https-proxy: https://172.19.202.70:8000
    no-proxy: localhost,172.19.202.0/24
    bootstrap-timeout: 1800

有人知道这个问题吗?

问候

答案1

您的no-proxy设置格式不正确。它应该是逗号分隔的 IP 地址列表,而不是 CIDR 范围。请查看此相关问题:https://unix.stackexchange.com/questions/23452/set-a-network-range-in-the-no-proxy-environment-variable

我建议您no-proxy: 127.0.0.1,172.19.202.71改为设置并重试。如果不起作用,请更新问题并可能针对 juju-core 提交错误:https://bugs.launchpad.net/juju-core

相关内容