我正在尝试设置本地 Juju 环境,因此我按照官方说明进行操作https://jujucharms.com/docs/1.25/config-LXC,在通过 MAAS 安装的运行 trusty 的机器上。
我遇到的问题是机器无法自动启动。
我运行了 juju status。输出如下:
environment: local
machines:
"0":
agent-state: started
agent-version: 1.20.14.1
dns-name: localhost
instance-id: localhost
series: trusty
state-server-member-status: has-vote
"1":
instance-id: pending
series: trusty
"2":
instance-id: pending
series: trusty
"3":
instance-id: pending
series: trusty
"4":
instance-id: pending
series: trusty
services:
mysql:
charm: cs:trusty/mysql-14
exposed: false
relations:
cluster:
- mysql
db:
- wordpress
units:
mysql/0:
agent-state: pending
machine: "2"
nagios:
charm: cs:trusty/nagios-1
exposed: false
units:
nagios/0:
agent-state: pending
machine: "3"
owncloud:
charm: cs:trusty/owncloud-2
exposed: false
units:
owncloud/0:
agent-state: pending
machine: "4"
wordpress:
charm: cs:trusty/wordpress-1
exposed: false
relations:
db:
- mysql
loadbalancer:
- wordpress
units:
wordpress/0:
agent-state: pending
machine: "1"
任何建议都值得感激。提前致谢。
答案1
解决方案是关闭防火墙(ufw)
sudo stop ufw
然后机器就会自动配置。