Juju 真的需要两个节点吗?

Juju 真的需要两个节点吗?

嗨,我正在尝试使用 Juju 和 MAAS 部署 openstack。但 Juju bootstap 仍处于“正在连接环境”状态:

marcel@ubuntu20:~$ juju -v status
2012-07-11 07:18:00,831 DEBUG Initializing juju status runtime
2012-07-11 07:18:00,842 INFO **Connecting to environment**...
2012-07-11 07:18:00,961 DEBUG Connecting to environment using node5...
2012-07-11 07:18:00,962 DEBUG Spawning SSH process with remote_user="ubuntu" remote_host="node5" remote_port="2181" local_port="52179".
2012-07-11 07:18:01,468:11263(0x7f8ffb223700):ZOO_INFO@log_env@658: Client environment:zookeeper.version=zookeeper C client 3.3.5
2012-07-11 07:18:01,468:11263(0x7f8ffb223700):ZOO_INFO@log_env@662: Client environment:host.name=ubuntu20
2012-07-11 07:18:01,468:11263(0x7f8ffb223700):ZOO_INFO@log_env@669: Client environment:os.name=Linux
2012-07-11 07:18:01,468:11263(0x7f8ffb223700):ZOO_INFO@log_env@670: Client environment:os.arch=3.2.0-23-generic
2012-07-11 07:18:01,468:11263(0x7f8ffb223700):ZOO_INFO@log_env@671: Client environment:os.version=#36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012
2012-07-11 07:18:01,469:11263(0x7f8ffb223700):ZOO_INFO@log_env@679: Client environment:user.name=marcel
2012-07-11 07:18:01,469:11263(0x7f8ffb223700):ZOO_INFO@log_env@687: Client environment:user.home=/home/marcel
2012-07-11 07:18:01,469:11263(0x7f8ffb223700):ZOO_INFO@log_env@699: Client environment:user.dir=/home/marcel
2012-07-11 07:18:01,469:11263(0x7f8ffb223700):ZOO_INFO@zookeeper_init@727: Initiating client connection, host=localhost:52179 sessionTimeout=10000 watcher=0x7f8ff90536b0 sessionId=0 sessionPasswd=<null> context=0x2444670 flags=0
2012-07-11 07:18:01,469:11263(0x7f8ff5dad700):ZOO_INFO@check_events@1585: initiated connection to server [127.0.0.1:52179]
2012-07-11 07:18:01,470:11263(0x7f8ff5dad700):ZOO_ERROR@handle_socket_error_msg@1603: Socket [127.0.0.1:52179] zk retcode=-4, errno=112(Host is down): failed while receiving a server response
2012-07-11 07:18:04,807:11263(0x7f8ff5dad700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:52179] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2012-07-11 07:18:08,143:11263(0x7f8ff5dad700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:52179] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2012-07-11 07:18:11,480:11263(0x7f8ff5dad700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:52179] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2012-07-11 07:18:14,816:11263(0x7f8ff5dad700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:52179] zk retcode=-4, errno=111(Connection refused): server refused to accept the client

我等了两天,什么也没发生:

但我只有一个节点,因为我想在继续安装更多节点之前检查它是否真的正常工作。但我读到https://wiki.ubuntu.com/ServerTeam/MAAS/Juju 至少向你的 MAAS 添加两个节点。我至少需要两个节点。我真的需要两个节点吗?Bootstap 正在运行吗?我不在实验室,所以我不能轻易再安装一个节点。但如果它可以工作,我会去那里...

有没有办法手动完成 Bootstrap,让我可以立即完成。我时间不多了,我真的需要部署 openstack,我不能等几天才进行 bootstap。

答案1

JuJu 确实需要 2 个节点才能做任何有用的事情。您应该能够使用 1 个节点引导您的 juju maas 环境,但仅此而已。

在我看来,您的案例中的 juju bootstrap 节点存在一些问题。我不认为安装额外的节点可以解决您的问题。

您能否收集(并发布在某处)以下内容:/var/log/cloud-init-output.log /var/log/cloud-init.log /var/log/juju

我怀疑如果你查看引导节点上的 /var/log/cloud-init-output.log,你可能会看到一些指向你的问题的东西。

相关内容