Juju bootstrap 错误“没有可用的匹配工具”

Juju bootstrap 错误“没有可用的匹配工具”

系统规格:Ubuntu 15.10,maas 1.25

juju bootstrap 返回以下错误:

INFO juju.environs.bootstrap tools.go:77 looking for bootstrap tools: version=<nil>
ERROR juju.cmd supercommand.go:429 failed to bootstrap environment: no matching tools available

这是“ dpkg -l | grep juju ”:

ii  juju                                                 1.25.5-    ubuntu1~15.10.2~juju1              all          next generation service orchestration system
ii  juju-core                                            1.25.5-0ubuntu1~15.10.2~juju1              amd64        Juju is devops distilled - client
ii  juju-quickstart                                      2.2.4+bzr147+ppa42~ubuntu15.10.1           all          Easy configuration of Juju environments
ii  python-jujubundlelib                                 0.4.1-1~ubuntu15.10.1~ppa1                 all          A Python2 library for working with Juju bundles.
ii  python-jujuclient                                    0.50.3-1~ubuntu15.10.1~ppa1                amd64        Python API client for juju-c

以下是“juju bootstrap--上传工具--调试

2016-05-25 20:53:33 INFO juju.cmd supercommand.go:37 running juju [1.25.5-wily-amd64 gc]
2016-05-25 20:53:33 WARNING juju.environs config.go:168 Config attribute "tools-metadata-url" (https://streams.canonical.com/juju/tools/streams/v1/index2.sjson) is deprecated.
It is replaced by "agent-metadata-url" attribute.
Your configuration should be updated to set "agent-metadata-url" as follows
agent-metadata-url:   https://streams.canonical.com/juju/tools/streams/v1/index2.sjson.
2016-05-25 20:53:33 WARNING juju.environs config.go:168 Config attribute "tools-metadata-url"    (https://streams.canonical.com/juju/tools/streams/v1/index2.sjson) is deprecated.
It is replaced by "agent-metadata-url" attribute.
Your configuration should be updated to set "agent-metadata-url" as follows
agent-metadata-url: https://streams.canonical.com/juju/tools/streams/v1/index2.sjson.
2016-05-25 20:53:33 DEBUG juju.provider.maas environprovider.go:28 opening environment "maas".
2016-05-25 20:53:33 WARNING juju.environs.config config.go:1430 unknown config field "metadata-source"
2016-05-25 20:53:33 WARNING juju.environs.config config.go:1430 unknown config field "metadata-source"
2016-05-25 20:53:34 DEBUG juju.environs.configstore disk.go:351 writing jenv file
2016-05-25 20:53:34 DEBUG juju.environs.configstore disk.go:475 writing jenv file to /home/rastin/.juju/environments/maas.jenv
2016-05-25 20:53:34 INFO juju.network network.go:242 setting prefer-ipv6 to false
2016-05-25 20:53:34 INFO juju.cmd cmd.go:129 Bootstrapping environment "maas"
2016-05-25 20:53:34 DEBUG juju.environs.bootstrap bootstrap.go:103 environment "maas" supports service/machine networks: true
2016-05-25 20:53:34 DEBUG juju.environs.bootstrap bootstrap.go:105 network management by juju enabled: true
2016-05-25 20:53:34 WARNING juju.environs.config config.go:1430 unknown config field "metadata-source"
2016-05-25 20:53:34 WARNING juju.environs.config config.go:1430 unknown config field "metadata-source"
2016-05-25 20:53:34 INFO juju.cmd cmd.go:129 Starting new instance for initial state server
2016-05-25 20:53:34 INFO juju.provider.maas environ.go:137 address allocation feature disabled; using "juju-br0" bridge for all containers
2016-05-25 20:53:34 DEBUG juju.cmd.juju common.go:102 Destroying environment.
2016-05-25 20:53:34 INFO juju.cmd cmd.go:129 Bootstrap failed, destroying environment
2016-05-25 20:53:34 INFO juju.provider.common destroy.go:22 destroying environment "maas"
2016-05-25 20:53:34 INFO juju.provider.common destroy.go:33 destroying instances
2016-05-25 20:53:34 INFO juju.provider.common destroy.go:53 destroying storage
2016-05-25 20:53:34 ERROR juju.cmd supercommand.go:429 failed to bootstrap environment: no matching tools available

可能是因为 UBUNTU 15.10?!

我修复了错误:

刚刚清除了所有 juju 包并安装了 juju-core (1.25.5),它传递了那个错误!

现在我有另一个错误:

DEBUG juju.provider.maas volumes.go:217 acquire maas node: missing volume label for id "4"
ERROR juju.cmd supercommand.go:429 failed to bootstrap environment: bootstrap instance started but did not change to Deployed state: instance "/MAAS/api/1.0/nodes/node-044f771c-2200-11e6-936a-001372564120/" is started but not deployed

似乎最新的错误是因为引导超时其中定义〜/ .juju / environment.yaml,导致引导超时。

我将超时设置为一个较大的数字,在节点上安装和下载所有包后,结果如下:

ERROR juju.cmd supercommand.go:429 failed to bootstrap environment: subprocess encountered error code 1

我删除了该节点并重新启动它,我的 MAAS 版本是 1.9.3。
我是否需要使用 root 权限引导节点? 答案是不!。

最后 我找到了导致最新错误的原因,它是 environment.yaml 文件中 no-proxy 定义中的“,”后面的一些空格。

答案1

juju bootstrap --upload-tools

这会将一组正确的工具上传到您的引导节点。

答案2

1)刚刚清除了所有 juju 包并安装了 juju-core(1.25.5)

2)我在 juju environment.yaml 中将超时设置为一个大数字

3)我删除了该节点并重新启动它(MAAS 版本是 1.9.3)

4)我在 juju environment.yaml 中添加了 no-proxy:“列出 ip 和您的本地网络”

5)我在 juju environment.yaml 文件中的 no-proxy 定义中替换了“,”后面的空格



Bootstrap 完成,没有错误!

答案3

你可能会遇到错误 #1517632发行版信息过时可能会导致“没有匹配的工具”错误(请参阅评论#15了解更多信息)。尝试更新 distro-info-data 包并查看是否可以引导。

相关内容