是否可以将 charm 部署到 Juju 引导节点(到容器)?我无法添加 Juju 控制器所在的机器,也无法在可用于 charm 部署的可用机器列表中看到它。例如,尝试使用:
juju add-machine --constraints tags=juju
错误:
Machine State DNS Inst id Series AZ Message
0 pending pending xenial failed to start machine 0 (failed to acquire node: No available machine matches constraints: [('zone', ['default']), ('agent_name', ['594543d5-4690-4f80-822a-60ea0446016a']), ('tags', ['juju'])] (resolved to "tags=juju zone=default")), retrying in 10s (5 more attempts)
机器已通过(标签 _is there)成功启动
juju bootstrap --constraints tags=juju mymaas maas-controller --
config=config.yaml
答案1
juju 控制器节点实际上位于不同的模型。只要您有正确的权限,就可以通过以下方式查看它:
dpb@helo:~[]$ juju models
Controller: localhost-localhost
Model Cloud/Region Status Machines Access Last connection
controller* localhost/localhost available 1 admin just now
default localhost/localhost available 0 admin 2018-02-26
然后,使用juju switch MODEL_NAME
在它们之间切换。您必须处于控制器模型来修改以前称为引导节点(现在称为控制器)的内容。