Openstack Autopilot 在部署 Landscape 時失敗

Openstack Autopilot 在部署 Landscape 時失敗

更新:

更多調查顯示 LXC 容器在安裝過程中沒有取得 IP。

但如果放置幾個小時,LXC 容器最終會從 MAAS 獲得 IP。

因此,今天早上我將叢集從非常昂貴的 L3 Cisco 交換器移至廉價的 L2 Dell 交換器。所有 LXC 容器都會立即取得 DHCP 位址,並且 Openstack 安裝程式順利完成。可能我們需要在思科交換器上進行某種配置設置,但目前我們將在實驗室中使用軟體時保持網路簡單。

在這個相當令人惱火和奇怪的問題上花了很多時間!非常感謝您的努力。


我們有一個在 MAAS 中配置的 5 節點機器堆疊。

它們運作良好,但部署 Ubuntu 的 Openstack Autopilot 失敗,並顯示:

./cloud-install/commands.log:

http://paste.ubuntu.com/10676002/

machine-0.log:

2015-03-24 16:49:19 ERROR juju.worker runner.go:219 exited "api": unable to connect to "wss://localhost:17070/"
2015-03-24 16:49:22 ERROR juju.rpc server.go:554 error writing response: EOF
2015-03-24 16:49:45 ERROR juju.state.unit unit.go:665 unit apache2/0 cannot get assigned machine: unit "apache2/0" is not assigned to a machine
2015-03-24 16:49:45 ERROR juju.state.unit unit.go:665 unit apache2/0 cannot get assigned machine: unit "apache2/0" is not assigned to a machine
2015-03-24 16:49:50 ERROR juju.state.unit unit.go:665 unit haproxy/0 cannot get assigned machine: unit "haproxy/0" is not assigned to a machine
2015-03-24 16:49:50 ERROR juju.state.unit unit.go:665 unit haproxy/0 cannot get assigned machine: unit "haproxy/0" is not assigned to a machine

-- 更多日誌

從 juju bootstrap 機器:

/var/log/juju/all-machines.log

http://paste.ubuntu.com/10724991/

我無法弄清楚這一點,它只是一遍又一遍地顯示以下內容,直到失敗:

machine-0: 2015-04-02 13:50:10 INFO juju.worker runner.go:261 start "api"
machine-0: 2015-04-02 13:50:10 INFO juju.api apiclient.go:252 dialing "wss://localhost:17070/"
machine-0: 2015-04-02 13:50:10 INFO juju.api apiclient.go:260 error dialing "wss://localhost:17070/": websocket.Dial wss://localhost:17070/: dial tcp 127.0.0.1:17070: connection refused
machine-0: 2015-04-02 13:50:10 ERROR juju.worker runner.go:219 exited "api": unable to connect to "wss://localhost:17070/"
machine-0: 2015-04-02 13:50:10 INFO juju.worker runner.go:253 restarting "api" in 3s

不確定這是否相關,但我在另一個實驗室中有一個工作部署,我看到的唯一區別是,在 juju boostrap 節點上的非工作實驗室中,/var/lib/juju/agents/machine-0/agent.confSECURE_STATESERVER_CONNECTION: "true"已設定且版本為1.22.0

缺少工作環境SECURE_STATESERVER_CONNECTION: "true" 且版本為1.21.3.

答案1

我將在這裡添加一個可以幫助其他人的一般答案。

當遇到此類問題時,如果不清楚問題所在,一般建議是簡化。

在這種情況下,請嘗試直接使用 juju 在 MAAS 中配置節點,而不是透過雲端安裝程式。調試起來應該會更容易、更快捷。

此 URL 包含有關直接將 juju 與 MAAS 一起使用的說明:https://maas.ubuntu.com/docs1.7/juju-quick-start.html

相關內容