当我试图使用juju在手动配置机器上部署服务时,我得到了以下错误:
juju deploy juju-gui --show-log
2014-05-20 13:42:31 INFO juju.cmd supercommand.go:302 running juju-1.18.3-unknown-amd64 [gc]
2014-05-20 13:42:31 INFO juju api.go:242 connecting to API addresses [j93716.servers.jiffybox.net:17070]
2014-05-20 13:42:31 INFO juju apiclient.go:114 state/api: dialing "wss://xxx.xxx.net:17070/"
2014-05-20 13:42:31 INFO juju apiclient.go:124 state/api: connection established
Added charm "cs:trusty/juju-gui-2" to the environment.
2014-05-20 13:42:46 ERROR juju.cmd supercommand.go:305 cannot assign unit "juju-gui/0" to machine: cannot assign unit "juju-gui/0" to new machine or container: cannot assign unit "juju-gui/0" to new machine: use "juju add-machine ssh:[user@]<host>" to provision machinesjuju的输出如下:
environment: manual
machines:
"0":
agent-state: started
agent-version: 1.18.3
dns-name: xxx.xxx.xxx.xxx
instance-id: 'manual:'
series: precise
hardware: arch=amd64 cpu-cores=1 mem=1996M
"1":
agent-state: started
agent-version: 1.18.3
dns-name: xxx.xxx.xxx.yyy
instance-id: manual:xxx.xxx.xxx.net
series: precise
hardware: arch=amd64 cpu-cores=1 mem=1996M
services:
juju-gui:
charm: cs:trusty/juju-gui-2
exposed: true
units:
juju-gui/0:
agent-state: pending我错过了什么吗?
发布于 2014-05-20 14:31:55
从juju状态输出判断,您已经引导了一个手动环境(使用juju bootstrap,这与使用juju add-machine ssh:[user@]host完成的手动配置不同)。
手动环境是特殊的--它们只由一台机器组成,它不能自动启动或停止其他机器,包括在juju deploy上。要添加另一台机器,首先使用juju add-machine ssh:[user@]host,然后使用juju deploy juju-gui --to #,其中#是您刚刚添加的机器的juju机器id (运行juju status查看它)。您还可以使用juju deploy juju-gui --to 0在引导计算机上部署Juju。
juju add-machine ssh:[user@]host可以在任何引导环境中使用,手动提供外部机器并将其添加到环境中。但是,使用手动引导环境,这是添加机器的唯一方法,在部署时,您必须使用--to <machine-id>显式指定服务和单位的位置。
我希望这能消除任何混乱。我想我们肯定需要更好的文件。
https://askubuntu.com/questions/469618
复制相似问题