由于 ssh 错误,Juju 无法在 Orchestra 上运行

由于 ssh 错误,Juju 无法在 Orchestra 上运行

我已经安装并运行了 Orchest,并且成功构建了前三个节点。现在我想开始管理它们的环境。

我已经在主乐团服务器上安装了 JuJu,并生成了所需的密钥,并且运行了 juju 引导程序

当我运行 juju status 时,出现以下错误:

Cannot connect to machine MTMyODcyMjk5MS4wMTAwNDY4LjQ1NTcxMg (perhaps still initializing): Invalid SSH key
2012-02-08 20:19:21,565 ERROR Cannot connect to machine MTMyODcyMjk5MS4wMTAwNDY4LjQ1NTcxMg (perhaps still initializing): Invalid SSH key

我需要将公钥复制到机器上吗?juju 所连接的用户的 authorized_keys 中没有任何内容...

当我运行 juju bootstrap 命令时,我需要以该用户身份登录主服务器吗?

我正在使用 Orchestra 来构建这些机器,并且他们在这些机器上创建了一个 ubuntu 用户,但是运行 orchestra 的机器上没有 ubuntu 用户。

更新:

我在 Orchest 服务器上创建了一个 ubuntu 用户,因为我想要管理的节点上有一个 ubuntu 用户。我还将公钥复制到了节点本身。

现在我收到一个非常不同的错误:

ubuntu@sid:~$ juju bootstrap
2012-02-09 09:14:47,931 INFO Bootstrapping environment 'orchestra' (type: orchestra)...
2012-02-09 09:14:48,043 INFO juju environment previously bootstrapped.
2012-02-09 09:14:48,045 INFO 'bootstrap' command finished successfully
ubuntu@sid:~$ juju status
2012-02-09 09:14:52,737 INFO Connecting to environment.
2012-02-09 09:14:53,800 ERROR Connection refused
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
Failure: txzookeeper.client.ConnectionTimeoutException: could not connect before timeout
Cannot connect to machine MTMyODcyMjk5MS4wMTAwNDY4LjQ1NTcxMg (perhaps still initializing): could not connect before timeout after 2 retries
2012-02-09 09:15:22,925 ERROR Cannot connect to machine MTMyODcyMjk5MS4wMTAwNDY4LjQ1NTcxMg (perhaps still initializing): could not connect before timeout after 2 retries

我还想学习另一件事:如何取消引导环境?就我而言,我真的认为有些事情搞砸了,我不能再去做另一个

juju bootstrap

因为 juju 说环境已经引导完毕。我可以撤消此操作,然后重新进行引导过程吗?

这是我的 environment.yaml 文件。

juju: environments
environments:
orchestra:
type: orchestra
# Specify the orchestra server
orchestra-server: '192.168.*.*'
# Specify storage.
storage-url: 'http://192.168.*.*/webdav'
# Specify cobbler's user/pass
orchestra-user: cobbler
orchestra-pass: *******
admin-secret: *******
# Mangement classes
acquired-mgmt-class: orchestra-juju-acquired
available-mgmt-class: orchestra-juju-available
default-series: natty

答案1

如果 bootstrap 返回,则意味着 juju 能够告诉 cobbler(orchest-provisioning-server 的主要部分)启动机器。如果您没有为 cobbler 中的配置文件/系统定义电源控制,并且/或者您没有在该机器上默认进行 PXE 启动,您仍然需要手动重新启动服务器并使其进行 PXE 启动,以便它安装全新的 Ubuntu 并在第一次启动时启动 juju 代理。

此外,如果您不想让 bootstrap “占用”您的一台真实机器,则需要在 cobbler 中为虚拟机定义一个配置文件,然后使用 pxe 启动该虚拟机。在您仍在摆弄 juju 时,另一种将其破解到 cobbler 服务器上的方法是只读取为假系统定义的预种子文件,然后直接运行代理/zookeeper。不过,这超出了这个问题的范围。

裸机故事在 juju 中仍然很新(它与 11.10 中的任何东西一样都是概念验证),并且仍在不断发展。我建议在 juju 邮件列表和 Freenode 上的 #juju 中关注它的进展,因为随着用例变得更加清晰,它可能会变得更加顺畅。

相关内容