最后,成功部署了一个 utopic 镜像,请参见MAAS 1.7 如何部署 utopic 镜像;然而,我现在的问题是我无法部署乌托邦魅力:
$ juju status
environment: maas17
machines:
"0":
agent-state: started
agent-version: 1.20.11
dns-name: utopic.maas17
instance-id: /MAAS/api/1.0/nodes/node-b61e1cb4-7112-11e4-aede-08002781ac14/
series: utopic
hardware: arch=amd64 cpu-cores=1 mem=490M
state-server-member-status: has-vote
$ juju deploy --to 0 juju-gui -v --debug
2014-11-21 03:07:48 INFO juju.cmd supercommand.go:37 running juju [1.20.11-utopic-amd64 gc]
2014-11-21 03:07:48 DEBUG juju.conn api.go:187 trying cached API connection settings
2014-11-21 03:07:48 INFO juju.conn api.go:270 connecting to API addresses: [10.0.0.70:17070 utopic.maas17:17070 utopic.maas17:17070]
2014-11-21 03:07:48 INFO juju.state.api apiclient.go:242 dialing "wss://10.0.0.70:17070/environment/31846f9e-c1b4-4490-842d-2f5d11f49e7f/api"
2014-11-21 03:07:48 INFO juju.state.api apiclient.go:176 connection established to "wss://10.0.0.70:17070/environment/31846f9e-c1b4-4490-842d-2f5d11f49e7f/api"
2014-11-21 03:07:49 ERROR juju.cmd supercommand.go:323 charm not found: cs:utopic/juju-gui
如果我部署 Trusty charms,我是否可以部署 Openstack Juno 或默认使用 Icehouse?(具体来说,我对部署 LXC 感兴趣,但目前 Icehouse 无法实现这一点。)
谢谢,
编辑 1:使用 Trusty charms 进行刮擦:
$ juju deploy --to 0 trusty/juju-gui -v --debug
2014-11-21 03:27:09 INFO juju.cmd supercommand.go:37 running juju [1.20.11-utopic-amd64 gc]
2014-11-21 03:27:09 DEBUG juju.conn api.go:187 trying cached API connection settings
2014-11-21 03:27:09 INFO juju.conn api.go:270 connecting to API addresses: [10.0.0.70:17070 utopic.maas17:17070 utopic.maas17:17070]
2014-11-21 03:27:09 INFO juju.state.api apiclient.go:242 dialing "wss://10.0.0.70:17070/environment/31846f9e-c1b4-4490-842d-2f5d11f49e7f/api"
2014-11-21 03:27:09 INFO juju.state.api apiclient.go:176 connection established to "wss://10.0.0.70:17070/environment/31846f9e-c1b4-4490-842d-2f5d11f49e7f/api"
2014-11-21 03:27:24 INFO juju.cmd cmd.go:113 Added charm "cs:trusty/juju-gui-15" to the environment.
2014-11-21 03:27:25 ERROR juju.cmd supercommand.go:323 cannot assign unit "juju-gui/0" to machine 0: series does not match
答案1
大多数 charm 都是为 LTS 版本编写的,你可以在http://manage.jujucharms.com/charms/trusty,与 Utopic 相比(http://manage.jujucharms.com/charms/utopic)。但这并不意味着您不能在 Utopic 上安装 Juju,并且仍然在 OpenStack Juno charms 可用时进行部署。它们将仅部署在 Trusty 机器上。